On Sun, Jun 19, 2011 at 10:56:18AM -0500, Rob Townley wrote:

> Does anyone have a script for a travelling laptop that will use
> numerous dhcp assigned default gateways from numerous locations?
> 
> i could script the above, but then when their machine connects at
> another coffee shop, the default gateway would be overwritten with the
> coffee shop default gateway.
> 
> Can /etc/tinc/NETNAME/subnet-up  be used to detect a change in the
> default gateway?

There is an example here:

http://tinc-vpn.org/examples/redirect-gateway/

Although if your default gateway changes before tinc detects that the server is
down, the scripts won't work correctly. However, the scripts use two /1 routes
so they always have a higher priority than a default route.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
tinc mailing list
[email protected]
http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc

Reply via email to