jklolixxs / Sing-Box_Actions_Builder

7 stars 6 forks source link

请问sing-box有客户端服务端的区别吗? #1

Closed mia0x75 closed 5 months ago

mia0x75 commented 6 months ago

docker-compose.yml如下,config.json 是从 cfmem.com 上面找的,xray,sing-box和smartdns在同一台机器上,现在在使用xray。启动之后发现sing-box接管了dns,所有域名ping都是198.18.0.x,而且无法上所有外网。

就是在软路上跑一个socks5服务,这个镜像合适使用吗?我看无论是config.json,还是镜像本身都没有端口或端口映射的配置。

services:
  sing-box:
    image: jklolixxs/sing-box:v1.8.13
    container_name: ${CONTAINER_NAME}
    restart: unless-stopped
    network_mode: host
    cap_add:
      - NET_ADMIN
      - NET_BIND_SERVICE
      - SYS_PTRACE
      - DAC_READ_SEARCH
    devices:
      - /dev/net/tun:/dev/net/tun
    environment:
      - TZ=Asia/Shanghai  # set desired timezone
    volumes:
      - ./data/:/etc/sing-box
    command: -D /etc/sing-box/ -C /etc/sing-box/ run