0

I'm using Kubuntu 20.04 and having issues with L2TP VPN

By the way it was working fine up until today, would connect and all traffic was fine. Now the VPN connects but I cant do anything.. even www.google.com doesnt work.

The strange thing is that I have another machine with the same OS and I set up the VPN there and it works fine. Also, I had the same issue before (twice!).. reinstalled kubuntu and it worked fine again! I don't want to re-install kubuntu again as it's a pain in the backside to set up everything I need.

By the way, following this solution seems to partly solve it: How to disable systemd-resolved in Ubuntu?

The problem with the above solution is that the VPN becomes extremely slow. Anyone know what the problem is and how I can solve it? Like I say if I install the OS freshly then it works perfectly fine.. but then after a few weeks I get the issue again!

Storms786
  • 101

2 Answers2

0

I had lots of rules in iptables related to docker (I use docker a lot), so decided to uninstall docker completely. After the purge I rebooted and then connected the VPN and it worked fine.

So, it worked without any changes to systemd-resolved - i.e. the OS was configured as it would be out of the box

Somewhere along the line of using docker it starts to interfere with my VPN by the changes it makes to the iptables!

Uninstalling docker solved my problem... I am going to reinstall docker and will probably hit the same issue again eventually!

How to completely uninstall docker

###Edit I think this is the best solution and has worked for me https://www.lullabot.com/articles/fixing-docker-and-vpn-ip-address-conflicts

In case the article gets taken down the solution in a nutshell is create a daemon.json as follows

    $ vi /etc/docker/daemon.json
    {
      "default-address-pools" : [
        {
          "base" : "172.240.0.0/16",
          "size" : 24
        }
      ]
    }
Storms786
  • 101
0

You don't need to uninstall docker totally. If you disable the bridge that docker made in your system, your problem might solved!

Check out the following links:

Lorenz Keel
  • 8,905
MoYa
  • 124