用 wireguard 组网跨境使用,如何实现境内外分流,现在通过 gre 隧道打通,所有的流量都走境外了,导致境内业务访问就比较慢了

251 天前
 MFcliff

1 #clt0 2 [Interface] 3 ListenPort = 51820 4 PrivateKey = clt0-pri-key 5 Address = 10.1.1.1/24 6 DNS = 8.8.8.8 7 MTU = 1380 8 9 #gw 10 [Peer] 11 PublicKey = public-key 12 AllowedIPs = 0.0.0.0/0 13 Endpoint = internet-ip:51820 14 PersistentKeepalive = 10

1501 次点击
所在节点   WireGuard
2 条回复
limaofeng
251 天前
如果只是 wireguard ,流量不是都会走 Server 吗?如果 server 在国外。就都会绕一圈再回来
limaofeng
251 天前
客户端配置中的

[Peer]
PublicKey = xxx
PresharedKey = xzzz
AllowedIPs = 10.8.0.0/24, 10.0.4.0/24


AllowedIPs 这个不要配置 0.0.0.0/0

不然所有流量都转发到 wireguard Server 去了

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

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

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

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

© 2021 V2EX