fixed subnets

This commit is contained in:
Alfred Krohmer 2013-10-03 16:53:42 +02:00
parent ad3ff46583
commit f18d10cbed
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
# Public Address: optional
#Address = mydomain.com
# einzelne IP
Subnet = <DEINE IP>/32
# komplettes Subnet (z.B. /24-Netz)
#Subnet = <DEINE NETZID>/24

View File

@ -1,6 +1,5 @@
#!/bin/sh
ifconfig $INTERFACE <DEINE IP>/32 netmask 255.255.255.255
route del -net <DEINE IP>/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 <DEINE IP> netmask 255.255.0.0
# printf "nameserver 10.42.16.1\nsearch vpn" | resolvconf -a "$INTERFACE.inet"