Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    ISP selection in a multihomed linux box

    Hello Fellows!

    I would like ask for some help regarding this scenario (see figure below).

    Basically I would like the LAN host to be able to access both ISPs.For that I would like
    to set the LAN GATEWAY to mark the traffic destined to ISP1 with 1 and the traffic going to ISP2 with
    a MARK 2.

    Im using a single cable between the LAN GATEWAY and the multihomed box and vlans so ISP1 traffic should
    flow through vlan101 and ISP2 traffic through vlan102.

    What i dont know is what kind of discriminant I could use to tell the LAN GATEWAY (by using iptables) that the traffic is either targeted to ISP1 or 2.

    Im using iptables 1.3.6 and Ubuntu 7.09. NAT is also working as i can reach both isps gateways
    ISP1 ISP2
    | |
    |eth1= |eth2=
    | LINUX BOX |
    | .1 |.1
    vlan101 vlan102
    | |
    |.2 |.2
    | LINUX |
    | |

    Thanks for any help... I could clarify further if i wasnt clear enough..


  2. #2

    i dont exactly know whether this rule going to work :
    simply drop vlan102 outgoing to isp1 and vice versa in OUTPUT chain

    you can SNAT vlan1 to isp1 interface and vice versa.


Posting Permissions

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