version 1.1, 2012/02/21 23:16:02
|
version 1.1.1.2, 2012/05/29 12:55:57
|
Line 1
|
Line 1
|
MiniUPnP project. |
MiniUPnP project. |
(c) 2006-2009 Thomas Bernard | (c) 2006-2011 Thomas Bernard |
Homepage : http://miniupnp.free.fr/ |
Homepage : http://miniupnp.free.fr/ |
Mirror: http://miniupnp.tuxfamily.org/ |
Mirror: http://miniupnp.tuxfamily.org/ |
|
|
Line 44 Installation steps are allmost the same as with pf.
|
Line 44 Installation steps are allmost the same as with pf.
|
*Solaris users would be interested in reading informations from : |
*Solaris users would be interested in reading informations from : |
http://blogs.sun.com/avalon/category/IPFilter |
http://blogs.sun.com/avalon/category/IPFilter |
|
|
|
============================= Mac OS X/ipfw =============================== |
|
|
|
- use 'bsdmake' or 'make -f Makefile.macosx' to build |
|
|
|
|
============================ Linux/netfilter ============================== |
============================ Linux/netfilter ============================== |
To Build and install : |
To Build and install : |
|
|
- make sure you have libiptc available on your system : |
- make sure you have libiptc available on your system : |
if you are using debian, "apt-get install iptables-dev" |
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 |
In anycase, libiptc is available in iptables sources packages |
from http://netfilter.org |
from http://netfilter.org |
- edit and run netfilter/iptables_init.sh shell script. |
- edit and run netfilter/iptables_init.sh shell script. |
Line 77 NOTE: a /etc/init.d/miniupnpd script will be installed
|
Line 84 NOTE: a /etc/init.d/miniupnpd script will be installed
|
If it suits you, you can use is with start, stop or restart argument. |
If it suits you, you can use is with start, stop or restart argument. |
# /etc/init.d/miniupnpd restart |
# /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 ============================= |
=========================== Configuration ============================= |
Edit the /etc/miniupnpd.conf file to set options. All options are also |
Edit the /etc/miniupnpd.conf file to set options. All options are also |
available through command line switches. |
available through command line switches. |
Line 108 http://kruithof.xs4all.nl/uuid/uuidgen
|
Line 127 http://kruithof.xs4all.nl/uuid/uuidgen
|
|
|
On linux systems, one could also use the command |
On linux systems, one could also use the command |
'cat /proc/sys/kernel/random/uuid' to generate an uuid. |
'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 : |
To stop the daemon use : |
# kill `cat /var/run/miniupnpd.pid` |
# kill `cat /var/run/miniupnpd.pid` |