Hi,
I'm trying to forward traffic from my linux gateway to my web server and having trouble getting it setup properly.
eth0 address:82 ---> 192.168.1.10:81
I've was reading the HOWTO about the port forwarding setup and tried using this:
iptables -A PREROUTING -t nat -p tcp -d "eth0_IP address" --dport 82 -j DNAT --to 192.168.1.10:81
iptables -A PREROUTING -t nat -p udp -d "eth0_IP address" --dport 82 -j DNAT --to 192.168.1.10:81
the setup is unclear to me and I'm not quite sure for my specific situation if I want MASQUERADING, DNAT or something else. All I want to do is forwarding all incoming and outgoing traffic on eth0:82 to my internal IP address of the server.
do i need to add anything on my gateway like a routing table entry for this or does iptables do the routing for me when I use the DNAT function?
Thanks, Adam