closedvpn/tinc-up

8 lines
244 B
Plaintext
Raw Normal View History

#!/bin/sh
echo "add your ip to this file!"
exit 1
ifconfig $INTERFACE 10.42.1.10 netmask 255.255.255.255
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\ndomain vpn" | resolveconf -a "$INTERFACE.inet"