跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[OpenWrt] 关于 Router OS + OpenWRT dns 分流的疑惑

发表于

目前的网络拓扑

  • ROS 路由器 -> 两台电脑(有线连接)
  • ROS 路由器 -> 小米 BE6500Pro (有线中继模式) -> OpenWRT
  • ROS 路由器 -> 小米 BE6500Pro (有线中继模式) -> 一台电脑(有线连接)
  • ROS 路由器 -> 小米 BE6500Pro (有线中继模式) -> 其他联网设备(无线连接)

ROS 设置

  • 添加 ip routes ,将 192.18.0.0/16 以及 tg ip 段的网关设置成 OpwnWRT 的地址
  • 设置 DHCP 下发的 DNS 为 OpenWRT 地址

OpenWRT 设置

  • 使用 mosdns 分流,国内地址返回真实 IP ,国外地址返回 fake-ip

现状和存在的问题

  • 直接连接到 ROS 路由器的设备(两台电脑)可以正常分流访问国内外网站,但是连接到小米 BE6500Pro 的设备(有线和无线连接均不行)不能访问国外网站(网页访问错误 CONNECTION_CLOSED )
  • 将这些设备的网关也指定为 OpenWRT 可以正常访问国内外网站
  • 连接到小米 BE6500Pro 的设备排查可以正常获取到 fake-ip
  • OpenClash 中有显示这些设备的连接,使用 tracert 也能看到请求到了 OpenWRT

疑惑的地方

  • 为什么会出现这种情况?
  • 能否在保持现有网络拓扑情况下解决这个问题?
  • 是不是将 OpenWRT 直接接到 ROS 而不是经过小米 BE6500Pro 就可以解决问题?

Featured Replies

No posts to show

创建帐户或登录来提出意见

Account

导航

搜索

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.