V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
seedscoder
V2EX  ›  问与答

Mac M1 Docker 环境下, aTrust(深信服的一款代理软件)使用问题

  •  
  •   seedscoder · 5 天前 · 446 次点击

    我想在 Docker 容器中启动 aTrust,然后通过 Clash for Windows 转发。

    公司的内部软件,有些是直接通过 IP 形式访问,有些是通过域名形式访问;但是我现在遇到一个比较奇怪的问题

    • 通过 IP 形式访问的软件,可以通过代理正常问题
    • 通过域名形式访问的软件,就不正常了

    docker-compose.yml

    version: '3.5'
    services:
      easyconnect:
        image: hagb/docker-atrust:latest
        ports:
          - 5901:5901
          - 51080:1080
          - 54631:54631
          - 58888:8888
        volumes:
          - ./easyconnect/atrust:/root/.aTrust
        environment:
          DISABLE_PKG_VERSION_XML: 1
        devices:
          - /dev/net/tun
        cap_add:
          - NET_ADMIN
    

    Clash for Windows

    parsers: # array
        - url: 这是一串 url 订阅地址
          yaml:
            prepend-proxies:
              - name: Xxx-Proxy
                type: socks5
                server: 127.0.0.1
                port: 51080
                tls: false
                skip-cert-verify: true
                udp: false
            prepend-rules:
              - IP-CIDR,172.16.0.0/16,Xxx                  # case 1 : 可以正常访问
              # - DOMAIN-SUFFIX,example.com,Xxx # case 2 : 无法访问
            
           append-proxy-groups:
              - name: Xxx
                type: url-test
                url: http://www.gstatic.com/generate_204
                interval: 3600
                proxies:
                  - Xxx-Proxy
    

    是我使用方式不对吗?还是需要什么特殊配置?如果有了解的大佬,求 cc

    4 条回复    2024-06-25 08:57:48 +08:00
    seedscoder
        1
    seedscoder  
    OP
       5 天前
    通过域名形式访问时候,页面出现的错误信息是:504 Gateway Time-out
    seedscoder
        2
    seedscoder  
    OP
       5 天前


    seedscoder
        3
    seedscoder  
    OP
       5 天前
    截图 1 对应的局域网 IP ,是可以正常访问的,但是截图 2 使用域名的形式就不可以了
    Dosenf
        4
    Dosenf  
       4 天前
    atrust 是零信任,类似于 IPsecVPN 的升级版本,对身份校验很严格,零信任网关里可能只配置了 ip 地址段没有配置信任域名,数据包被全部丢弃了,进网关配置,如果配置不了叫 400 客服
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   891 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 21:34 · PVG 05:34 · LAX 14:34 · JFK 17:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.