|
|
在ImmortalWrt 24.10下设置了Wireguard, 也能在外网连接回家正常上网。
但是有一个问题,当我在Luci 界面WG端口里面添加了第二个对端后,第二个对端能够连上wg,但是上不了网,特征是WG界面流量栏目里面,接受几乎没有流量,只有几百B,发送有几十KB.
有哪位高手能帮忙看看是什么问题吗?
下面是我的配置文件。
路由器上的network文件WG部分:
- config interface 'WG'
- option proto 'wireguard'
- option private_key '***************************************'
- option listen_port '52568'
- list addresses '192.168.20.1/24'
- config wireguard_WG
- option description 'peer_1'
- option public_key '***************************************'
- option private_key '***************************************'
- option preshared_key '*****************************'
- option route_allowed_ips '1'
- option persistent_keepalive '25'
- list allowed_ips '192.168.20.4/32'
- config wireguard_WG
- option description 'peer_2'
- option public_key '***************************************'
- option private_key '***************************************'
- option preshared_key '***************************************'
- option route_allowed_ips '1'
- option persistent_keepalive '25'
- list allowed_ips '192.168.20.2/32'
复制代码 以下是我对端的配置
对端一
- [Interface]
- PrivateKey = *******************************
- Address = 192.168.20.4/32
- DNS = 192.168.10.1
- [Peer]
- PublicKey = ************************************
- PresharedKey = ***************************************
- AllowedIPs = 0.0.0.0/0
- Endpoint = xxxxx.xxx:52568
- PersistentKeepalive = 25
复制代码 对端二
- [Interface]
- PrivateKey = ****************************
- Address = 192.168.20.2/32
- DNS = 192.168.10.1
- [Peer]
- PublicKey = ******************************
- PresharedKey = *********************************
- AllowedIPs = 0.0.0.0/0
- Endpoint = xxxx.xxx:52568
- PersistentKeepalive = 25
复制代码
|
|