Rodney Ray writes:
> Anyone know how to enable Loose UPD  within linux?

2.4 doesn't support this, unfortunately.  Or, at least, in the hours I've
spent searching for info, I found absolutely nothing about it (besides
confirmation that it's not supported).  You'll need to enable port
forwarding manually.

This is how I do it for Starcraft (and other battle.net games).  The router
is 192.168.1.1.  I use 192.168.1.2 as my Windows box which hosts games.  The
for loop adds forwarding for 192.168.3-8.  eth0 is the external interface
(connected to the internet).

FWN="/sbin/iptables -t nat"
IFACE="eth0"
EXTIP=$(ifconfig $IFACE | awk '{print $2}' | grep addr | cut -b 6-)

for i in 3 4 5 6 7 8
do
    $FWN -A PREROUTING -p udp -d $EXTIP --dport 6300$i \
         -j DNAT --to-destination 192.168.1.$i:6112
    $FWN -A POSTROUTING -p udp -s 192.168.1.$i \
         --sport 6112 -j SNAT --to-source $EXTIP:6300$i
done
$FWN -A PREROUTING -p udp -d $EXTIP --dport 6112 \
     -j DNAT --to 192.168.1.2:6112
$FWN -A POSTROUTING -p udp -d 192.168.1.2 --dport 6112 \
     -s 192.168.1.0/24 -j SNAT --to 192.168.1.1

-- 
David Phillips <david at acz.org>
http://david.acz.org/


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list