CentOS5.X配置Socket5代理

 Socket5代理安装配置

yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel

wget http://superb-dca2.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz

tar xvzf ss5-3.8.9-8.tar.gz 

cd ss5-3.8.9

./configure --prefix=/usr/local/ss5

make && make install

vi /etc/opt/ss5/ss5.conf
### 最简单配置,添加下面两行即可
auth 0.0.0.0/0 - -
permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
### 相对更安全一些的配置,添加用户、密码验证即可,这里不多介绍了。

vi /etc/opt/ss5/ss5.passwd

chmod 777 /etc/rc.d/init.d/ss5

/etc/init.d/ss5 start

/etc/init.d/ss5 restart

#--------Specail Setting of Sockets For x.x.x.x/24 --------------#
iptables -A INPUT -p tcp -s x.x.x.0/24 --destination-port 1080 -j ACCEPT


export SS5_SOCKS_PORT=10809

curl --socks5 x.x.x.x:1080 http://www.google.com

 

你可能感兴趣的:(centos,socket,proxy)