TransWikia.com

OpenVPN with Wifi Leaks on Ubuntu

Server Fault Asked by MadPhysicist on November 24, 2021

I have been setting up VPNs on several machines and checking the success of the setup using the following service:

ipleak.net

It appears that a successful setup (on a MacOS, using Tunnelblick) returns the following

enter image description here

On an Ubuntu machine, I have the following setup using the built-in VPN (and OpenVPN)

enter image description here

That is, the machine is connected to a Wifi network through which it connects to the Internet. It is also connected to a VPN with the same provider as the that of the Mac above. Note, that the provider is the same, but the actual VPN servers are different.

However, upon checking for leakage, I see this.

enter image description here

As you can see, there are two different countries at play here. Why is that? Does that mean the VPN is leaking? What can be done to address this issue?

P.S. If it helps, the Ubuntu version was setup using the GUI features and NOT something like sudo openvpn <vpn.opnv>

One Answer

Probably the VPN uses IPv4 only, so IPv6 requests reach the server directly. A web server can use this to determine your IPv6 address even if the server reached via IPv4.

Since you probably don't use IPv6 for anything anyway, your best bet is to simply disable it. Add these two lines to /etc/sysctl.conf:

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

and run sysctl -p /etc/sysctl.conf to apply the changes.

Answered by Lacek on November 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP