找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 8196|回复: 11

Openwrt下有没有办法让bing不跳转到cn.bing.com?

[复制链接]
本帖最后由 shangzsh 于 2023-4-14 19:27 编辑

Openwrt下有没有办法让bing不跳转到cn.bing.com?除了开全局代理还有其他方法吗?域名绑定会出现多次重新定位无法打开网页
adguard home这样设置吗?目前这样设置无效啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

很简单,在openwrt上将cn.bing.com的域名重写成www.bing.com就能正常使用 new bing聊天了。adguard home 可以重写到域名上,自带的dnsmasq没试过。

点评

Dns重写需要设置成美国的吗?  详情 回复 发表于 2023-4-12 14:45
重写后记得清理一下原先的浏览器cookie  详情 回复 发表于 2023-4-12 13:45
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

ZqinKing 发表于 2023-4-12 13:44
很简单,在openwrt上将cn.bing.com的域名重写成www.bing.com就能正常使用 new bing聊天了。adguard home 可 ...

重写后记得清理一下原先的浏览器cookie
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
ZqinKing 发表于 2023-4-12 13:44
很简单,在openwrt上将cn.bing.com的域名重写成www.bing.com就能正常使用 new bing聊天了。adguard home 可 ...

Dns重写需要设置成美国的吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

楼上的方法都失效了

点评

Ad里面重新定向  详情 回复 发表于 2023-8-13 17:38
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 来自手机 | 显示全部楼层
箱子 发表于 2023-8-12 11:06
楼上的方法都失效了

Ad里面重新定向
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

如果你将所有的dns服务器都高为境外,就可以正常浏览bing.com
但是这会对国内的网站造成影响,所以最好的办法还是利用规则进行dns分流。
具体可以参考我的帖子。https://www.right.com.cn/forum/f ... page=10#pid18950074

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 cocarig 于 2023-11-1 22:06 编辑

这个需要对bypass和pass@wall的规则更新小改下。


1、bypass改下usr\share\bypass\by-gfw,以下红字为新增代码


        cat /tmp/gfwlist.txt | sort -u |
                sed 's#!.\+##; s#|##g; s#@##g; s#http:\/\/##; s#https:\/\/##;' |
                sed '/\*/d; /apple\.com/d; /sina\.cn/d; /sina\.com\.cn/d; /baidu\.com/d; /byr\.cn/d; /jlike\.com/d; /weibo\.com/d; /zhongsou\.com/d; /youdao\.com/d; /sogou\.com/d; /so\.com/d; /soso\.com/d; /aliyun\.com/d; /taobao\.com/d; /jd\.com/d; /qq\.com/d' |
                sed '/haosou\.com/d /ip\.cn/d /jike\.com/d /gov\.cn/d /uluai\.com\.cn/d /yahoo\.cn/d /yahoo\.co\.jp/d /yahoo\.com/d /ja\.wikipedia\.org/d /cloudfront\.net/d' |
                sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' |
                sed '$a bing.com' |
                grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' | sort -u |
                awk '



2、pass@wall改下usr\share\pass@wall\rule_update.lua:(自己去除下”@“)

27行:

local excluded_domain = {"apple.com","sina.cn","sina.com.cn","baidu.com","byr.cn","jlike.com","weibo.com","zhongsou.com","youdao.com","sogou.com","so.com","soso.com","aliyun.com","taobao.com","jd.com","qq.com","bing.com"}

删除bing.com改为:
local excluded_domain = {"apple.com","sina.cn","sina.com.cn","baidu.com","byr.cn","jlike.com","weibo.com","zhongsou.com","youdao.com","sogou.com","so.com","soso.com","aliyun.com","taobao.com","jd.com","qq.com"}


154行左右,以下红字为新增代码

                        if rule_name == "gfwlist" then
                                local domains = {"bing.com"}
                                local gfwlist = io.open(download_file_tmp..k, "r")
                                local decode = api.base64Decode(gfwlist:read("*all"))
                                gfwlist:close()

                                gfwlist = io.open(download_file_tmp..k, "w")
                                gfwlist:write(decode)
                                for i = 1, #domains do
                                        gfwlist:write('\n', domains)
                                end
                                gfwlist:close()
                        end



215行左右,以下红字为新增代码

                if rule_type == "domain" then
                        local out = io.open(unsort_file_tmp, "w")
                        for k,v in pairs(domains) do
                                if k ~= "www.bing.com" then
                                        out:write(string.format("%s\n", k))
                                end
                        end
                        out:close()
                end



改完后执行下”规则管理“下的手动更新就好了。

点评

试了,不成功。 提示错误  详情 回复 发表于 2024-3-31 23:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

用中国列表以外的话,编辑chnlist,把里面的www.bing.com给删了,国内dns解析会自动引导到cn.bing上去,被烦了好久,各种改规则都没用,是真没想到chnlist里会有www.bing.com,相当于dns被劫持了,用gfwlist的话应该是在里面添加上www.bing.com

点评

试了,不成功啊。pass wall版本 4.76-1 ,设备N1旁路由,flippy 88+O固件,规则中也添加了bing ,而且顺序排在前面了  详情 回复 发表于 2024-3-31 23:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

kankanseesee 发表于 2023-11-12 21:56
用中国列表以外的话,编辑chnlist,把里面的www.bing.com给删了,国内dns解析会自动引导到cn.bing上去,被 ...

试了,不成功啊。pass wall版本 4.76-1 ,设备N1旁路由,flippy 88+O固件,规则中也添加了bing ,而且顺序排在前面了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

本帖最后由 yanheqi 于 2024-3-31 23:40 编辑
cocarig 发表于 2023-11-1 22:04
这个需要对bypass和pass@wall的规则更新小改下。

试了,不成功。
提示错误



2024-03-31 23:36:00: 开始更新规则...
2024-03-31 23:36:00: gfwlist 开始更新...
2024-03-31 23:36:00: /usr/share/pass wall/rule_update.lua:164: bad argument #2 to 'write' (string expected, got table)
2024-03-31 23:36:00: stack traceback:
        /usr/share/pass wall/rule_update.lua:414: in function </usr/share/pass wall/rule_update.lua:412>
        [C]: in function 'write'
        /usr/share/pass wall/rule_update.lua:164: in function 'fetch_rule'
        /usr/share/“pass wall”/rule_update.lua:260: in function </usr/share/pass wall/rule_update.lua:259>
        [C]: in function 'xpcall'
        /usr/share/pass wall/rule_update.lua:412: in main chunk
        [C]: ?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 02:17

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表