Skip to content

Instantly share code, notes, and snippets.

@fionn
Created May 31, 2018 16:26
Show Gist options
  • Save fionn/faf8116830c9458045e7e1cb0979462a to your computer and use it in GitHub Desktop.
Save fionn/faf8116830c9458045e7e1cb0979462a to your computer and use it in GitHub Desktop.
IPv6 routing
[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
#!/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