I have a linux machine running iptables which I use as my router. I have
several machines behind the router and I wish to map incoming ports from the
outside world to different ports on one of the internal machines. At the
moment I use the following commands to forward a port keeping the port
number the same:
iptables -t nat -I PREROUTING -p tcp -s ! 192.168.1.104 --dport 3333 -j
DNAT --to 192.168.0.104
iptables -I FORWARD -p tcp -d 192.168.1.104 --dport 3333 -j ACCEPT
How can I change this so I can map say port 4444 externally to port 3333
internally?
Thanks
Allan
|