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

Cannot activate VPN if IPv6 disabled in the Kernel #64

Open
smutel opened this issue Dec 7, 2022 · 0 comments
Open

Cannot activate VPN if IPv6 disabled in the Kernel #64

smutel opened this issue Dec 7, 2022 · 0 comments

Comments

@smutel
Copy link

smutel commented Dec 7, 2022

Hello,

I disabled IPv6 in the Kernel by adding these lines in /etc/sysctl.conf:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

When I want to start wireguard VPN, the connection is failing and I have this error messages in syslog:

NetworkManager[7487]: [#] wg set wg0 fwmark 51820
NetworkManager[7487]: [#] ip -6 route add ::/0 dev wg0 table 51820
NetworkManager[7532]: Error: IPv6 is disabled on nexthop device.
NetworkManager[1766]: <info>  [1670406156.5651] device (wg0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'external')
NetworkManager[1766]: <info>  [1670406156.5655] device (wg0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
NetworkManager[7487]: [#] ip link delete dev wg0

Here is the IPv6 configuration of wireguard in NetworkManager:

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ignore-auto-routes=true
ip6-privacy=0
method=disabled

Here is the IPv6 configuration of my network interface:

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=disabled
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

No branches or pull requests

1 participant