closedvpn/tinc-up-template

7 lines
274 B
Plaintext
Raw Normal View History

#!/bin/sh
ifconfig $INTERFACE <DEINE IP>/32 netmask 255.255.255.255
route del -net <DEINE IP>/32 netmask 255.255.255.255 dev $INTERFACE
route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE
2013-10-02 22:45:50 +00:00
printf "nameserver 10.42.16.1\nsearch vpn" | resolvconf -a "$INTERFACE.inet"