我试图了解AllowedIPs
WireGuard 中的用法,因为我在wireguard 中继场景下的路由设置方面遇到了麻烦。一个简化的例子:
服务器端:
[Interface]
Address = 172.16.23.1/32
PrivateKey = ...
ListenPort = ...
[Peer]
PublicKey = ...
AllowedIPs = 172.16.23.0/24
客户端:
[Interface]
Address = 172.16.23.100/32
PrivateKey = ...
[Peer]
PublicKey = ...
Endpoint = ...
AllowedIPs = 172.16.23.0/24
PersistentKeepalive = 45
我的问题是,我可以省略AllowedIPs
所有内容并使用 linuxip
命令设置路由吗?