--- simplevpn 2013-05-22 17:54:10.000000000 +0200 +++ simplevpn-n 2018-11-06 14:53:13.679887350 +0100 @@ -23,7 +23,7 @@ if [ "$1" == "-6" ]; then shift; - MODE=ipip6 + MODE=any PROT="-6" fi @@ -41,6 +41,8 @@ true ${LOCALIP:="192.168.77.1"} true ${REMOTEIP:="192.168.77.2"} +true ${LOCALIP6:="fd00:1::1"} +true ${REMOTEIP6:="fd00:1::2"} true ${DEVNAME:="simplevpn"} # 4 is encapsulated IPv4 both in IPv4 an IPv6 @@ -62,7 +64,8 @@ ip link set $DEVNAME up ip -4 addr add $LOCALIP/32 dev $DEVNAME ip -4 route add $REMOTEIP/32 dev $DEVNAME - +ip -6 addr add $LOCALIP6/128 dev $DEVNAME +ip -6 route add $REMOTEIP6/128 dev $DEVNAME "$@" << EOF set -e @@ -85,4 +88,6 @@ ip link set $DEVNAME up ip -4 addr add $REMOTEIP/32 dev $DEVNAME ip -4 route add $LOCALIP/32 dev $DEVNAME + ip -6 addr add $REMOTEIP6/128 dev $DEVNAME + ip -6 route add $LOCALIP6/128 dev $DEVNAME EOF \ Kein Zeilenumbruch am Dateiende.