搭建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.passwd設置用戶名和密碼

test  test

啓動服務
service ss5 start

在內網機上操作:

[root@localhost~]# yum -y install gcc
[root@localhost~]# unzip proxychains-ng-master.zip
[root@localhost~]# cd proxychians-ng-master
[root@localhost~]# ./configure --prefix=/usr --sysconfdir=/etc
[root@localhost~]# make
[root@localhost~]# make install
./tools/install.sh -D -m 644 libproxychains4.so /usr/lib/libproxychains4.so
./tools/install.sh -D -m 755 proxychains4 /usr/bin/proxychains4
[root@localhost~]#  make install-config (安裝proxychains.conf配置文件)
./tools/install.sh -D -m 644 src/proxychains.conf /etc/proxychains.conf

配置文件/etc/proxychains.conf不用刪除,最後添加

[ProxyList]
socks5  上網機ip 1080  test   test

如果客戶端是windows系統,使用Proxifier作爲客戶端連接Socks5 Proxy
參考文檔
https://blog.csdn.net/dc666/article/details/81335901
https://blog.csdn.net/wu_cai_/article/details/80271478
https://blog.csdn.net/NEUQ_zxy/article/details/80293529

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章