Port forwarding
Hi guys! I'm trying to do this:
iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p tcp --destination-port 2300:2400 -i eth0 -j DNAT --to yy.yy.yy.yy
iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p udp --destination-port 2300:2400 -i eth0 -j DNAT --to yy.yy.yy.yy
iptables -t nat -A PREROUTING -d xx.xx.xx.xx -p tcp --destination-port 47624 -i eth0 -j DNAT --to yy.yy.yy.yy:47624
Where xx.xx.xx.xx. is the public/external IP address of your firewall, and yy.yy.yy.yy is the local/private IP of the
machine running BattleCom. Note: only one machine behind the firewall can run BattleCom.
However it doesn't work.
I'm running a Linux 7.1 with a self-compiled 2.4.4 kernel with IPTABLES & NAT.
Is there a specific option I need to compile? Routing and Masquerading works ...
|