All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Default source address
@ 2005-07-10  9:19 Sebastian Spies
  2005-07-10 10:20 ` Paul Hampson
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Spies @ 2005-07-10  9:19 UTC (permalink / raw)
  To: lartc

Hi,

I'm using vpnc to connect to a vpn.
The VPN-GW wants me to use him as a default route. So I used
source-routing to differ between my physical ethernet and the tunnel:

ip rule add from w.x.y.z table 20
ip route add default via tun0 table 20

Everything works fine, as I have a client to set my inet4-srcaddress.

My question is: Is there a way, to tell linux which is my default
sourceaddress?


Greets,
Sebastian
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Default source address
  2005-07-10  9:19 [LARTC] Default source address Sebastian Spies
@ 2005-07-10 10:20 ` Paul Hampson
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Hampson @ 2005-07-10 10:20 UTC (permalink / raw)
  To: lartc

On Sun, Jul 10, 2005 at 11:19:33AM +0200, Sebastian Spies wrote:
> Hi,

> I'm using vpnc to connect to a vpn.
> The VPN-GW wants me to use him as a default route. So I used
> source-routing to differ between my physical ethernet and the tunnel:

> ip rule add from w.x.y.z table 20
> ip route add default via tun0 table 20

> Everything works fine, as I have a client to set my inet4-srcaddress.

> My question is: Is there a way, to tell linux which is my default
> sourceaddress?

It should use the primary address of the interface the routing table
picks to send the data out of. If you've managed to get multiple primary
addresses, it picks the lowest one, numerically, I believe.

Otherwise you have to bind your side of the socket to an address, and
it should use that.

-- 
Paul "TBBle" Hampson, on an alternate email client.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-10 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10  9:19 [LARTC] Default source address Sebastian Spies
2005-07-10 10:20 ` Paul Hampson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.