分享一个openwrt x86 fakeip网关/分流的全套方案,带ipt/nft规则,带mosdns全套配置,sing-box支持订阅,带ios回家配置,自用很久了。 #837
Replies: 21 comments 43 replies
-
来自D版带着爱 |
Beta Was this translation helpful? Give feedback.
-
谢谢分享,用着可以,我主要用mosdns分流国外转发给 sing-box,我把forward_fakeip的IP修改了。还有下面代码主要作用是什么,我用的docker安装mosdns,是否不需要下面的处理,谢谢
|
Beta Was this translation helpful? Give feedback.
-
是的 不需要 如果用我发的sb配置 就需要了 。 |
Beta Was this translation helpful? Give feedback.
-
请教一下这个怎么和daed配合呢,没太看明白 |
Beta Was this translation helpful? Give feedback.
-
请教一下,如果用的是shadowrocket做的代理,请问应该怎么调整配置呢?好像没有那个fakeip的功能。感谢~ |
Beta Was this translation helpful? Give feedback.
-
请问一下楼主,我是openclash(旁路由),但是没有ipv6,要怎么修改呢?看了几天实在是不知道如何修改,特来请问一下,万分感谢! |
Beta Was this translation helpful? Give feedback.
-
配合mihomo的话,是把nameserver设置为127.0.0.1:8888吗 |
Beta Was this translation helpful? Give feedback.
-
请问这里是什么意思 |
Beta Was this translation helpful? Give feedback.
-
给个建议,把序列和插件分开再加上注释。还有为什么要用服务器插件转交到插件?直接执行插件也可以呀 |
Beta Was this translation helpful? Give feedback.
-
感谢,的确好用 & 省事 |
Beta Was this translation helpful? Give feedback.
-
可以mosdns和singbox可以装在一台旁路由上吗?局域网内所有设备的dns设为旁路由ip? |
Beta Was this translation helpful? Give feedback.
-
建议开一个新的Repo做更新,方便大家一同跟进和维护。 |
Beta Was this translation helpful? Give feedback.
-
/opt/adguardhome/work # nslookup google.com 127.0.0.1:5335 ** server can't find google.com: SERVFAIL ** server can't find google.com: SERVFAIL /opt/adguardhome/work # nslookup google.com 127.0.0.1:53 ** server can't find google.com: SERVFAIL ** server can't find google.com: SERVFAIL /opt/adguardhome/work # nslookup google.com 127.0.0.1:35 /opt/adguardhome/work # nslookup google.com 127.0.0.1:8888 Non-authoritative answer: Non-authoritative answer: /opt/adguardhome/work # nslookup google.com 127.0.0.1:7777 Non-authoritative answer: Non-authoritative answer: /opt/adguardhome/work # nslookup google.com 127.0.0.1:2222 Non-authoritative answer: Non-authoritative answer: /opt/adguardhome/work # nslookup google.com 127.0.0.1:3333 Non-authoritative answer: Non-authoritative answer: /opt/adguardhome/work # nslookup google.com 127.0.0.1:4444 Non-authoritative answer: Non-authoritative answer: #主分流服务器
大佬看一下这是怎么回事
#转发请求到阿里dns
#转发请求至sing-box/mihome dns请求fakeip
google.com 主端口返回不了IP |
Beta Was this translation helpful? Give feedback.
-
我通过ros把fakeip段、电报ip段、奈飞ip段、8888、1111设置静态路由,指向旁路由,其他没什么问题,但是pt的ip变成了机场的ip |
Beta Was this translation helpful? Give feedback.
-
已经配置上了。大佬,我是在openwrt上弄得,怎么设置规则自动更新呢? 另外,我是配合的ros,singbox用的,ros的ip为1,mosdns为2,singbox为3,安装在不同的虚拟机上。重启singbox后,总是会提示丢失fakeip上下文,我ros缓存关闭了,本以为用您这个不缓存fakeip能解决问题,但现在一重启还是会出现如下的错误,这可能是哪里的问题呢? |
Beta Was this translation helpful? Give feedback.
-
failed to init plugin #0 my_realiplist, plugin type domain_output not defined |
Beta Was this translation helpful? Give feedback.
-
设置mosdns为上游时,部分网站如v2ex github bing会返回SERVFAIL |
Beta Was this translation helpful? Give feedback.
-
配合mihomo在dns部分可以这样写
|
Beta Was this translation helpful? Give feedback.
-
请问一下大神geosite_apple.txt,这个文件在哪个网站有提供?有广告的txt文件可以下载的地方么?Adguard Home的广告txt和MosDNS的不通用的。谢谢了。 |
Beta Was this translation helpful? Give feedback.
-
@yyysuo 感谢分享,[x86 openwrt配置sing-box透明代理 nft ipt fakeip网关模式 20250401.zip]教程中提到“8:重启openwrt,进入http://主路由IP:9090/ui/#/proxies,节点选择选手动选择,手动选择选自己喜欢的节点,完了。”--这里应该是旁路由的ip+9090 吧? |
Beta Was this translation helpful? Give feedback.
-
想请问一下,如果我不用fakeip模式,这个mosdns的配置是不是也不需要修改?或者需要怎么修改呢? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
解压不了的,请用7zip
x86 openwrt配置sing-box透明代理 nft ipt fakeip网关模式 20250401.zip
一些进阶的用法
mosdns-ph-20250401.zip
1:ipt/nft只劫持fakeip段,没有ipset变大缓慢的问题。
2:bt/pt的ip连接天然直连。
3:对未知域名有自行判断分流的能力。
需要的东西全在附件中,自取。
Beta Was this translation helpful? Give feedback.
All reactions