Youtube视频
相关链接
dae config
# 全局配置
global {
# 绑定lan网口提供给内网设备,填自己服务器的网口,多个逗号隔开
lan_interface: ens18
wan_interface: auto
log_level: info
auto_config_kernel_parameter: true
dial_mode: domain
allow_insecure: false
so_mark_from_dae: 1234
# tls配置
tls_implementation: utls
utls_imitate: chrome_auto
}
# 订阅配置
subscription {
}
# 节点配置
node {
# 配置socks5出站节点,连接到sing-box的入站
HK: 'socks5://localhost:1080'
}
# 分组配置,以下采用固定策略,使用第一个节点
group {
elden_proxy {
policy: fixed(0)
}
}
# dns配置
dns {
upstream {
googledns: 'udp://dns.google.com:53'
alidns: 'udp://dns.alidns.com:53'
}
routing {
request {
qname(geosite:cn) -> alidns
fallback: googledns
}
response {
upstream(googledns) -> accept
fallback: accept
}
}
}
# 路由配置
routing {
pname(NetworkManager) -> direct
dip(224.0.0.0/3, 'ff00::/8') -> direct
dip(geoip:private) -> direct
### 以下是自定义规则
## 规则
ip(geoip:cn) -> direct
domain(geosite:cn) -> direct
domain(geosite:category-ads) -> block
# 增加将sing-box流量直连不通过dae的路由配置
pname(sing-box) -> must_direct
# 默认出站分组
fallback: elden_proxy
}
sing-box hysteria2 config
{
"inbounds": [
{
"type": "socks",
"tag": "socks-in",
"listen": "::",
"listen_port": 1080,
"tcp_fast_open": true,
"tcp_multi_path": false,
"udp_fragment": true,
"sniff": false,
"sniff_override_destination": false,
"sniff_timeout": "300ms",
"udp_timeout": 300
}
],
"outbounds": [
{
"type": "hysteria2",
"tag": "proxy",
"server": "你的服务器IP或者域名",
"server_port": 443,
"up_mbps": 100,
"down_mbps": 100,
"password": "你的密码",
"tls": {
"enabled": true,
"server_name": "你的域名"
},
"brutal_debug": false
}
],
"route": {
"auto_detect_interface": true,
"final": "proxy"
}
}
6 条评论
请问一下 我单独复制你的singbox配置 然后ubuntu直接配置socks5 1080出去 提示如下是什么问题,
ERROR[0114] [2079910181 0ms] inbound/socks[socks-in]: process connection from 127.0.0.1:43784: invalid argument
INFO[0114] [856500317 0ms] inbound/socks[socks-in]: inbound connection from 127.0.0.1:43800
另外请问一下,用了这个,就不需要额外配置adguardhome+mosdns了吧
用不用看你自己的需求
大佬请问一下,我用debian+dae+sing-box按你上面这个设置了,但是curl www.baidu..com的时候提示dns解析错误。旁路网关的,请问该怎么配置作为dns服务器呢
大鹅可以用singbox的节点搞链式代理吗,比如说 socks(singbox) -> 大鹅节点
不可以