Docker 安装 Socks Server 5

Socks Server 5 简介

(自己翻译,我翻译不来。。。)

SS5 is a socks server that implements the SOCKS v4 and v5 protocol. As a proxy server, SS5 authenticates, profiles and processes network requests for clients. It establishes connections to application hosts for client applications. When the client attempts to access the network, the client connects to the SS5 daemon instead of the application host.
Following authentication, clients request that SS5 perform network activities for the client. The activities might include:
Connect
Bind
Udp Associate
The SS5 protocol is independent of application protocols, and can assist with different networking services, including telnet, ftp, finger, whois, gopher, and WWW access.

官网

http://ss5.sourceforge.net

docker-compose 安装

version: '2'
services:
  ss5:
    image: "docker.io/cogset/socks-server-5"
    privileged: true
    container_name: ss5
    restart: always    
    volumes:
       - $PWD/.etc:/etc/opt/ss5
       - $PWD/log:/var/log/ss5
    ports:
      - "45678:1080"

相关配置

  • 修改ss5.conf配置文件:auth 设定 u 方式,permit 设定 u 方式(启用用户名密码访问)
  • 修改ss5.passwd配置文件,添加用户名密码,以行为单位,格式:用户名[空格]密码,可添加多个,如:
      admin pass
      zhangsan pass
      lisi pass
    
  • 重启容器
  • 防火墙等端口方面的相关配置

截图示例

auth 设定

permit 设定

参考资料

文档更新时间: 2019-03-13 11:38   作者:Seeker