From d31a964648fd79f69b0ddfea4d99433019ef9109 Mon Sep 17 00:00:00 2001 From: fram3d Date: Thu, 23 Nov 2023 06:08:03 +0100 Subject: [PATCH] update ipv6tunnel conf --- hosts/krov/ipv6tunnel12/etc/network/interfaces | 5 +++-- .../krov/ipv6tunnel12/lib/systemd/system/ifuptunnel.service | 2 +- hosts/krov/ipv6tunnel12/root/scripts/netstart.sh | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100755 hosts/krov/ipv6tunnel12/root/scripts/netstart.sh diff --git a/hosts/krov/ipv6tunnel12/etc/network/interfaces b/hosts/krov/ipv6tunnel12/etc/network/interfaces index 7f8a030..2b0a321 100644 --- a/hosts/krov/ipv6tunnel12/etc/network/interfaces +++ b/hosts/krov/ipv6tunnel12/etc/network/interfaces @@ -9,11 +9,12 @@ iface eth0 inet static auto he-ipv6 iface he-ipv6 inet6 v4tunnel address 2001:470:1f1a:1a4::2 - netmask 64 + netmask 127 endpoint 216.66.87.14 local 192.168.1.208 ttl 255 gateway 2001:470:1f1a:1a4::1 -iface eth0 inet6 dhcp +iface eth0 inet6 static + address 2001:470:1f1a:1a4::5/96 diff --git a/hosts/krov/ipv6tunnel12/lib/systemd/system/ifuptunnel.service b/hosts/krov/ipv6tunnel12/lib/systemd/system/ifuptunnel.service index 79fd59c..3d3ab4d 100644 --- a/hosts/krov/ipv6tunnel12/lib/systemd/system/ifuptunnel.service +++ b/hosts/krov/ipv6tunnel12/lib/systemd/system/ifuptunnel.service @@ -3,7 +3,7 @@ Description=Auto start ipv6 tunnel After=network.target [Service] -ExecStart=/usr/sbin/ifup he-ipv6 +ExecStart=/usr/bin/bash /root/scripts/netstart.sh # Remove restarts if the command is just a one-off Restart=on-failure RestartSec=5s diff --git a/hosts/krov/ipv6tunnel12/root/scripts/netstart.sh b/hosts/krov/ipv6tunnel12/root/scripts/netstart.sh new file mode 100755 index 0000000..4782537 --- /dev/null +++ b/hosts/krov/ipv6tunnel12/root/scripts/netstart.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ifup he-ipv6 +ip -6 route add default via 2001:470:1f1a:1a4::1 dev he-ipv6