V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
MLawliet
V2EX  ›  问与答

怎么解决路由多播后多 ip 造成的访问异常问题

  •  
  •   MLawliet · 2019-05-13 11:49:42 +08:00 · 1275 次点击
    这是一个创建于 1825 天前的主题,其中的信息可能已经有所发展或是发生改变。

    路由开启了双拨负载均衡,拿到了两个公网 ip,目前发现招行 app 无法登陆,提示 ip 改变,知乎 app 完全无法获取内容 应该是数据包随机走了两条线路的原因,不知道大家是怎么解决这个问题的?

    6 条回复    2019-05-14 12:20:36 +08:00
    Tianao
        1
    Tianao  
       2019-05-13 11:53:49 +08:00 via iPhone
    楼主怎么做的负载均衡,不会仅仅是两条等价默认路由吧,这种随缘 LB 还不如主备浮动静态路由。

    另,多播 != 多拨。
    MLawliet
        2
    MLawliet  
    OP
       2019-05-13 12:10:26 +08:00
    额,不好意思,是多拨,是同一线路同一账号的多拨。。
    梅林自带的那个双线路功能,里面的负载均衡。。
    应该是你说的那种两条等价默认路由,请问你说的主备浮动静态路由,是设置规则走不通路由么,可是这个规则怎么定呢
    mooncakejs
        3
    mooncakejs  
       2019-05-13 12:17:25 +08:00
    负载均衡是有策略的,一般比较好的策略是 hash(source_ip,dest_ip)
    titanium98118
        4
    titanium98118  
       2019-05-13 17:45:16 +08:00
    对 https 的链接指定一个出口。
    ysc3839
        5
    ysc3839  
       2019-05-13 20:42:08 +08:00 via Android
    OpenWrt 的 mwan3 可以设置 sticky。
    https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3#rule_configuration
    Stickiness lets you route new session over the same wan interface as the previous session, as long as the time between the new and the previous session is shorter then the timeout value (default 600s). This can solve some problems with https sites, which don't allow a new source address within the same cookie/https session.
    MLawliet
        6
    MLawliet  
    OP
       2019-05-14 12:20:36 +08:00
    我了解下,非常感谢~
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1106 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:04 · PVG 03:04 · LAX 12:04 · JFK 15:04
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.