# Give it the right ip and netmask. Remember, the subnet of the
# tap device must be larger than that of the individual Subnets
# as defined in the host configuration file!
# Give it the right ip and netmask. Remember, the subnet of the
# tap device must be larger than that of the individual Subnets
# as defined in the host configuration file!
- MYIPS=`getent hosts ${SUBDOMAIN}.immae.eu | cut -d' ' -f1 | tr "\\n" ' '`
- GWIP=`getent hosts vpn.immae.eu | head -n1 | cut -d' ' -f1`
- sleep 5
+ MYIPS=`getent hosts ${SUBDOMAIN}.immae.eu | cut -d' ' -f1 | tr "\\n" ' '`
+ GWIP=`getent hosts gw.vpn.immae.eu | head -n1 | cut -d' ' -f1`
+ sleep 5
-ip -6 route add default via $GWIP
-(cd /etc/tinc/$NETNAME/hosts && git pull -q origin master) || true
+ip -6 route add default via $GWIP dev $INTERFACE table 655
+(cd "$SCRIPT_DIR" && git pull -q origin master) || true