Centos7安裝socks5代理服務器

Centos7安裝socks5代理服務器

 

# 安裝依賴
yum -y install gcc gcc-c++ automake make pam-devel openldap-devel cyrus-sasl-devel openssl-devel
# 下載ss5
wget http://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz;
cd ss5-3.8.9
./configure
make
make install

編輯/etc/opt/ss5/ss5.conf配置文件,去掉下面兩行的註釋

1

2

auth    0.0.0.0/0               -               -

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

 

啓動ss5

1

2

chmod a+x /etc/init.d/ss5

/etc/init.d/ss5 start

 添加開機啓動

1

2

chkconfig --add ss5

chkconfig ss5 on

 

好了,這就已經可以了。另外:

如果需要設置訪問權限(編輯/etc/opt/ss5/ss5.conf)

1

2

3

4

#       SHost           SPort           Authentication

auth    0.0.0.0/0               -               u

#      Auth        SHost           SPort   DHost           DPort   FixupGroup    Band    ExpDate

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

並在/etc/opt/ss5/ss5.passwd配置文件中添加用戶和密碼

1

2

user1 123

user2 123

ss5默認使用1080端口,並允許任何人使用,更改默認端口需要修改/etc/sysconfig/ss5配置文件,添加如下信息

1

SS5_OPTS=" -u root -b 0.0.0.0:8080"

 

 

 

發佈了21 篇原創文章 · 獲贊 6 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章