部署

cd /root
mkdir proxywithsd
cd proxywithsd
wget https://vip.123pan.cn/1815238395/image/centos7.9.2009withssh.tar.gz
docker load -i centos7.9.2009withssh.tar.gz

docker-compose.yaml

version: "3.3"

services:
  socks5:
    image: xxx/library/centos:centos7.9.2009withssh
    restart: always
    ports:
      - 9999:9999/tcp
      - 47892:9999/tcp
    entrypoint:
      - sh
      - -euc
      - |
        umask 077
        /bin/cat <<'EOF'> /root/id_rsa
        xxx
        -----END RSA PRIVATE KEY-----
        EOF
        /bin/cat <<'EOF'> /root/id_rsa.pub
        ssh-rsa xxx
        EOF
        /usr/bin/ssh -i /root/id_rsa -o StrictHostKeyChecking=no -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -CND 0.0.0.0:9999 root@xxx -p 47895

networks:
  wireguard-network:
    driver: bridge
    ipam:
      config:
        - subnet: 172.18.0.0/24
    name: socks5-network
最后修改:2024 年 05 月 11 日
如果觉得我的文章对你有用,请随意赞赏