Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Linux

Proxifier for Linux: Does It Exist? Best Alternatives on Ubuntu

Proxifier for Linux alternatives on Ubuntu guide by 99RDP

Proxifier is a popular tool that forces applications to use a proxy, even apps that have no proxy settings of their own. Many people search for "Proxifier for Linux" or "Proxifier Ubuntu", but there is no Linux version: Proxifier is made for Windows, macOS and Android. The good news is that Linux has free tools that do the same job. This guide shows the best ones and how to set them up on Ubuntu.

Quick answerUse proxychains-ng.

sudo apt install proxychains4
sudo nano /etc/proxychains4.conf      # add your proxy at the end, e.g. socks5 203.0.113.10 1080
proxychains4 curl https://ifconfig.me  # runs curl through the proxy

Is there a Proxifier version for Linux?

No. Proxifier's developer publishes versions for Windows, Windows Server, macOS and Android only. Packages labelled "Proxifier for Linux" on third-party sites are unrelated projects. You can run the Windows version under Wine, but it can't capture traffic from native Linux apps, so it isn't a real substitute.

Option 1: proxychains-ng (per application)

proxychains-ng routes the TCP connections of any program you start with it through one or more proxies (SOCKS4, SOCKS5 or HTTP).

Install

sudo apt update
sudo apt install proxychains4

Configure

Open /etc/proxychains4.conf (or copy it to ~/.proxychains/proxychains.conf for a per-user config) and replace the example at the bottom of the [ProxyList] section with your proxy:

[ProxyList]
socks5  203.0.113.10  1080  username  password
# http   203.0.113.20  8080

Keep proxy_dns enabled so DNS lookups also go through the proxy. Use strict_chain to chain several proxies in order, or dynamic_chain to skip dead ones.

The ProxyList section of /etc/proxychains4.conf with a SOCKS5 proxy entry
Adding a proxy to proxychains4.conf

Use it

proxychains4 firefox
proxychains4 ssh user@example.com
proxychains4 -q git clone https://github.com/example/repo.git   # -q = quiet

Limits: proxychains works with dynamically linked programs that use normal TCP sockets. It doesn't handle UDP, and statically linked programs (many Go binaries) ignore it.

Diagram of proxychains: it intercepts an app network calls and sends them through the SOCKS or HTTP proxy
How proxychains works

Option 2: environment variables (command-line tools)

Most command-line tools respect the standard proxy variables:

export http_proxy="http://203.0.113.20:8080"
export https_proxy="$http_proxy"
export all_proxy="socks5h://203.0.113.10:1080"
export no_proxy="localhost,127.0.0.1"

Add them to ~/.bashrc to make them permanent. apt needs its own setting: create /etc/apt/apt.conf.d/95proxy with Acquire::http::Proxy "http://203.0.113.20:8080/";.

Option 3: desktop proxy settings (GNOME)

On Ubuntu Desktop, open Settings → Network → Network Proxy, choose Manual and enter your HTTP or SOCKS proxy. Browsers and most desktop apps use it. Apps that ignore system settings still need proxychains or Option 4.

Option 4: route all traffic (transparent proxy)

To send every application through a proxy, like Proxifier's "all connections" mode, use a TUN-based tool such as tun2socks, or a client such as sing-box or Xray in TUN mode. They create a virtual network interface and route system traffic through your SOCKS5 proxy. This covers apps that ignore proxy settings, including UDP traffic if the proxy supports it. Keep a route to the proxy server itself outside the tunnel, or the connection loops.

Diagram of proxy scope on Linux: one app, the terminal, the desktop or the whole system
How much traffic goes through the proxy

Which option should you use?

NeedBest tool
A few specific apps through a proxyproxychains-ng
Command-line tools, scripts, aptEnvironment variables / apt config
Browser and desktop appsGNOME network proxy settings
Everything, including apps that ignore proxiestun2socks or a TUN-mode client

Frequently asked questions

Is Proxifier available for Linux?

No. Proxifier is only available for Windows, macOS and Android. On Linux, use proxychains-ng or a TUN-based tool instead.

What is the best Proxifier alternative for Ubuntu?

proxychains-ng for forcing individual programs through a proxy, and tun2socks (or a TUN-mode client) for routing all traffic.

Does proxychains work with SOCKS5 authentication?

Yes. Add the username and password after the port in the [ProxyList] line.

Why does proxychains not work with some programs?

It works by preloading a library into the program, so statically linked binaries and programs that use UDP bypass it. Use a TUN-based tool for those.

Nishant Kumar, Sr. Server Engineer at 99RDP
Written byNishant KumarSr. Server Engineer, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Linux guides

All Linux guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services