在大量指南的帮助下,我成功创建了一个可以运行的 VPN 服务器,甚至还添加了一个客户端,然而,在添加第二个客户端时,出现了一个问题,配置似乎正确完成,但当一个客户端可以访问互联网时,第二个客户端只收到来自服务器的握手,没有互联网流量。可能是什么原因?
服务器配置
[Interface]
Address = 1.1.1.1/24
SaveConfig = false
PreUp = iptables -t nat -A POSTROUTING -j MASQUERADE -o ens3
PreDown = iptables -t nat -D POSTROUTING -j MASQUERADE -o ens3
ListenPort = 49312
PrivateKey = ...
[Peer]
AllowedIPs = address.2/32
PublicKey = ...
PresharedKey = ...
[Peer]
AllowedIPs = address.3/32
PublicKey = ...
PresharedKey = ...
Peer1 配置(工作正常)
[Interface]
Address = address.2/32
PrivateKey = ...
[Peer]
Endpoint = my-ip:49312
AllowedIPs = 0.0.0.0/0
PublicKey = ...
PresharedKey = ...
Peer2 配置(无互联网连接)
[Interface]
Address = address.3/32
PrivateKey = ...
[Peer]
Endpoint = my-ip:49312
AllowedIPs = 0.0.0.0/0
PublicKey = ...
PresharedKey = ...
我是否犯了什么错误或者还有其他我应该知道的事情?