TCPGATE SOCKS4 and SOCKS5 Server
The TCPGATE SOCKS (tgsocks) is a SOCKS4 and SOCKS5 server, it is built using the core modules of TCPGATE. For more information, please visit the
TGSOCKS Programming Blog .
Create the Container
To create a container as daemon process, enter the following command
docker run -d -p 14007:14007 -p 1080:1080 -v /var/log/tgsocks:/var/log/tgsocks --name tgsocks tgsocks:tagnameCopy
Port number description as following:
14007: Telnet port of TGSOCKS
1080: TGSOCKS listening port for SOCKS protocol
If you host has enabled SELinux, add option --security-opt label=disable
Restart the TGSOCKS Inside the Container
After the container is created, you can enter into the container by the following command
docker exec -i -t tgsocks bashCopy
You can restart the TGSOCKS program by the following command
/usr/local/upinget/stoptgsocks.shCopy