2016年5月16日 星期一

[Ubuntu] Miniupnp installation

  • Install Package
    • apt-get install libssl-dev
    • apt-get install iptables-dev
  • Start to compile
    make -f Makefile.linux
  • Execute miniupnpd
  • root@freeman-laptop:/home/freeman/test1/miniupnpd-1.9.20160222# ./miniupnpd
    Usage:
            ./miniupnpd [-f config_file] [-i ext_ifname] [-o ext_ip]
                    [-a listening_ip] [-p port] [-d] [-U] [-S] [-N]
                    [-u uuid] [-s serial] [-m model_number] 
                    [-t notify_interval] [-P pid_filename] 
                    [-B down up] [-w url] [-r clean_ruleset_interval]
                    [-A "permission rule"] [-b BOOTID]
    
    Notes:
            There can be one or several listening_ips.
            Notify interval is in seconds. Default is 30 seconds.
            Default pid file is '/var/run/miniupnpd.pid'.
            Default config file is '/etc/miniupnpd.conf'.
            With -d miniupnpd will run as a standard program.
            -S sets "secure" mode : clients can only add mappings to their own ip
            -U causes miniupnpd to report system uptime instead of daemon uptime.
            -N enables NAT-PMP functionality.
            -B sets bitrates reported by daemon in bits per second.
            -w sets the presentation url. Default is http address on port 80
            -A use following syntax for permission rules :
              (allow|deny) (external port range) ip/mask (internal port range)
            examples :
              "allow 1024-65535 192.168.1.0/24 1024-65535"
              "deny 0-65535 0.0.0.0/0 0-65535"
            -b sets the value of BOOTID.UPNP.ORG SSDP header
            -h prints this help and quits.
    

Reference:
  1. [miniupnpd] miniupnpd 的 uPnP daemon使用

0 意見:

張貼留言