1
VPN not working [SOLVED] (lemmy.blahaj.zone)
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

I'm running Pop OS 22.04, everything updated. I've been trying to use Mullvad VPN, which I've installed using the latest .deb on their site, but as soon as I connect to a server I seem to lose internet access. It shouldn't be a problem with my network because the VPN works perfectly on my other devices, even with the same settings. I've also tried with other servers and other versions of the deb. Then I also tried with two other VPNs (Proton and RiseUp), neither of which worked.

At this point it has to be something with how the connection is configured on Linux. I've left everything as default.

top 2 comments
sorted by: hot top new old
[-] [email protected] 1 points 2 years ago

Sounds like you might have a firewall issue. Check the status of ufw. sudo ufw status

Mullvad's app is excellent as far as VPN clients go. Normally I won't use them and prefer using a config like @slippers suggested or just use a router. However, Mullvad's app is the exception and works well on all my business machines with Pop!_OS. You should check the killswitch status. Another thing you could try is enabling "Quantum core". One of my staff was having issues and that bypassed whatever was happening. It's super quick as an added benefit.

[-] [email protected] -5 points 2 years ago

I asked Claude AI and chatgpt4 and this is what they recommended:

CLAUDE v1.3:

It sounds like you may have an issue with your Linux network configuration that is causing problems when connecting to a VPN. Here are some things to check:

Ensure the OpenVPN tun module is loaded. Run lsmod | grep tun to check. If it's not loaded, run sudo modprobe tun. This is required for OpenVPN to function.

Check that your firewall allows VPN traffic. Run sudo ufw allow OpenVPN to open the OpenVPN port (1194 UDP). You may need to disable the firewall completely for testing using sudo ufw disable.

Run ifconfig to ensure you have a tun0 interface when the VPN is active. If not, it indicates OpenVPN is not setting up the interface properly.

Check for any AppArmor, SELinux or iptables VPN connection rules blocking traffic. You may need to disable these temporarily for testing.

Try running OpenVPN manually to check for errors. Run sudo openvpn /path/to/mullvad.ovpn and look for any authentication or networking errors.

Double check that your account credentials and server addresses in the Mullvad config are correct.

Try running OpenVPN as root to rule out any permission issues. Use sudo openvpn /path/to/mullvad.ovpn.

Disable any VPN killswitch you may have enabled. A killswitch could be blocking internet traffic when the VPN drops.

Try other Mullvad servers to ensure it's not an issue with one specific server. Also try different Mullvad proxy settings if applicable.

Reinstall OpenVPN and Mullvad to ensure no software issues. Then reboot and retest.

If still no luck, it may help to temporarily disable NetworkManager while testing OpenVPN. Run sudo systemctl stop NetworkManager.service. Restart it when done testing.

One of these steps should help resolve the problem and get your VPN connectivity working properly again in Pop OS. Let me know if any of these fixes help or if you have any other questions! I'm happy to provide more detailed guidance if needed.

ChatGPT4:

It seems like you're experiencing a common issue with VPNs on Linux where the VPN connection is established, but you're unable to access the internet. This could be due to a number of reasons, but here are a few troubleshooting steps you can try:

Check your DNS settings: Sometimes, VPN issues can be caused by DNS problems. When you connect to a VPN, your DNS settings should be changed to the VPN's DNS servers to prevent DNS leaks. However, if this doesn't happen correctly, it can cause issues. You can try manually setting your DNS servers to a public DNS, like Google's (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1 and 1.0.0.1), and see if that resolves the issue.

Check your firewall settings: Firewalls can sometimes interfere with VPN connections. You can try temporarily disabling your firewall to see if that resolves the issue. If it does, you'll need to configure your firewall to allow the VPN connection.

Check for conflicting software: Other network software can sometimes interfere with VPN connections. If you have any other VPNs or network tools installed, try uninstalling them to see if that resolves the issue.

Check the VPN logs: Most VPNs will generate logs that can provide more information about what's going wrong. You can usually find these in the system logs or in a specific log file for the VPN. Look for any error messages or warnings that occur when you try to connect to the VPN.

Contact the VPN provider: If you're still unable to resolve the issue, it might be worth reaching out to Mullvad's support. They may be able to provide more specific troubleshooting steps, and they can also check if there are any issues with their servers that could be causing the problem.

Remember to revert any changes if they don't help resolve the issue, especially disabling the firewall, as it's an important security feature.

this post was submitted on 16 Jun 2023
1 points (100.0% liked)

Pop!_OS (Linux)

5607 readers
7 users here now

Pop!_OS is an operating system developed by System76 for STEM and creative professionals who use their computer as a tool to discover and create. Unleash your potential on secure, reliable open source software. Based on your exceptional curiosity, we sense you have a lot of it.

Unleash your potential

Whether this is your first experience with Linux, or your latest adventure, all are welcome to discuss and ask questions about Pop!_OS and COSMIC. Keep the discussions friendly though, and remember to assume good intentions whenever you reply. We're all here because we have a shared love for Linux and open source software.

System76 Logo

Support us by buying System76 hardware for you or your company! Or by donating on the Pop!_OS website through the "Support Pop" button. Pop!_OS and COSMIC are fully funded by System76 hardware sales. All systems are assembled in the USA. With your support, we'll work to push the Linux desktop forward with COSMIC.

Links

Guides

Hardware

Recommended

Community Rules

Follow the Code of Conduct

All posts on pop_os must adhere to the Pop!_OS community Code of Conduct. https://github.com/pop-os/code-of-conduct

Be helpful

Posts to pop_os must be helpful. When responding to a user asking for help, do not provide tongue-in-cheek responses like "RTM" or links to LMGTFY. Linking to direct sources that answer the asker's question is fine, but it's advised to provide some explanation as to how you got to that source.

Critique should be constructive

We within the Pop!_OS community welcome helpful criticism or ideas on ways to improve. However, basic "It's bad" or other simple negative comments don't help anyone fix anything. When voicing a complaint about something, try to point out ways the complaint could be improved or worked around, so that we can make a better product for it.

This rule applies to both Pop!_OS and its projects as well as other products available from third-parties.

Don't post malicious "advice"

It can be funny to joke about malicious commands, however this is not the venue for it. Do not advise users to run commands which will lock up their systems, steal their data, or erase their drive. Examples of this include (but are not limited to) fork bombs, rm, etc.

Posts violating this rule will be removed, even if the post is clearly in jest. Repeated offences may lead to a ban. You may understand that the command isn't serious, but a new user might not.

No personal attacks

Posts making a personal attack on any user will not be tolerated.

No hate speech

Hate speech of any kind will not be tolerated. Any violations will be removed, and are grounds for a ban.

founded 2 years ago
MODERATORS