When the Wireguard setting "Route all traffic" is enabled for a peer, the configuration has a duplicate entry of list allowed_ips:
config wireguard_wg1 'wg1_ns_9c80b847_peer'
option disabled '0'
option ns_name 'chadima-ntb'
option preshared_key 'xxx'
option ns_route_all_traffic '1'
list allowed_ips ''
list allowed_ips '10.189.165.8/32'
...
Steps to reproduce
- Create a Wireguard server
- Create a Wireguard peer and enable "Route all traffic"
- Apply the changes
- Check the Wireguard configuration in
/etc/config/network
Expected behavior
list allowed_ips should be configured once.
Actual behavior
list allowed_ips is listed twice, one entry is empty.
Components
NethSecurity 8.7.1
ns-ui 2.8.1-r1
See also
https://community.nethserver.org/t/wireguard-adding-a-peer-results-in-duplicit-list-allowed-ips/26785
Thanks to antonin.chadima
When the Wireguard setting "Route all traffic" is enabled for a peer, the configuration has a duplicate entry of
list allowed_ips:Steps to reproduce
/etc/config/networkExpected behavior
list allowed_ipsshould be configured once.Actual behavior
list allowed_ipsis listed twice, one entry is empty.Components
NethSecurity 8.7.1
ns-ui 2.8.1-r1
See also
https://community.nethserver.org/t/wireguard-adding-a-peer-results-in-duplicit-list-allowed-ips/26785
Thanks to antonin.chadima