On Wed, Jun 27, 2012 at 04:36:48PM +1000, Andrew Cowie wrote: > Is there a way to have tinc change the interface according to whether it > thinks it is successfully connected to a [external] next hop? [...] > I'm sure typing > > # ifconfig tun0 down > > would do the trick, but presumably we want something a touch more > elegant — and automatic — than that.
You could do this with up/down scripts for a specific host you are interested
in. Say you want to have the interface be up when node foo is reachable, then
create the following files:
hosts/foo-up:
#!/bin/sh
ifconfig $INTERFACE up
hosts/foo-down:
#!/bin/sh
ifconfig $INTERFACE down
--
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>
signature.asc
Description: Digital signature
_______________________________________________ tinc mailing list [email protected] http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
