Created
May 31, 2018 16:26
-
-
Save fionn/faf8116830c9458045e7e1cb0979462a to your computer and use it in GitHub Desktop.
IPv6 routing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Add IPv6 routes | |
After=network.target | |
Before=wg-quick@wg0.service openvpn-server@server.service | |
[Service] | |
Type=simple | |
ExecStart=/path/to/ipv6_routing.sh | |
StandardOutput=syslog | |
StandardError=syslog | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ip -6 addr add a:b:c:d::1234/128 dev eth0 | |
ip -6 route add a:b:c:d::1 dev eth0 | |
ip -6 route add default via a:b:c:d::1 dev eth0 | |
ip -6 route |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment