[afnog] Linux Port Forwarding
Eliufoo C. Mahinda
venomius at yahoo.com
Fri Apr 25 14:53:34 UTC 2008
Hi,
I have been having problem setting up portforwarding
on my linux box. I have two interfaces configured
(Internet & LAN). I want traffic from a specefic host
to be routed to a specific server.
My external interface is eth1 (197.41.39.55) &
internal interface eth0 (192.168.10.0/24) that has
several servers and networking equipments that needs
to be reached by external hosts. I intend to route
traffic from host 80.223.75.169 destined197.41.39.55
on port 8080, to be forwarded to 192.168.10.5 port 80.
According to my internet search, below configuration
should work:
- iptables -t nat -A PREROUTING -p tcp -i eth1 -d
197.41.39.55 --dport 8080 -j DNAT --to 192.168.10.5
- iptables -A FORWARD -p tcp -i eth0 -d 192.168.10.5
--dport 80 -j ACCEPT
- iptables -t nat -A PREROUTING -j LOG --log-level
debug --log-prefix '***PREROUTING***'
I have implemented the above configuration but nothing
works. I have also completely FLUSHED my firewall (for
testing) and loaded the NAT module. And still doesn't
work. Also, apart from the log file (messages), how
can i troubleshoot iptable configuration.
Assist please:
Elly
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the afnog
mailing list