copy ipv6 services

This commit is contained in:
Aminda Suomalainen 2015-04-23 22:38:30 +03:00
parent 79edef13b7
commit 27d24a81b1
3 changed files with 35 additions and 0 deletions

View File

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

View File

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

View File

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