Steps to install sSocks
1. Create a temp folder to download sSocks.
mkdir /tmp/proxy cd /tmp/proxy
2. Install gcc and make
yum -y install gcc make
3. Install sSocks
wget http://downloads.sourceforge.net/project/ssocks/ssocks-0.0.14.tar.gz tar xvzf ssocks-0.0.14.tar.gz cd ssocks-0.0.14 ./configure make make install
4. Copy conf files
cd src cp ssocksd.conf /etc cp ssocksd.auth /etc
5. (Optional – Enabling Authentication) Edit the conf file
cd /etc vi ssocksd.conf
(Modify the line below – Remove “#”)
(Before) # auth = /etc/ssocksd.auth (After) auth = /etc/ssocksd.auth
6. (Optional – Enabling Authentication) Edit the auth file
vi ssocksd.auth
(Change the username and the password below)
admin:abcde
7. Add sSocks to Firewall
firewall-cmd --permanent --zone=public --add-port=1080/tcp
8. Start ssocksd
ssocksd --file /etc/ssocksd.conf &