61阅读

socks5代理设置-linux下配置socks5代理ss5

发布时间:2018-05-10 所属栏目:ss5代理

一 : linux下配置socks5代理ss5

1.安装编译环境支持

# yum-y install pam-devel

# yum -y install gcc automake autoconf libtool make

# yum -y install pam-devel openldap-devel cyrus-sasl-devel # yum -y install openssl-devel

2.下载代理软件SS5,编译安装代理软件

# tar xvf ss5-3.8.2-6.tar.gz

# cd ss5-3.8.2-6

# ./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 *** 缺某些库文件, 我看到和pam有关的, 是pam-devel包

# yum -y install pam-devel

# make

# make install

make install之后没有任何显示, 这其实已经安装完毕了, 不必疑惑

3.配置代理软件

修改配置文件:

/etc/opt/ss5/ss5.conf

修改:

auth 0.0.0.0/0 – -

改成:

auth 0.0.0.0/0 – u

修改:

permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -

改成:

permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – -

修改配置文件:

/etc/sysconfig/ss5

打开:SS5_OPTS=” -u root”

然后在/etc/opt/ss5/ss5.passwd中, 一行一个用户+密码

# cat ss5.passwd

test 123456

# /etc/rc.d/init.d/ss5 start

-bash: /etc/rc.d/init.d/ss5: 权限不够

查看文件存在,是没有权限,现在给文件加上权限

# chmod 700 /etc/rc.d/init.d/ss5

继续# /etc/rc.d/init.d/ss5 start

# /etc/rc.d/init.d/ss5 start

doneting ss5? [ OK ]

再重启下看看:

# /etc/rc.d/init.d/ss5 restart

Restarting ss5? Shutting down ss5?

done [ OK ]

doneting ss5? [ OK ]

看来没啥问题, 过了, 现在你就可以使用服务器的IP, 端口1080, 用户test, 密码123456来测试你的socks5服务器了, 更多高级应用, 就参加ss5.conf, 里面有详细的说明.

4. 加入开机自动启动

# chkconfig --add ss5

5.配置linux环境

# iptables -I INPUT -p tcp --dport 7771 -j ACCEPT

# /etc/rc.d/init.d/iptables save

# service iptables restart

6.把代理端口加入至启动项

# vi /etc/rc.local

# /usr/sbin/ss5 -b 192.168.0.100:7771 ##192.168.1.100为代理主机IP地址

#

注意:

以前的版本听说安装会报部分错误,特粘贴出来,具体没有测试

# /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: ` ;;’

vi下看看41行, 在;;之前少了结束fi

38 /usr/local/sbin/ss5 -t

39 fi

40 echo “done”

41 fi

42 ;;

# /etc/rc.d/init.d/ss5 start

doneting ss5? [ OK ]

下面是安装ss5所需要的支持库

yum -y install rpm-build pcre-devel zlib-devel openssl-devel perl-devel gcc openldap-devel pam-devel make vim-minimal tar vixie-cron

二 : 酷狗的问题请问在酷狗的网络设置里,socks5代理怎么设置,我是

酷狗的问题

请问在酷狗的设置里,socks5代理怎么设置,我是手机连电脑,用的是IE代理。软件用动感大挪移


为了安全起见,最好别下载那些代理IP的软件...

只需要在代理设置里面填上服务器还有端口就行了,不用用户名和密码

推荐来代理中国看看:

参考

三 : linux下配置socks5代理ss5

1.安装编译环境支持

# yum-y install pam-devel

# yum -y install gcc automake autoconf libtool make

# yum -y install pam-devel openldap-devel cyrus-sasl-devel # yum -y install openssl-devel

2.下载代理软件SS5,编译安装代理软件

# tar xvf ss5-3.8.2-6.tar.gz

# cd ss5-3.8.2-6

# ./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 *** 缺某些库文件, 我看到和pam有关的, 是pam-devel包

# yum -y install pam-devel

# make

# make install

make install之后没有任何显示, 这其实已经安装完毕了, 不必疑惑

3.配置代理软件

修改配置文件:

/etc/opt/ss5/ss5.conf

修改:

auth 0.0.0.0/0 – -

改成:

auth 0.0.0.0/0 – u

修改:

permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -

改成:

permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – -

修改配置文件:

/etc/sysconfig/ss5

打开:SS5_OPTS=” -u root”

ss5 linux下配置socks5代理ss5

然后在/etc/opt/ss5/ss5.passwd中, 一行一个用户+密码

# cat ss5.passwd

test 123456

# /etc/rc.d/init.d/ss5 start

-bash: /etc/rc.d/init.d/ss5: 权限不够

查看文件存在,是没有权限,现在给文件加上权限

# chmod 700 /etc/rc.d/init.d/ss5

继续# /etc/rc.d/init.d/ss5 start

# /etc/rc.d/init.d/ss5 start

doneting ss5? [ OK ]

再重启下看看:

# /etc/rc.d/init.d/ss5 restart

Restarting ss5? Shutting down ss5?

done [ OK ]

doneting ss5? [ OK ]

看来没啥问题, 过了, 现在你就可以使用服务器的IP, 端口1080, 用户test, 密码123456来测试你的socks5服务器了, 更多高级应用, 就参加ss5.conf, 里面有详细的说明.

4. 加入开机自动启动

# chkconfig --add ss5

5.配置linux环境

# iptables -I INPUT -p tcp --dport 7771 -j ACCEPT

# /etc/rc.d/init.d/iptables save

# service iptables restart

6.把代理端口加入至启动项

# vi /etc/rc.local

# /usr/sbin/ss5 -b 192.168.0.100:7771 ##192.168.1.100为代理主机IP地址

#

注意:

以前的版本听说安装会报部分错误,特粘贴出来,具体没有测试

# /etc/rc.d/init.d/ss5 start

报错

ss5 linux下配置socks5代理ss5

/etc/rc.d/init.d/ss5: line 41: syntax error near unexpected token `;;’ /etc/rc.d/init.d/ss5: line 41: ` ;;’

vi下看看41行, 在;;之前少了结束fi

38 /usr/local/sbin/ss5 -t

39 fi

40 echo “done”

41 fi

42 ;;

# /etc/rc.d/init.d/ss5 start

doneting ss5? [ OK ]

下面是安装ss5所需要的支持库

yum -y install rpm-build pcre-devel zlib-devel openssl-devel perl-devel gcc openldap-devel pam-devel make vim-minimal tar vixie-cron

本文标题:socks5代理设置-linux下配置socks5代理ss5
本文地址: http://www.61k.com/1221573.html

61阅读| 精彩专题| 最新文章| 热门文章| 苏ICP备13036349号-1