Results 1 to 2 of 2

Thread: how to split port 80 via two gateway by range

  1. #1
    Join Date
    Apr 2009
    Beans
    1

    Exclamation how to split port 80 via two gateway by range

    i need help..

    i've setup gateway server (ip: 192.168.1.4) which connected to LAN (192.168.0.0/24) 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 (192.168.0.0/24), it go via eth1 (192.168.1.2) and
    2. If user from LAN browse to public ip (203.0.0.0/24), it go via eth2 (192.168.1.3)

    plz help & tq.

  2. #2
    Join Date
    Aug 2006
    Beans
    166
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: how to split port 80 via two gateway by range

    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.
    The most exciting phrase to hear in science, the one that heralds new discoveries, is not "Eureka!" but "That's funny..."' - Isaac Asimov

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •