From f0c77c819ac9a0e3b0ce84c6eba3dea101cd23b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 2 Oct 2013 21:51:43 +0200 Subject: [PATCH 1/4] set generic ip --- tinc-up | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinc-up b/tinc-up index e30daff..1d1bdc6 100644 --- a/tinc-up +++ b/tinc-up @@ -1,5 +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 netmask 255.255.255.255 +route del -net netmask 255.255.255.255 dev $INTERFACE route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE From 7a2f50ea6c31507c1dfde17d5e9f8da8bae0423d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 2 Oct 2013 22:11:43 +0200 Subject: [PATCH 2/4] make script executeable --- tinc-down | 0 tinc-up | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tinc-down mode change 100644 => 100755 tinc-up diff --git a/tinc-down b/tinc-down old mode 100644 new mode 100755 diff --git a/tinc-up b/tinc-up old mode 100644 new mode 100755 From 5474e5b4b8ec0d33408d820ba6e1251e9c4d58ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 2 Oct 2013 22:14:11 +0200 Subject: [PATCH 3/4] wrong node name in default config --- tinc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinc.conf b/tinc.conf index 195cbb5..067d705 100644 --- a/tinc.conf +++ b/tinc.conf @@ -1,5 +1,5 @@ name = Compression = 9 ConnectTo = devkid -ConnectTo = higgsboson.tk +ConnectTo = higgsboson PrivateKeyFile = /etc/tinc/closedvpn/rsa_key.priv From 096f3c1ad7d2f58cabe2f4a8a66b2537dade6729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 2 Oct 2013 23:56:20 +0200 Subject: [PATCH 4/4] add vpn search domain --- tinc-down | 1 + tinc-up | 1 + 2 files changed, 2 insertions(+) diff --git a/tinc-down b/tinc-down index 77b397c..2c01755 100755 --- a/tinc-down +++ b/tinc-down @@ -1,2 +1,3 @@ #!/bin/sh ifconfig $INTERFACE down +printf "nameserver 10.42.16.1\ndomain vpn" | sudo /sbin/resolvconf -a "$INTERFACE.inet" diff --git a/tinc-up b/tinc-up index 1d1bdc6..11b4759 100755 --- a/tinc-up +++ b/tinc-up @@ -4,3 +4,4 @@ exit 1 ifconfig $INTERFACE netmask 255.255.255.255 route del -net netmask 255.255.255.255 dev $INTERFACE route add -net 10.42.0.0 netmask 255.255.0.0 dev $INTERFACE +printf "nameserver 10.42.16.1\ndomain vpn" | sudo /sbin/resolvconf -a "$INTERFACE.inet"