Default source address
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 6 lines · Sebastian Spies
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:
Quoted 7 lines
ip rule add from w.x.y.z table 20
ip route add default via tun0 table 20Everything 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.
Signature · 5 lines
Paul "TBBle" Hampson, on an alternate email client. _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc