Hey there,
Well, I stayed up later than I'd like to admit last night trying to get
port forwarding to work. All I want the linux box to do is forward port
80 (web traffic of course...) from the external interface to a box on
the inside interface's LAN.
For troubleshooting, I've stripped out all of my SNAT config, set the
policies to ACCEPT for every chain, and used the following:
iptables -A PREROUTING -t nat -p tcp -d 1.2.3.4 --dport 80 -j DNAT --to
10.0.0.11:80
where 1.2.3.4 is the outside address and 10.0.0.11 is the inside
address.
When I go to 1.2.3.4 with a webbrowser from another server on the
outside, and then do "ipchains -t nat -L -v" I can see that the packet
hit the rule, but the webbrowser times out. From there, I have no idea
where the packet is getting lost. At this point, I'm not trying to be
secure, I'm just trying to get the damn thing to work. ;-) I can make
it secure later... (crawl before you walk, etc)
Any help will be much appreciated, as I've already spent more time on
this than I would have liked to (doesn't it always seem that way?). If
you have port 80 forwarding--or any port for that matter--working and
could send me your script, I'd appreciate that also.
Thanks,
Kevin