sing-box TUN模式透明代理
前言 你的软路由到底是用来做旁路由还是主路由?如果是旁路由的话,只用科学上网不妨试试Linux旁路由网关 docker镜像构建 原本是64位的处理器,可惜之前装的32位操作系统,所以只能从Dockerfile自己构建喽 拉源码 git clone https://github.com/SagerNet/sing-box.git 构建镜像 docker build --no-cache -t laningya/sing-box:v1 . docker-compose.yml文件 version: "3.3" services: sing-box: image: laningya/sing-box:v1 container_name: sing-box restart: always network_mode: "host" volumes: - ./conf:/etc/sing-box/ devices: - /dev/net/tun:/dev/net/tun cap_add: - ALL command: -D /var/lib/sing-box -C /etc/sing-box/ run 要开启tun模式,devices和cap_add字段非常重要 ...