Linux VPN Connection Issues

One of the common issues faced by Linux users when using a VPN is the inability to connect or
frequent disconnections. This issue is often caused by incorrect DNS settings. Changing the
DNS to more reliable and faster servers can help resolve this problem.

Changing System DNS

One of the quickest ways to resolve VPN connection problems is to modify the system’s DNS
settings. Here are two methods you can use:

Method 1:

  1. Go to Settings.
  2. Navigate to Wi-Fi or your connected network.
  3. Under the IPv4 settings, disable automatic DNS.
  4. Enter either Google’s DNS (8.8.8.8) or Cisco’s DNS (208.67.220.220).

Method 2 (Temporary):

  1. Open the terminal and run the following command:
  2. sudo vi /etc/resolv.conf
  3. In the opened file, manually enter Google’s DNS (8.8.8.8) or Cisco’s DNS
    (208.67.220.220).

Changing Application DNS

To fix VPN issues directly within your VPN applications, such as Nekoray or Hiddify, follow
these steps:

  1. Open the application’s settings.
  2. Locate the DNS settings and input Google’s DNS (8.8.8.8) or Cisco’s DNS
    (208.67.220.220).

FoxyProxy Browser Extension | Without Tun Mode

If you are using a browser proxy, FoxyProxy is a convenient extension available for both
Chrome and Firefox.

Download for Chorome
Download for FireFox

To configure the VPN proxy settings:

  1. Open FoxyProxy Setting > Proxies
  2. Set the title to “VPN-Nekoray”
  3. Enter Hostname = “127.0.0.1" and Port = “2080”(Nekoray Port).
  • With this method, there is no need to use Tun Mode of VPN application, just open VPN application and select “VPN-Nekoray” proxy on FoxyProxy.

Using Telegram Proxy

To configure a proxy for Telegram via Nekoray:

  1. Add a new proxy.
  2. Select “SOCKS5” as the proxy type.
  3. Set Hostname = “127.0.0.1” and Port = “2080”(Nekoray Port)

By following these methods, you can effectively troubleshoot and resolve VPN connectivity
issues on Linux, ensuring a more stable and secure connection.