update ipv6tunnel conf

This commit is contained in:
fram3d 2023-11-23 06:08:03 +01:00
parent 62f216066f
commit d31a964648
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,4 @@
#!/bin/bash
ifup he-ipv6
ip -6 route add default via 2001:470:1f1a:1a4::1 dev he-ipv6