- 论坛徽章:
- 0
|
sock5代理软件---SS5的安装配置
安装ss5
tar -zxvf ss5-3.6.4-3.tar.gz
cd ss5-3.6.4
./configure
结果出错,
checking security/pam_misc.h usability... no
checking security/pam_misc.h presence... no
checking for security/pam_misc.h... no
configure: error: *** Some of the headers weren't found ***
centos默认安装,少很多的库文件,没办法,只有放上光驱,安装上
rpm -ivh pam-devel-0.99.6.2-3.26.el5.i386.rpm
结果在make 的时候出错!
还是少库文件
SS5OpenLdap.c:27:18: 错误:ldap.h:没有那个文件或目录
rpm -ivh openldap-devel-2.3.27-8.i386.rpm --nodeps
安装完之后,再make 没有出错
make install
没有反应,其实是安装完成了,
配置文件
/etc/opt/ss5/ss5.conf
将
auth 0.0.0.0/0 - -
改成:
auth 0.0.0.0/0 - u
再在/etc/opt/ss5/ss5.passwd中,创建用户和密码就成了
[root@localhost ss5]# cat ss5.passwd
akin akin
运行看看
[root@localhost ss5]# /etc/rc.d/init.d/ss5 start
/etc/rc.d/init.d/ss5: line 41: syntax error near unexpected token `;;'
/etc/rc.d/init.d/ss5: line 41: ` ;;'
我晕呀,出错!
41行少了fi,加上,,
38 /usr/local/sbin/ss5 -t
39 fi
40 echo "done"
41 fi
42 ;;
再运行..还是不行,说找不到目录,,看一行38
[root@localhost ss5]# /etc/rc.d/init.d/ss5 start
/etc/rc.d/init.d/ss5: line 38: /usr/local/sbin/ss5: 没有那个文件或目录
done
那个目录下没文件,,看来是SEHLL写错了,没办法,复制一个上去吧
cp /usr/sbin/ss5 /usr/local/sbin/ss5
再运行,,ok
[root@localhost ss5]# /etc/rc.d/init.d/ss5 start
doneting ss5... [确定]
ss5还有高级的应用,我这里就不多说了,我只要简单的sock5的代理,这个足够了!
http://blog.chinaunix.net/u/249/article_0_6.html
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/504/showart_1097416.html |
|