Hello,
I have the following in /etc/config/network
:
config interface 'wg0'
option proto 'wireguard'
option private_key 'SOMEKEY'
option listen_port 'SOMEPORT'
list addresses '10.0.10.0/24'
config wireguard_wg0
option public_key 'PUBKEY1'
option route_allowed_ips '1'
list allowed_ips '10.0.10.2/32,192.168.0.0/24'
option persistent_keepalive '25'
option description 'peer1'
config wireguard_wg1
option public_key 'PUBKEY2'
option route_allowed_ips '1'
list allowed_ips '10.0.10.3/32,192.168.0.0/24'
option persistent_keepalive '25'
option description 'peer2'
config wireguard_wg2
option public_key 'PUBKEY3'
option route_allowed_ips '1'
list allowed_ips '10.0.10.4/32,192.168.0.0/24'
option persistent_keepalive '25'
option description 'peer3'
The problem is that after restart of network and firewall service I am left with only single wireguard interface and one peer, the other peers are missing.
In order to fix the problem I need to add the configuration manually:
wg set wg0 peer PUBKEY2 allowed-ips 10.0.10.3/32
wg set wg0 peer PUBKEY3 allowed-ips 10.0.10.4/32
Any idea what is wrong with my setup?
Thanks, jose