The one change I did was to only have a default gateway for the one isp I wanted. aka instead of
ip route add default table 222 proto static \
nexthop via GWE1 dev IFE1 weight 1\
nexthop via GWE2 dev IFE2 weight 1
mentioned in the docs i only use:
ip route add default table 222 proto static \
nexthop via GWE1 dev IFE1 weight 1
With this setup, all traffic originating from my network, goes out through the one default route I specified. However incomming connections from either isp always go back out the same isp they came in from. I don't have any connection marking or seperate internal networks setup. Basically tables 201 and 202 select the route based on the src address, and this works with NAT as well because it tracks a connection and will remember which src address to translate it back to.
- Jody
On 12/20/05, Janis Daniel Bistevins <bistevins@xxxxxxxxx> wrote:
sorry if I can't explain correctly what my problem is.
What I need is to route traffic originated inside my lan by one ISP,
and traffic coming from another ISP (mostly requests to machines
inside the lan)back by the same ISP.
The way I've found is by creating two diferent networks inside my lan.
Those machines running services have two IP's on its NICs. That way I
can route depending the source of the packets.
I have a snapshot of my drawing, so you can figure this out.
http://www.iglobal.com.ar/~janis/snap0000.xpm--
---------- Forwarded message ----------
From: Janis Daniel Bistevins < bistevins@xxxxxxxxx>
Date: Dec 19, 2005 12:05 PM
Subject: Inbound and outbound traffic problem
To: lartc@xxxxxxxxxxxxxxx
+---------------+
+----+ ISP A | |
| |-----------------| |
+----+ | |
+------+
| ROUTER | NET C | www |
| LINUX
|----------------| |
| |
NET D +-------+
+----+ ISP B | |
| |----------------| |
+----+ | |
+----------------+
Hi!
I need that requests to www arriving from net ISP A returns by the
same route, but connections initiated from www go out by net ISP B.
The only way I have discovered so far is creating two differents
networks (NET C and NET D)
So, www have a route to ISP A by NET C and a default route by NET D .
On the Linux Router evereything coming from NET D is routed by NET B
and everything coming from NET C is routed by NET A
This is accomplished by creating logical interfaces on www and on the
Linux Router.
Is there another way to do this?
Thanks in advance.
Regards.
--
Janis Bistevins
>Belief is 9/10 of YOUR reality<
Janis Bistevins
>Belief is 9/10 of YOUR reality<
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc