sing-box

安装

yay -S sing-box

启动服务

systemctl enable --now sing-box

配置

配置文件是 /etc/sing-box/config.json.

Issues

Tun

如果有相关 /dev/net/tun: No such device 的报错,重启系统[1]

ssh port

有些 provider 给的配置里面对于 ssh 的 22 端口处理不好,可以单独写一个 cofig-22.json

{
  "route": {
    "rules": [
      {
        "port": [
          22
        ],
        "outbound": "direct"
      }
    ]
  }
}

表示 22 端口的出口使用直连。

然后在 /etc/sing-box 下,使用 sing-box merge config.json -c config.json -c config-22.json 即可。

Powered by Org Mode.