Skip to main content

CLI

Run the server and client from the command line.

First, install TunGo.

Server setup​

Allow incoming connections to the ports you use. See Server networking and ports.

Create a client configuration

sudo tungo s gen

Copy the configuration — you will need it to connect the client.

Start the server:

sudo tungo s

Client setup​

On Linux / macOS, create /etc/tungo if it does not exist, then save the generated client configuration as /etc/tungo/client_configuration.json. Set the file permissions to 600. These steps require administrator privileges. Start the client:

sudo tungo c
Windows

On Windows, save the configuration to %ProgramData%\TunGo\client_configuration.json. In PowerShell running as administrator:

cd "$env:ProgramFiles\TunGo"
.\tungo-windows-amd64.exe c

For arm64, replace amd64 with arm64 in the filename.