source based routing help needed



I've been doing linux for a long time, but never have gotten the hang of
source based routing. I need to set this up now so I am seeing if someone
can help me out... I've seen lots of examples using ppp0/ppp1 and ip
addresses... but I just can't get a handle on this for my setup.

I have
eth0 ( local network )
tun1 ( web server traffic that comes in via a tunnel )

any traffic that comes in via the tun1 interface needs to go
back out the tun1 interface.

any traffic that comes in on the eth0 interface needs to go back
out on the eth0 interface.

I have this sort of working using standard routing where the 'default'
route goes over my tunnel so any web traffic that comes in, goes back
out that way correctly and I have my private network stuff set up to
route via eth0. The issue I have with this is that if the web server
does something like a yum update... the default route uses the tunnel
and I want it to use the eth0 interface.

How can I get source based routing to work on just the eth0 / tun1
interfaces?

Thanks - jack



--
.



Relevant Pages

  • Re: source based routing help needed
    ... any traffic that comes in on the eth0 interface needs to go back out on ... I have this sort of working using standard routing where the 'default' ... route goes over my tunnel so any web traffic that comes in, ... route via eth0. ...
    (comp.os.linux.networking)
  • Re: AT&T Wireless GPRS networking with Merlin G100 card
    ... > Maybe I'm doing something wrong, or because I'm running a 2.6.7 kernel, ... > configure the network route with it as the gateway as you did. ... > This is the routing after adding the host route: ... > The eth0 interface is up but with no IP address. ...
    (comp.os.linux.networking)
  • Re: PPTP client, masquerade and routing
    ... If the tunnel "goes down" then this host route should allow it to be ... reestablished without replacing the tunnel routing with the primary ... I think that the access to ${SERVER} through the Internet as provided ...
    (comp.os.linux.networking)
  • Re: showing esp tunnels in routing table
    ... tunnel do not seem to appear in either "netstat -nr" or 'route get ... and they are encapsulated before the routing table gets a chance ... openbsd's implementation of netstat allows one to view ESP ...
    (freebsd-net)
  • Re: IPsec tunnel up but no traffic
    ... From the verbose output of racoon I can tell then tunnel between both ... nodes is being build the moment I ping an IP adress on the remote LAN ... security policies took care of routing and not the routing table. ... route to the remote network. ...
    (comp.os.linux.networking)