View Full Version : [ubuntu] how to split port 80 via two gateway by range

May 9th, 2009, 03:58 PM
i need help..

i've setup gateway server (ip: which connected to LAN ( via eth0. I need to split whatever going out via port 80 to two gateway by eth1 and eth2

1. If user from LAN browse to private ip (, it go via eth1 ( and
2. If user from LAN browse to public ip (, it go via eth2 (

plz help & tq.

May 9th, 2009, 04:00 PM
I think you are looking for masquerading, but I am not completely sure. Have a look at iptables and masquerading (google will help).

You can also try arno-iptables which is part of Ubuntu. It is Perl script with a lot of explanation inside.