Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 setup is incomplete #17

Open
TheReverend403 opened this issue Jul 5, 2019 · 3 comments
Open

IPv6 setup is incomplete #17

TheReverend403 opened this issue Jul 5, 2019 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@TheReverend403
Copy link

TheReverend403 commented Jul 5, 2019

While you mention the sysctl and iptables setup needed for ipv4, no such documentation is mentioned for IPv6 tunneling.

IPv6 forwarding can be enabled with net.ipv6.conf.all.forwarding

Also, net.ipv4.conf.all.proxy_arp is not necessary at all.

Also also, you can bypass sysctl entirely by just adding IPForward=yes to your public interface's networkd config, assuming you're using systemd.

Finally, if you're using systemd >= 241, you can make the whole process a hell of a lot easier by just using networkd's native wireguard support, like so. (See the official docs on this for further reading)

# /etc/systemd/network/30-wg0.netdev

[NetDev]
Name=wg0
Kind=wireguard
Description=WireGuard

[WireGuard]
PrivateKey=<key>
ListenPort=51820

[WireGuardPeer]
PublicKey=<key>
AllowedIPs=10.8.0.2/32, fd42:42:42::2/128
PersistentKeepalive=25
# /etc/systemd/network/30-wg0.network

[Match]
Name=wg0

[Network]
Address=10.8.0.1/24
Address=fd42:42:42::1/64
@pirate
Copy link
Owner

pirate commented Jul 8, 2019

Great suggestions, thanks! I use netplan personally which is why I think I missed those docs initially. If you want to PR some changes I'd be happy to accept them! Otherwise it might take a while as I usually test config stuff personally before adding it, and my setup is working nicely right now so I might not get around to it for a few weeks.

@ghost

This comment has been minimized.

@TheReverend403

This comment has been minimized.

@pirate pirate added enhancement New feature or request help wanted Extra attention is needed labels Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants