mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-23 11:12:48 +01:00
copy ipv6 services
This commit is contained in:
parent
79edef13b7
commit
27d24a81b1
5
etc/systemd/system/README.md
Normal file
5
etc/systemd/system/README.md
Normal 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
|
15
etc/systemd/system/ipv6-ula.service
Normal file
15
etc/systemd/system/ipv6-ula.service
Normal 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
|
15
etc/systemd/system/ipv6.service
Normal file
15
etc/systemd/system/ipv6.service
Normal 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
|
Loading…
Reference in New Issue
Block a user