搭建Socks5 Proxy与ProxyChains-NG/Proxifier

环境:
上网机 CentOS release 6.9 (Final) 搭建ss5
内网机 CentOS release 6.7 (Final) 安装proxychains
在上网机操作:

[root@download6 ~]# cat /etc/redhat-release 
CentOS release 6.9 (Final)
[root@download6 ~]# yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel
[root@download6 ~]# tar zxvf ss5-3.8.9-8.tar.gzcd ss5-3.8.9
[root@download6 ~]# cd ss5-3.8.9-8
[root@download6 ~]#./configure
[root@download6 ~]#make
[root@download6 ~]#make install
[root@download6 ss5-3.8.9]# whereis ss5
ss5: /usr/sbin/ss5 /usr/lib/ss5 /usr/share/man/man1/ss5.1.gz /usr/share/man/man1/ss5.1.bz2
[root@download6 ss5-3.8.9]# chmod +x /etc/init.d/ss5chkconfig --add ss5

必须把配置文件/etc/opt/ss5/ss5.conf备份后清空,否则会报错“socks method unknown or bad request”
清空后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.pa

# proxychains.conf VER 3.1 # # HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS. # # The option below identifies how the ProxyList is treated. # only one option should be uncommented at time, # otherwise the last appearing option will be accepted # #dynamic_chain # # Dynamic - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # at least one proxy must be online to play in chain # (dead proxies are skipped) # otherwise EINTR is returned to the app # strict_chain # # Strict - Each connection will be done via chained proxies # all proxies chained in the order as they appear in the list # all proxies must be online to play in chain # otherwise EINTR is returned to the app # #random_chain # # Random - Each connection will be done via random proxy # (or proxy chain, see chain_len) from the list. # this option is good to test your IDS :) # Make sense only if random_chain #chain_len = 2 # Quiet mode (no output from library) #quiet_mode # Proxy DNS requests - no leak for DNS data proxy_dns # Some timeouts in milliseconds tcp_read_time_out 15000 tcp_connect_time_out 8000 # ProxyList format # type host port [user pass] # (values separated by 'tab' or 'blank') # # # Examples: # # socks5 192.168.67.78 1080 lamer secret # http 192.168.89.3 8080 justu hidden # socks4 192.168.1.49 1080 # http 192.168.39.93 8080 # # # proxy types: http, socks4, socks5 # ( auth types supported: "basic"-http "user/pass"-socks ) # [ProxyList] # add proxy here ... # meanwile # defaults set to "tor" socks5 192.168.23.15 10808 dns_server = 8.8.8.8
05-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值