On Tue, Feb 02, 2016 at 11:25:30AM +0100, Jelle de Jong wrote:

> How can I execute a dynamic script under Windows when the TINC tunnel
> comes up? To say execute the following command: route ADD 0.0.0.0 MASK
> 255.255.252.0 192.168.200.1 METRIC 5 IF 24

Just like under Linux, but add the extension ".bat" to the scripts, so
tinc-up.bat and hosts/server01-up.bat. You can then use netsh commands
in the .bat files, and use %INTERFACE% instead of $INTERFACE.

-- 
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