type
status
date
slug
summary
tags
category
icon
password
sing-box客户端透明代理的搭建,可以配合ros一起,将网关和dns服务器指定到sing-box服务可以达到域名分流,科学上网。
sing-box客户端的搭建:
- 先搭建一个ubuntu的客户端以便搭建sing-box客户端
- 开启系统的转发功能:
- 关闭ubuntu中系统自身的dns服务:
注意事项:
- 为了启用sing-box的dns功能,需要在配置文件中增加dns服务模块,其中最为关键的是需要将服务器自身的dns服务关闭,避免占用53端口,同时在sing-box中inbouds增加监听53端口,如下:
同时,需要在rules中增加相应的规则,如下:
- 作者:NotionNext
- 链接:https://tangly1024.com/article/sing-box
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。