Set up Surflare CLI on Linux
Supported Distributions
Surflare CLI works on 64-bit Linux systems with nftables 0.9 or higher.
Check system requirements
Surflare CLI creates an outbound-only transparent proxy. Inbound connections like SSH are not affected. Verify your system meets the requirements:
nft --versionInstall Surflare
Run the one-line install command in your terminal:
curl -fsSL https://www.surflare.com/static/linux-setup.sh | sudo bash/code>

Log in to your account
After installation, launch the interactive menu.
It will prompt you to enter your email and password to log in.
sudo surflare
Connect to VPN
After logging in, the server is set to "Auto Best" by default. Simply tap the Connect button to connect to the fastest server based on your location.

You can also choose a specific server location, configure routing modes, or enable Multi-Hop VPN as needed.
VPN Server Selection
- Auto Detect (Recommended)
Automatically connects to the fastest server. Best for general use when you don't need a specific location.
- City
If you need to access from a specific country or city, select the desired location. When multiple servers are available in one city, the app automatically connects to the fastest one.
- Specific Server
Manually select an individual server from the list if needed.

Routing Modes

Transit Server (Multi-Hop VPN)
Surflare will automatically find the fastest nearby relay server to forward your data, significantly improving connection speed.
You can also specify a transit server manually if needed.

Once you have configured your preferences, tap the Connect button to start your VPN connection.
Verify Your Connection
After connecting, check your internet IP address in the app to confirm you are connected. Try accessing apps and websites to ensure everything works as expected.
You can also verify from the terminal:
Check VPN connection status and current server:
sudo surflare statusVerify your public IP and location match the VPN server:
curl ipinfo.ioTroubleshooting
If you encounter any issues, you can send a diagnostic report to our support team. This collects connection logs and system information to help us resolve your problem faster.
sudo surflare feedbackAfter sending the report, contact our 24/7 support team with your account email so we can look up your diagnostic data.
CLI Commands Reference
Besides the interactive menu, you can also run commands directly in your terminal. Click any command to copy it.
sudo surflare Launch interactive menu sudo surflare login Log in to your account sudo surflare logout Log out and clear local data sudo surflare connect Connect to VPN sudo surflare disconnect Disconnect from VPN sudo surflare status Show connection status sudo surflare nodes List available nodes sudo surflare ping <host> Test connectivity sudo surflare feedback Submit diagnostic report Uninstall
To completely remove Surflare from your system:
curl -fsSL https://www.surflare.com/static/linux-setup.sh | sudo bash -s uninstall