I have compiled and built a version of miniupnpd
Code: Select all
/var # ls -laF /nvram
drwxr-xr-x 2 0 0 128 Jun 4 2007 ./
drwxr-xr-x 13 0 0 150 Jun 4 2007 ../
-rwxr-xr-x 1 0 0 910 Jun 28 22:12 bootmsg.sh*
-rwxr-xr-x 1 0 0 98524 Dec 16 23:23 miniupnpd*
/var # /nvram/miniupnpd --help
Reading configuration from file /etc/miniupnpd.conf
Unknown option: --help
Usage:
/nvram/miniupnpd [-f config_file] [-i ext_ifname] [-o ext_ip]
[-a listening_ip] [-p port] [-d] [-L] [-U]
[-u uuid] [-s serial] [-m model_number]
[-t notify_interval] [-P pid_filename]
[-B down up] [-w url]
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.
With -d miniupnpd will run as a standard program.
-L sets packet log in pf on.
-U causes miniupnpd to report system uptime instead of daemon uptime.
-B sets bitrates reported by daemon in bits per second.
-w sets the presentation url. Default is http address on port 80
Code: Select all
#adding the MINIUPNPD chain for nat
iptables -t nat -N MINIUPNPD
#adding the rule to MINIUPNPD
iptables -t nat -A PREROUTING -i ppp0 -j MINIUPNPD
#adding the MINIUPNPD chain for filter
iptables -t filter -N MINIUPNPD
#adding the rule to MINIUPNPD
iptables -t filter -A FORWARD -i ppp0 -o ! ppp0 -j MINIUPNPD
/var # /nvram/miniupnpd -i ppp0 -a 192.168.1.1 -p 5000 -U -d -B 8000 400
miniupnpd[589]: AddPortMapping: external port 29811 to 192.168.1.2:29811 protocol TCP for: utorrent
miniupnpd[589]: no permission rule matched : accept by default (n_perms=0)
miniupnpd[589]: redirecting port 29811 to 192.168.1.2:29811 protocol TCP for: utorrent
As above the binary is less than 100k and when running there's only one instance...
Code: Select all
Mem: 12576K used, 1580K free, 0K shrd, 1284K buff, 4996K cached
Load average: 0.01 0.01 0.00 (Status: S=sleeping R=running, W=waiting)
PID USER STATUS RSS PPID %CPU %MEM COMMAND
589 root S 336 587 0.0 2.3 miniupnpd
Code: Select all
Test 5 - UPnP Support Test Not supported
Result:
The operating system is Windows XP
UPnP is enabled by the firewall
UPnP services are running
UPnP Discovery is enabled
Detecting Internet Gateway Devices on the network
1 IGD(s) found
IGD Device Information:
Manufacturer Name : Linux
Model Name : Linux router
Model Number : 1
get_StaticPortMappingCollection() returned NULL IStaticPortMappingCollection
get_StaticPortMappingCollection() returned NULL IStaticPortMappingCollection
get_StaticPortMappingCollection() returned NULL IStaticPortMappingCollection
Failed to get port mapping from the IGD
http://miniupnp.free.fr/conf_igd_winxp.html
more tinkering needed!