天天看点

debian 6.0&¢os6.0部署socket5

debian6.0

apt-get install automake make gcc g++ libpam0g-dev libldap2-dev

tar zxvf ss5-3.6.1-1.tar.gz

cd ss5-3.6.1

./configure --with-defaultport=12379

make

make install

然后我们对ss5的配置文件进行修改

/etc/opt/ss5/ss5.conf

找到

auth 0.0.0.0/0 - -

改成

auth 0.0.0.0/0 - u

然后在/etc/opt/ss5/ss5.passwd中添加用户名和密码,格式为一行一个用户密码

test 123456

启动ss5:

#ss5 &

centos6.0

service iptables stop

yum -y install wget gcc automake autoconf libtool make pam-devel openldap-devel cyrus-sasl-devel

wget http://www.54nb.com/ss5-3.6.1-1.tar.gz

/etc/init.d/ss5 start

chkconfig --add ss5

chkconfig ss5 on

netstat -antp

本文转自 西索oO 51CTO博客,原文链接:http://blog.51cto.com/lansgg/1202714

继续阅读