iptables rules for MSN Gaming ZONE???
I've been trying some rules out and nothing seems to work. I have 2 games that I would like to play through my IPTABLES firewall: Motorcross Madness 2 and the Age of Empires Series. The following is what I wrote this morning, at work, and I can't test it until I get home. Am I thinking about this correctly? Do I have to allow the ports also through the INPUT and OUTPUT chains? If anyone has a working set for MSN Gaming Zone please... PLEASE post it. If I get something to work I will definately post it here. Thanks
[edited to say that 192.168.1.30 is my windows machine on the private network]
##############################################################################
# Open up ports for MSN Gaming Zone
$IPTABLES -t nat -A PREROUTING -p tcp --dport 47624 -i $extint -j DNAT --to-destination 192.168.1.30:47642
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6073 -i $extint -j DNAT --to-destination 192.168.1.30:6073
$IPTABLES -t nat -A PREROUTING -p tcp --dport 6667 -i $extint -j DNAT --to-destination 192.168.1.30:6667
i=2300
while [ "$i" -le "2400" ]
do
$IPTABLES -t nat -A PREROUTING -p tcp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
$IPTABLES -t nat -A PREROUTING -p udp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
let "i+=1"
done
i=28800
while [ "$i" -le "29000" ]
do
$IPTABLES -t nat -A PREROUTING -p tcp --dport $i -i $extint -j DNAT --to-destination 192.168.1.30:$i
let "i+=1"
done
Last edited by Phucen ey; 08-15-2001 at 11:16 AM.
|