diff --git a/tinc-down b/tinc-down index 4db990d..3a7de53 100755 --- a/tinc-down +++ b/tinc-down @@ -1,3 +1,3 @@ #!/bin/sh ifconfig $INTERFACE down -printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -d "$INTERFACE.inet" +printf "nameserver 10.42.16.1\ndomain vpn" | resolvconf -d "$INTERFACE.inet" diff --git a/tinc-up b/tinc-up index fe38218..15b9896 100755 --- a/tinc-up +++ b/tinc-up @@ -1,7 +1,6 @@ #!/bin/sh -echo "add your ip to this file!" -exit 1 -ifconfig $INTERFACE 10.42.1.10 netmask 255.255.255.255 +ifconfig $INTERFACE 10.42.16.1 netmask 255.255.255.0 +route del -net 10.42.16.0 netmask 255.255.255.0 dev $INTERFACE route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE -printf "nameserver 10.42.16.1\ndomain vpn" | resolveconf -a "$INTERFACE.inet" +printf "nameserver 10.42.16.1\ndomain vpn" | resolvconf -a "$INTERFACE.inet"