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

wireguard: Fix IPv6-only VPN #1353

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leseratte10
Copy link
Contributor

Since Wireguard VPNs have been introduced, it looks like nobody has ever tested them with an IPv6-only VPN.

As I already reported on the forums, when you create a Wireguard tunnel and select "IPv6 only" for the "Network Protocol", the tunnel doesn't start because the PostUp and PostDown commands are corrupted (see this).

PostUp and PostDown commands are being created for IPv4 routes, with an empty gateway IP, which obviously doesn't work.

With this change (not adding IPv4 routes if there's no IPv4 gateway or no IPv4 tunnel IP) at least lets me successfully start a Wireguard tunnel with IPv6.

I'm marking this as a draft PR (so please don't merge yet) because I haven't tested everything with this v6-only VPN and I'm not yet sure if this change doesn't break other use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant