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.

  • M4775@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    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.

    • nxnxOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Thank you, selecting Wireguard only and activating quantum tunnel fixed it!

      • M4775@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Nice. I’m quite impressed by the quantum tunnel in both security and performance.

    • nxnxOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      I had tried that but Network Manager couldn’t read the config or something. Anyways I fixed the issue by enabling quantum tunnel, but thank you anyways for replying!

  • YellowtoOrange@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    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.