diff --git a/etc/systemd/system/README.md b/etc/systemd/system/README.md new file mode 100644 index 00000000..aacd0085 --- /dev/null +++ b/etc/systemd/system/README.md @@ -0,0 +1,5 @@ +The IPv6 files are copied from https://www.reddit.com/r/raspberry_pi/comments/14vcpz/rpi_as_an_ipv6_router_using_a_sixxs_tunnel_and/ +an they are here because they were my biggest difficulty with having +Arch on Pi as IPv6 router. + +Also helpful https://wiki.archlinux.org/index.php/IPv6_tunnel_broker_setup diff --git a/etc/systemd/system/ipv6-ula.service b/etc/systemd/system/ipv6-ula.service new file mode 100644 index 00000000..56e39599 --- /dev/null +++ b/etc/systemd/system/ipv6-ula.service @@ -0,0 +1,15 @@ +[Unit] +Description=Enable IPv6 forwarding - ULA +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/sbin/sysctl net.ipv6.conf.all.forwarding=1 +ExecStart=/sbin/ip addr add fdb8:9a38:1607::1/64 dev eth0 + +ExecStop=/sbin/sysctl net.ipv6.conf.all.forwarding=0 +ExecStop=/sbin/ip addr del fdb8:9a38:1607::/64 dev eth0 + +[Install] +WantedBy=multi-user.target diff --git a/etc/systemd/system/ipv6.service b/etc/systemd/system/ipv6.service new file mode 100644 index 00000000..77a8c950 --- /dev/null +++ b/etc/systemd/system/ipv6.service @@ -0,0 +1,15 @@ +[Unit] +Description=Enable IPv6 forwarding +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/sbin/sysctl net.ipv6.conf.all.forwarding=1 +ExecStart=/sbin/ip addr add 2001:14b8:100:8397::1/64 dev eth0 + +ExecStop=/sbin/sysctl net.ipv6.conf.all.forwarding=0 +ExecStop=/sbin/ip addr del 2001:14b8:100:8397::1/64 dev eth0 + +[Install] +WantedBy=multi-user.target