[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

IPTables Port Forwarding



Hello

Need a little bit of help here...  eth1 = Internet, eth0 = LAN,   will this
work?

iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j DNAT --to
192.168.1.50:80
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth1 -j ACCEPT

Anything on port 80 to goto a internal server on ip 192.168.1.50

Many Thanks,

Johnno



Reply to: