VPS配置ss5
迎国庆,一片和谐之声,天天翻墙实属无奈。原本想做个openvpn,结果配置出了点问题,只好暂时安装个SOCKS5 server,以解燃眉之急。
搜索sourceforge.net,发现了ss5,一款配置简单、功能却很强大的SOCKS5 服务程序.
下载:
# wget http://downloads.sourceforge.net/project/ss5/ss5/3.7.9-1/ss5-3.7.9-1.tar.gz?use_mirror=ncu
编译安装:
#./configure
#make && make install
安装完成后对应文件如下:
- /etc/opt/ss5/ss5.conf 配置文件
- /etc/init.d/ss5 服务启动/关闭/重载脚本
- /etc/sysconfig/ss5 服务启动选项文件
- /usr/lib/ss5/* .so 模块文件
调整下/etc/opt/ss5/ss5.conf配置文件,使其支持用户验证:
- auth 0.0.0.0/0 – u
- permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – -
增加用户验证文件/etc/opt/ss5/ss5.passwd,添加以下内容
- test 123456
启动服务:
#service ss5 restart
测试却发现客户端一旦连接,服务就down掉.看来还是存在问题。
调整下ss5的工作方式,调整默认的线程工作方式(ss5 -t)为进程工作方式,调整为如下/etc/init.d/ss5:
- daemon /usr/sbin/ss5 $SS5_OPTS
启动测试一切正常.
后话:已将ss5 在线程工作模式下出错的strace结果提供给SS5作者,看是否是程序一个BUG
ss5作者Mat已经回信:
Hi, ss5 works on Fedora and other 32bit platforms. You should run it also with threaded mode.
看来软件本身应该经过良好的测试,不存在问题,看来是VPS空间的系统有点小问题而已.
Comment from Dorla Buckhalter
Time 2011年04月18日 at 19:24
When i quite prefer whatever you submit in this article. Extremely useful in addition to smart. Just one challenge though. I’m running Internet explorer having Debian in addition to elements of this present web design portions undoubtedly are a very little wonky. When i understand it’s an excellent normal established. Yet still it’s an issue to help retain in view. When i trust so it can guide in addition to always keep in the prime excellent publishing.