To install tun2socks on Ubuntu 16.04, follow these steps:
Before installation, first install Go from this link https://liz.su/manual/3
Next, clone the badvpn repository from GitHub, which contains tun2socks:
Navigate to the directory where you cloned the repository and build tun2socks:
This will create the tun2socks binary in the badvpn directory.
For easier access, move the tun2socks binary to a directory included in your system’s PATH, such as /usr/local/bin:
Now you can run tun2socks from any location on your system.
To check if tun2socks was installed correctly, run the following command:
If the installation was successful, you should see the version information for tun2socks.
Here’s an example of how to use tun2socks to create a tunnel: where ens18 the main interface
Now tun2socks is installed and ready to use on your Ubuntu 16.04 machine!