CentOS搭建socket5Proxy 伺服器

來源:互聯網
上載者:User

標籤:

1.安裝socket5依賴包yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel 2.下載ss5並安裝下載官網:http://ss5.sourceforge.net/軟體包:http://iweb.dl.sourceforge.net/project/ss5/ss5/3.8.9-6/ss5-3.8.9-6.tar.gz 注意:不要下載最新版ss5-3.8.9-7.tar.gz,這個包安裝後布不能啟動,報以下錯誤:[11/Dec/2012:14:44:50 CST] [INFO] SS5 Version 3.8.9 - Release 7 starting[11/Dec/2012:14:44:50 CST] [INFO] Copyright (C) 2002-2011 by Matteo Ricchetti - <[email protected]>[11/Dec/2012:14:44:50 CST] [INFO] Setting dynamic configuration.[11/Dec/2012:14:44:50 CST] [INFO] Cleaning old configuration.[11/Dec/2012:14:44:50 CST] [INFO] Loading and validating new configuration.[11/Dec/2012:14:44:50 CST] [0] [ERRO] $S5LoadConfData$: (No such file or directory).[11/Dec/2012:14:44:50 CST] [ERRO] Configuration not switched. [email protected]:~# tar zxvf ss5-3.8.9-6.tar.gz[email protected]:~# cd ss5-3.8.9[email protected]:~# ./configure && make && make install[email protected]:~# cd /etc/opt/ss5[email protected]:/etc/opt/ss5# lsss5.conf  ss5.ha  ss5.passwd ss5.conf配置#auth    0.0.0.0/0               -               -去掉注釋,改為auth    0.0.0.0/0               -               uu:使用ss5.passwd帳號密碼登入,-:預設任何人都可使用 #permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -去掉注釋:permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       - 添加使用者名稱密碼vim ss5.passwdtest test 3. 啟動socks服務測試[email protected]:~# chmod 777 /etc/rc.d/init.d/ss5[email protected]:~# /etc/init.d/ss5 start 

如果遇到問題   can‘t unlink pid file /var/run/ss5/ss5.pid

這是因為已經有ss5在運行,ps -A | grep ss5

再kill掉它,再start即可

 

添加 ss5 到服務中,並隨機啟動

chkconfig --add ss5

chkconfig ss5 on

這樣就可以直接service ss5 restart了,不用指定路徑/etc/init.d/ss5了

 

預設是1080連接埠

改ss5連接埠,格式為ss5  -b ip地址:連接埠

CentOS搭建socket5Proxy 伺服器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.