-
-
Notifications
You must be signed in to change notification settings - Fork 524
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
Mullvad VPN cannot connect (IPv6) #1250
Comments
hi @mattfbacon , This is more or less the expected behaviour. For connections initiated from kernel space to establish the tunnel, you need to have the 'ebpf' process monitor method working. Verify that you have the kprobe iptunnel_xmit added correctly: When it's working you should see pop-ups like this one: But in any case, there will not be a connection from "mullvad". |
I just need something I can allow with a rule. If there was a way to allow connections from within the kernel, I would do that, but as it is "Unknown process" is not helpful and doesn't seem to allow creating rules based on it at all. # grep iptunnel_xmit /sys/kernel/debug/tracing/kprobe_events
p:kprobes/piptunnel_xmit iptunnel_xmit opensnitch-ebpf-module is installed. How can I verify if it is used? |
I think that we're not intercepting ipv6 tunnels correctly. Go to the Mullvad preferences -> VPN settings -> Wireguard settings , and select IPv4. and see if a popup similar to this one shows up: You could also force the VPN port on the Wireguard settings -> Port, and allow connections to that port. |
Another option would be to exclude the vpn connection from being intercepted. Using a fixed VPN port (51820), you can go to the Rules tab -> System rules -> mangle-inet -> output-output, and enable the predefined rule "Exclude Wireguard". It'll add a rule to allow direct connection to the port 51820 |
Correct, with ipv4 it works (because I had already allowed "Kernel connection"). |
thank you @mattfbacon for confirming it. I'll try to fix it. |
ok, the thing is that we hook iptunnel_xmit() to intercept IPv4 tunnel connections. The IPv6 equivalent function is ip6tunnel_xmit(), but it's not exported as available to monitor: So we have to find one that report these connections. |
Mullvad VPN cannot connect as described in mullvad/mullvadvpn-app#7412
If I disable Opensnitch with the Pause button Mullvad works instantly. No deny events are logged in Opensnitch, but when I enable "Debug invalid connections" I instantly get these "Unknown process" dialogs, correlated with Mullvad trying to connect.
Reproduction
Environment
Linux framework 6.12.7-arch1-1.1 #1 SMP PREEMPT_DYNAMIC Sat, 28 Dec 2024 03:18:00 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: