MT5 Proxy Setup on Linux.
One proxy dialog. Four values. Your orders stop touching commodity ISP routes.
MT5 has an official native Linux client. The proxy settings path is the same as Windows: Tools → Options → Server tab → Enable proxy server → Proxy… button → SOCKS5. Enter your portal credentials. Restart MT5 to apply.
Need credentials first? Start the 7-day trial on Starter →
How to configure MT5 on Linux
Before you start
You need three things:
- MT5 installed and able to reach your broker without the proxy — confirm a clean baseline connection first.
- Your TradersProxy credentials from the portal: host, port, username, password.
- Five minutes and no active trades open.
Step 1 — Install the official MT5 Linux client
Download MT5 for Linux from MetaQuotes' official site. The Linux client is a native 64-bit binary — no Wine required. Installation is via the downloaded binary: chmod +x mt5setup.deb (or .run) and run it.
Step 2 — Copy your TradersProxy credentials
Log in to the TradersProxy portal. Copy your host, port, username, and password from the connection details panel.
Step 3 — Open the proxy settings in MT5 for Linux
In MT5, navigate to Tools → Options → Server tab. Check Enable proxy server and then click the Proxy… button to open the proxy configuration dialog.
Step 4 — Select SOCKS5 and enter credentials
Enable the proxy. Select SOCKS5 from the protocol dropdown. Paste the host. Enter the port. Fill in username and password from the portal. Click OK.
Step 5 — Fully restart MT5 and confirm
Close MT5 completely — use File → Exit, not just the window close button, to ensure a clean shutdown. Relaunch MT5. Proxy settings apply on restart. Check the connection indicator for green status.
Known gotchas on Linux
Issues traders hit most often when setting up MT5 on Linux.
MT5 Linux requires glibc 2.17 or higher. MT5's native Linux binary requires glibc 2.17+. On Ubuntu 20.04+ and Debian 11+, this is satisfied by default. On older distributions, the binary will fail to launch.
SELinux or AppArmor may block outbound SOCKS5 connections. On systems with SELinux (Fedora, RHEL) or AppArmor (Ubuntu) in enforcing mode, MT5 may be blocked from connecting to the proxy. Check audit logs: 'sudo ausearch -m avc' on SELinux, or 'sudo aa-status' on AppArmor.
MT5 Linux resolves DNS through the system resolver, not the proxy. Like the Windows version, MT5 does not route DNS queries through the SOCKS5 proxy. DNS queries use the system resolver. Only order and data traffic is proxied.
The Linux MT5 client does not support Wine — do not mix them. Use the native MT5 Linux binary directly. Do not run it through Wine. Wine adds unnecessary overhead and breaks the native client's network configuration.
FAQ — MT5 on Linux
Yes. MetaQuotes publishes an official native MT5 binary for Linux. It does not require Wine. This is the recommended approach for Linux-based trading servers.
Yes. The proxy configuration dialog, protocol options, and connection behaviour are identical between the Linux and Windows MT5 clients. The same TradersProxy credentials work on both.
Yes. MT5 for Linux supports headless operation via the --noui flag. The proxy configuration, once saved in the terminal settings file, persists across headless restarts.