用 wireguard 组网跨境使用,如何实现境内外分流,现在通过 gre 隧道打通,所有的流量都走境外了,导致境内业务访问就比较慢了 - V2EX
MFcliff
·
2024-01-16
·
via WireGuard
这是一个创建于 880 天前的主题,其中的信息可能已经有所发展或是发生改变。
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
 |
|
1
limaofeng 2024 年 1 月 16 日
如果只是 wireguard ,流量不是都会走 Server 吗?如果 server 在国外。就都会绕一圈再回来
|
 |
|
2
limaofeng 2024 年 1 月 16 日
客户端配置中的 [Peer] PublicKey = xxx PresharedKey = xzzz AllowedIPs = 10.8.0.0/24, 10.0.4.0/24 AllowedIPs 这个不要配置 0.0.0.0/0 不然所有流量都转发到 wireguard Server 去了
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。