TOS6 wireguard network config

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

Do you have WireGuard VPN protocol available in list of protocols in wg0 interface?

What does below cmd show? Not sure if you have correct module installed.

modinfo wireguard

How ? all config is done in /etc/config/network file and up is part of my file related to wireguard config. It is working perfectly under TOS 5.3.5 on my Turris 1x but when moved to TOS 6 on omnia (without any changes) it does not work at all.

It is part of content /etc/config/network file. In openwrt it is done via uci or direct file modification and wireguard config is part of this file.

omnia /tmp/log # modinfo wireguard
module: /lib/modules/5.4.179/wireguard.ko
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
license: GPL v2
depends: libblake2s,udp_tunnel,curve25519-neon,libchacha20poly1305,ip6_udp_tunnel,libcurve25519-generic
intree: Y
name: wireguard
vermagic: 5.4.179 SMP mod_unload ARMv7 p2v8

Do anyone archieved to setup wireguard on TOS 6 Omnia succesfully ?
I tried after some time, newer kernel same kernel fault issue.

Following exact steps from this Turris Academy - new date announcements & recorded TAs to watch - #7 by F.B turris academy video with same results.

Before attempt to setup new wireguard interface, kernel module is loaded
module: /lib/modules/5.4.203/wireguard.ko
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
license: GPL v2
depends: udp_tunnel,curve25519-neon,libchacha20poly1305,ip6_udp_tunnel,libcurve25519-generic
intree: Y
name: wireguard
vermagic: 5.4.203 SMP mod_unload ARMv7 p2v8

Imediately after attempt to setup new interface

Jul 30 16:10:56 omnia netifd: Interface 'wgtest' is setting up now Jul 30 18:10:56 omnia kernel: [ 4736.523047] vmap allocation for size 65536 failed: use vmalloc= to increase size Jul 30 18:10:56 omnia kernel: [ 4736.531029] warn_alloc: 7 callbacks suppressed Jul 30 18:10:56 omnia kernel: [ 4736.531036] modprobe: vmalloc: allocation failure: 61440 bytes, mode:0xcc0(GFP_KERNEL), nodemask=(null),cpuset=/,mems_allowed=0 Jul 30 18:10:56 omnia kernel: [ 4736.547035] CPU: 1 PID: 10747 Comm: modprobe Not tainted 5.4.203 #0 Jul 30 18:10:56 omnia kernel: [ 4736.553323] Hardware name: Marvell Armada 380/385 (Device Tree) Jul 30 18:10:57 omnia kernel: [ 4736.559284] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) Jul 30 16:10:57 omnia modprobe: 1 module could not be probed Jul 30 16:10:57 omnia modprobe: - wireguard Jul 30 18:10:57 omnia kernel: [ 4736.830044] 7796 pages reserved Jul 30 16:10:57 omnia netifd: wgtest (10671): Error: Unknown device type. Jul 30 16:11:18 omnia netifd: wgtest (11801): Unable to modify interface: Protocol not supported Jul 30 18:11:18 omnia kernel: [ 4758.251392] vmap allocation for size 65536 failed: use vmalloc= to increase size

Do anyone use wireguard on HBL or not ? Is it known issue of TOS6 or not ?

Hi,

Yesterday I spend some time config wireguard under TOS 6.0.1 kernel 5.15.74.
But i can not configure my wg interface. That seems like unsuported type of interface. I can not choose wireguard from list menu.

Any changes there?

Did you see : Turris OS 6.0 is released - #2 by Pepe ?

Especially :

  1. If you were using package wireguard, then it is not available as it is now included in the Linux kernel, you would need to install kmod-wireguard.