After migration from TOS 5.3.5 to TOS 6 my wireguard configuration stopped working and /var/log/messages is full of errors. Configuration in /etc/config/network that was perfectly fine for TOS 5.3.5 became useles. Were there any syntax change in the format of /etc/config/network for TOS 6 ?
LUCI wireguard section is also empty and does not show anything
my /etc/config/network wireguard config
config interface ‘wg0’
option proto ‘wireguard’
option private_key ‘CP/------------------------------------eJ2c=’
option listen_port ‘51820’
list addresses ‘192.168.245.1/24’
config wireguard_wg0
option public_key ‘unH5y-----------------------------------WD8=’
option route_allowed_ips ‘1’
list allowed_ips ‘192.168.245.2/32’
option persistent_keepalive ‘25’
option description ‘ONEPLUS8PRO’
error statements in /var/log/messages
Feb 26 16:43:45 omnia netifd: Interface ‘wg0’ is setting up now
Feb 26 16:43:45 omnia netifd: wg0 (11443): Error: Unknown device type.
Feb 26 16:43:45 omnia netifd: wg0 (11443): Unable to modify interface: Protocol not supported
Feb 26 16:43:50 omnia netifd: Interface ‘wg0’ is now down
Feb 26 16:43:50 omnia netifd: Interface ‘wg0’ is setting up now
Feb 26 16:43:51 omnia netifd: wg0 (11669): Error: Unknown device type.
Feb 26 16:43:51 omnia netifd: wg0 (11669): Unable to modify interface: Protocol not supported
Feb 26 16:43:56 omnia netifd: Interface ‘wg0’ is now down
Feb 26 16:43:56 omnia netifd: Interface ‘wg0’ is setting up now
Feb 26 16:43:56 omnia netifd: wg0 (11889): Error: Unknown device type.
Feb 26 16:43:56 omnia netifd: wg0 (11889): Unable to modify interface: Protocol not supported
Feb 26 16:44:01 omnia netifd: Interface ‘wg0’ is now down
Feb 26 16:44:01 omnia netifd: Interface ‘wg0’ is setting up now
Feb 26 16:44:01 omnia netifd: wg0 (12113): Error: Unknown device type.
Feb 26 16:44:01 omnia netifd: wg0 (12113): Unable to modify interface: Protocol not supported
Feb 26 16:44:07 omnia netifd: Interface ‘wg0’ is now down
Feb 26 16:44:07 omnia netifd: Interface ‘wg0’ is setting up now
Feb 26 16:44:07 omnia netifd: wg0 (12345): Error: Unknown device type.
Feb 26 16:44:07 omnia netifd: wg0 (12345): Unable to modify interface: Protocol not supported