heli_n00bi3
09-27-2006, 11:21 AM
Just in case anyone else is trying to do this, it actually turned out to not be that bad... My setup is a linux NAT firewall with the G3 machine NATed behind it... to get the online/multiplayer stuff to work, i used these iptables commands (this assumes you already have a masquerade table setup)
-------------------------------------------------------------
#change to your iptables location
IPT="/usr/local/sbin/iptables"
#ip of the g3 box
SIM="10.11.12.222"
#eth0 is the interface that faces the internet
$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 6073 -j DNAT --to-destination $SIM:6073
$IPT -t nat -A PREROUTING -i eth0 -p udp --dport 2300:2400 -j DNAT --to-destination $SIM:2300-2400
--------------------------------------
-------------------------------------------------------------
#change to your iptables location
IPT="/usr/local/sbin/iptables"
#ip of the g3 box
SIM="10.11.12.222"
#eth0 is the interface that faces the internet
$IPT -t nat -A PREROUTING -i eth0 -p tcp --dport 6073 -j DNAT --to-destination $SIM:6073
$IPT -t nat -A PREROUTING -i eth0 -p udp --dport 2300:2400 -j DNAT --to-destination $SIM:2300-2400
--------------------------------------