Doesn't look like the Universal Plug-n-Play for Windows users is implemented.
Whats the chance of this happening in the future ?
Cheers,
Dan.
This thread was automatically locked due to age.
#!/bin/bash
# $Id: upnpd,v 1.00 2004/01/07 00:20:00 tom Exp $
trap "" HUP
ret_code=0
PNAME="upnpd"
EXT_IF="eth1"
INT_IF="eth0"
PROG="/usr/sbin/upnpd"
case "$1" in
start)
echo ":: Starting $PNAME"
ip route add 239.0.0.0/8 dev $INT_IF
PID=`pidof $PROG`
if [ ! -z "$PID" ] ; then
echo " Already running"
exit 0
fi
$PROG $EXT_IF $INT_IF >/dev/null 2>&1
;;
stop)
echo ":: Stopping $PNAME"
PID=`pidof $PROG`
if [ -z "$PID" ] ; then
echo " Already stopped"
exit 0
fi
killall $PROG
sleep 20
# This timeout is required to ensure all upnpd services have shut down
ip route del 239.0.0.0/8 dev $INT_IF
;;
restart)
echo "Restarting UPNP: "
sh $0 stop
sh $0 start
;;
*)
echo 'Usage: /sbin/init.d/upnpd {start|stop|restart}'
ret_code=1
;;
esac
/sbin/init.d/retcode $ret_code
exit $ret_code;
#!/bin/bash
PATH=/usr/local/bin
iptables -D OUTPUT -s 10.10.10.0/24 -d 239.255.255.250/32 -j ACCEPT
iptables -D OUTPUT -s 10.10.10.254/32 -d 239.255.255.250/32 -j ACCEPT
iptables -D INPUT -s 10.10.10.254/32 -d 239.255.255.250/32 -j ACCEPT
iptables -D INPUT -s 10.10.10.0/24 -d 239.255.255.250/32 -j ACCEPT
iptables -I OUTPUT -s 10.10.10.0/24 -d 239.255.255.250/32 -j ACCEPT
iptables -I OUTPUT -s 10.10.10.254/32 -d 239.255.255.250/32 -j ACCEPT
iptables -I INPUT -s 10.10.10.254/32 -d 239.255.255.250/32 -j ACCEPT
iptables -I INPUT -s 10.10.10.0/24 -d 239.255.255.250/32 -j ACCEPT