D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] IP Tables - Port Forwarding



Can anyone help with an iptables rule for the following setup:

Firewall with Internet IP 222.222.222.222 (for example, I forgot the actual IP!) and LAN IP 10.0.0.1
A server with LAN IP 10.0.0.2 listening on TCP port 80
Another server with LAN IP 10.0.0.3 listening on TCP port 80


I want to type a URL into a browser so that:
http://222.222.222.222:80 should give me the webpage from the Firewall
http://222.222.222.222:81 should give me the webpage from server 10.0.0.2 port 80
http://222.222.222.222:82 should give me the webpage from server 10.0.0.3 port 80


I already have IP Masq working, and I think iptables can do the above with the correct rule.

Thanks

Andrew Rogers


-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.


Lynx friendly