[ I may very well have overlooked something and it is also very likely I
haven't done my homework, so be gentle ]

I have two NICs in my Linux desktop which both are connected to
routers/modems of different ISPs. The thing is, I want to be able to use
both interfaces. I don't need anything fancy with port forwarding nor
load balancing, just that a) all outgoing connections go through one NIC
and b) incoming connections are accepted from both NICs.

The situation currently is that both a) and b) work as expected BUT
return packets get lost in b) if the NIC addressed isn't from the same
ISP as the default gateway in use.

ISP1-NICIP  *          255.255.255.255  UH  0  0  0  eth1
ISP2-NICIP  *          255.255.255.255  UH  0  0  0  eth0
ISP2-NET    *          255.255.255.248  U   0  0  0  eth0
ISP1-NET    *          255.255.255.0    U   0  0  0  eth1
127.0.0.0   *          255.0.0.0        U   0  0  0  lo
default     ISP1-GWIP  0.0.0.0          UG  0  0  0  eth1

In this configuration incoming connections for ISP1-NICIP work but for
ISP2-NICIP the return packets get routed through ISP1-GWIP (which is
obviously incorrect).

What am I not seeing here? How to make a route table that will take into
account through which NIC the connection came and use the default
gateway of that NIC or should I look at doing some hardware changes?

Thank you in advance,

        Samuli




-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to