To install gost (Go Simple Tunnel) from source on Ubuntu 16.04, follow these steps:

2. Download source gost

Navigate to the directory where you want to save the source code and clone the gost

bash
wget http://aferon.com/gost-master.zip

3. Build gost

Go into the gost directory and build it using go build:

bash
apt install unzip unzip gost-master.zip cd gost-master/cmd/gost go build

This will create the executable gost file in the current directory.

4. Move gost to a system path (optional)

For easier access, move the compiled gost binary to a directory that’s included in your system’s PATH, such as /usr/local/bin:

bash
sudo mv gost /usr/local/bin/

Now you can run gost from anywhere on the system.

5. Verify the installation

To verify that gost was installed correctly, run:

bash
gost -v

If the installation was successful, you should see the version of gost displayed.

6. Run gost

You can now run gost, for example, to create a simple tunnel:

bash
gost -L=:1080 -F=example.com:8080

This will start gost as a server listening on port 1080 and forwarding traffic through the remote server example.com on port 8080.

Additional Configuration

You can configure gost to work with various proxy types, SSL, encryption, and other features by referring to the official gost GitHub repository for more options and documentation.


Now gost is installed and ready to use on your Ubuntu 16.04 system!