V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
GetWoke
V2EX  ›  OpenWrt

openwrt 默认路由带 scr 如何去掉

  •  
  •   GetWoke · Sep 11, 2022 · 1573 views
    This topic created in 1334 days ago, the information mentioned may be changed or developed.

    配置了一个 openwrt 的旁路由,只有一个 eth0 口作为 lan 口,并且 lan 口上配置了默认网关。还有一个 wg 口作为隧道。问题来了,我在路由表下看到了如下:192.168.60.0/24 dev eth0 scope link src 192.168.60.254

    如何不让 openwrt 生成这条路由,由于已经有网关了。这条路由会限制只有源地址 192.168.60.254 才能到网关。 目前方式是 crontab 每 5 秒删除一此这个路由,但是感觉这个方法不太优雅?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:52 · PVG 09:52 · LAX 18:52 · JFK 21:52
    ♥ Do have faith in what you're doing.