--- embedaddon/miniupnpd/INSTALL 2012/02/21 23:16:02 1.1.1.1 +++ embedaddon/miniupnpd/INSTALL 2012/05/29 12:55:57 1.1.1.2 @@ -1,5 +1,5 @@ MiniUPnP project. -(c) 2006-2009 Thomas Bernard +(c) 2006-2011 Thomas Bernard Homepage : http://miniupnp.free.fr/ Mirror: http://miniupnp.tuxfamily.org/ @@ -44,11 +44,18 @@ Installation steps are allmost the same as with pf. *Solaris users would be interested in reading informations from : http://blogs.sun.com/avalon/category/IPFilter +============================= Mac OS X/ipfw =============================== + +- use 'bsdmake' or 'make -f Makefile.macosx' to build + + ============================ 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" + Some versions of the iptables-dev package don't include the + necessary files : read "how to get libiptc with its headers on debian" below. In anycase, libiptc is available in iptables sources packages from http://netfilter.org - edit and run netfilter/iptables_init.sh shell script. @@ -77,6 +84,18 @@ 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 + +How to get libiptc with its headers on debian : +- Use apt-get to get sources : + > apt-get source iptables + you should then have an iptables-x.x.x/ directory. +- configure and compile : + > cd iptables-x.x.x/ + > ./configure --enable-static + > make +- it is now possible to compile miniupnpd using the following command : + > IPTABLESPATH=§path/to/iptables-x.x.x make -f Makefile.linux + =========================== Configuration ============================= Edit the /etc/miniupnpd.conf file to set options. All options are also available through command line switches. @@ -108,6 +127,13 @@ http://kruithof.xs4all.nl/uuid/uuidgen On linux systems, one could also use the command 'cat /proc/sys/kernel/random/uuid' to generate an uuid. + +More simple, use the genuuid makefile target : +> make genuuid +or +> make -f Makefile.linux genuuid +This target is needed by the "install" target, so it should be done +automatically. To stop the daemon use : # kill `cat /var/run/miniupnpd.pid`