From f18d10cbede53d8ad4a58608dbee213712ced55b Mon Sep 17 00:00:00 2001 From: Alfred Krohmer Date: Thu, 3 Oct 2013 16:53:42 +0200 Subject: [PATCH] fixed subnets --- hosts-template | 5 +++++ tinc-up-template | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hosts-template b/hosts-template index f3200d8..94348ed 100644 --- a/hosts-template +++ b/hosts-template @@ -1,3 +1,8 @@ # Public Address: optional #Address = mydomain.com + +# einzelne IP Subnet = /32 + +# komplettes Subnet (z.B. /24-Netz) +#Subnet = /24 diff --git a/tinc-up-template b/tinc-up-template index 03e8fc0..24b070a 100755 --- a/tinc-up-template +++ b/tinc-up-template @@ -1,6 +1,5 @@ #!/bin/sh -ifconfig $INTERFACE /32 netmask 255.255.255.255 -route del -net /32 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\nsearch vpn" | resolvconf -a "$INTERFACE.inet" +ifconfig $INTERFACE netmask 255.255.0.0 + +# printf "nameserver 10.42.16.1\nsearch vpn" | resolvconf -a "$INTERFACE.inet"