⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 miniupnpd可以在嵌入式linux中实现upnp功能
💻
字号:
MiniUPnP project.(c) 2006-2007 Thomas BernardHomepage : http://miniupnp.free.fr/Mirror: http://miniupnp.tuxfamily.org/miniupnpd is still under active developpement. This documentation islikely to be a little outdated when you read it. So please go on theweb forum http://miniupnp.tuxfamily.org/ if you need more information.================================ *BSD/pf =================================To Build and Install :- use make to compile. BSD make is ok.- you can first 'make config.h' then edit config.h to your preferences and  finally 'make'- add "rdr-anchor miniupnpd" and "anchor miniupnpd" lines to /etc/pf.conf- some FreeBSD users reported that it is also necessary for them  to explicitly allow udp traffic on 239.0.0.0/8 by adding the two following  lines to /etc/pf.conf :   pass out on $int_if from any to 239.0.0.0/8 keep state   pass in on $int_if from any to 239.0.0.0/8 keep state- dont forget to " pfctl -f /etc/pf.conf "- you can check your modifications are taken into accout with  "pfctl -s nat" and "pfctl -s rule". Look for the "rdr-anchor miniupnpd"  and "anchor miniupnpd" lines.- install as root using :  # make install  or    # PREFIX=/usr/local make install- run as root : The daemon needs rights to modify pf rules.edit the /etc/miniupnpd.conf file to set options. All options are alsoavailable through command line switches.To stop the daemon use :  > kill `cat /var/run/miniupnpd.pid`============================ Linux/netfilter ==============================To Build and install :- make sure you have libiptc available on your system :  if you are using debian, "apt-get install iptables-dev"  In anycase, libiptc is available in iptables sources packages  from netfilter.org- edit and run netfilter/iptables_init.sh shell script.  This script must allways be run before the daemon  to set up intial rules and chains.- Build and edit the config.h file  > make -f Makefile.linux config.h  > vi config.h- Build the daemon  > make -f Makefile.linux- install as root using :  > make -f Makefile.linux install- A miniupnpd script should be installed to /etc/init.d  and the configuration files to /etc/miniupnpd- anytime, you can use the netfilter/iptables_flush.sh  script to flush all rules added by the daemon.- after killing the daemon, you can get back to  iptables initial state by runing the netfilter/iptables_removeall.sh  script. Don't forget to edit the script to your convinience.NOTE: a /etc/init.d/miniupnpd script will be installed.  If it suits you, you can use is with start, stop or restart argument.  # /etc/init.d/miniupnpd restart=========================== Configuration =============================Edit the /etc/miniupnpd.conf file to set options. All options are alsoavailable through command line switches.Miniupnpd supports some kind of security check for allowing or disallowingredirection to be made. The UPnP permission rules are read from theminiupnpd.conf configuration file.When a new redirection is asked, permission rules are evaluated in top-downorder and the first permission rule matched gives the answer : redirectionallowed or denied. If no rule is matching, the redirection is allowed, soit is a good practice to have a "catch all" deny permission rule at the endof your mermission ruleset.Sample permission ruleset :allow 4662-4672 192.168.1.34/32 4662-4672deny 0-65535 192.168.1.34/32 0-65535allow 1024-65535 192.168.1.0/24 1024-65535deny 0-65535 0.0.0.0/0 0-65535With this ruleset, redirections are allowed only for host on the subnet192.168.1.0/255.255.255.0 for the ports 1024 or above. There is an exceptionfor the host 192.168.1.34 for which only redirections from/to port 4662 to4672 are allowed.You can generate the uuid for your UPnP device with the uuidgen availableunder linux. The following following OpenBSD package is also providinga "uuid" tool :http://www.openbsd.org/4.0_packages/i386/uuid-1.5.0.tgz-long.htmlAn web based uuid generator is also available :http://kruithof.xs4all.nl/uuid/uuidgenTo stop the daemon use :  # kill `cat /var/run/miniupnpd.pid`or if your linux system use /etc/init.d/   # /etc/init.d/miniupnpd stop

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -