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

2019-05-13 11:49:42 +08:00
 MLawliet

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

1281 次点击
所在节点    问与答
6 条回复
Tianao
2019-05-13 11:53:49 +08:00
楼主怎么做的负载均衡,不会仅仅是两条等价默认路由吧,这种随缘 LB 还不如主备浮动静态路由。

另,多播 != 多拨。
MLawliet
2019-05-13 12:10:26 +08:00
额,不好意思,是多拨,是同一线路同一账号的多拨。。
梅林自带的那个双线路功能,里面的负载均衡。。
应该是你说的那种两条等价默认路由,请问你说的主备浮动静态路由,是设置规则走不通路由么,可是这个规则怎么定呢
mooncakejs
2019-05-13 12:17:25 +08:00
负载均衡是有策略的,一般比较好的策略是 hash(source_ip,dest_ip)
titanium98118
2019-05-13 17:45:16 +08:00
对 https 的链接指定一个出口。
ysc3839
2019-05-13 20:42:08 +08:00
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
2019-05-14 12:20:36 +08:00
我了解下,非常感谢~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/563578

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX