1. 配置 Socks5 编译环境:
# yum -y install gcc automake autoconf libtool make
2. 安装 Socks5 必要的包:
# yum -y install pam-devel openldap-devel cyrus-sasl-devel
3.下载,编译安装 Socks5:
到此下载:http://sourceforge.net/projects/ss5/files/
官方实例:http://ss5.sourceforge.net/examples.htm
# wget -c http://downloads.sourceforge.net/project/ss5/ss5/3.6.4-3/ss5-3.6.4-3.tar.gz
# tar zxvf ss5-3.6.4-3.tar.gz
# cd ss5-3.6.4
# ./configure (默认是1080端口,如果想改端口的话 ./configure –with-defaultport=10800 )
# make
# make install
4. 赋予ss5可执行权限,启动ss5服务,并添加至开机启动:
# chmod -R +x /etc/init.d/ss5
# /etc/init.d/ss5 start
# chkconfig ss5 on
5. 添加 SS5 用户:
ss5 默认使用1080端口,并允许任何人使用。
可以修改配置文件:
# vi /etc/opt/ss5/ss5.conf
添加 用户名和密码,一行一个用户+密码:
# vi /etc/opt/ss5/ss5.passwd
