wireguard vpn ???

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
castrolem
Posts: 3
Joined: 28 Nov 2024, 19:30
Andorra

Re: wireguard vpn ???

Post by castrolem »

Thank you @outkastm!
User avatar
CraftyClown
Posts: 47
Joined: 03 Jan 2023, 17:13
Great Britain

Re: wireguard vpn ???

Post by CraftyClown »

Hey @Outkastm On 6.0.577 I'm getting a system event error when my F4-424 Pro reboots. Is the kernel module no longer accessible on the latest builds?


Image
User avatar
fordrwd4ever
Posts: 5
Joined: 15 Jan 2025, 17:51
Netherlands

Re: wireguard vpn ???

Post by fordrwd4ever »

You can enable the wireguard module permanently , by editing /etc/modules.load.d/modules.conf
Just add wireguard to the end and reboot the nas.

This way it will be loaded @ boot.
User avatar
CraftyClown
Posts: 47
Joined: 03 Jan 2023, 17:13
Great Britain

Re: wireguard vpn ???

Post by CraftyClown »

Thanks for this! Have you tested it? I have Tailscale working fine for me at present, but cutting out the middle man and just running wireguard would be a better solution
User avatar
fordrwd4ever
Posts: 5
Joined: 15 Jan 2025, 17:51
Netherlands

Re: wireguard vpn ???

Post by fordrwd4ever »

No, i haven`t tried it , but if you run modinfo wireguard you`ll see it is loaded.
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: wireguard vpn ???

Post by outkastm »

CraftyClown wrote: 07 Jan 2025, 07:03
I just updated the command in the task scheduler file.

Wireguard works fine on the latest firmware
User avatar
CraftyClown
Posts: 47
Joined: 03 Jan 2023, 17:13
Great Britain

Re: wireguard vpn ???

Post by CraftyClown »

outkastm wrote: 25 Jan 2025, 03:49
CraftyClown wrote: 07 Jan 2025, 07:03
I just updated the command in the task scheduler file.

Wireguard works fine on the latest firmware
Thanks. Can I ask if there's any advantage to activating the module via a task scheduler as opposed to just editing the modules.conf as suggested by fordrwd4ever?
User avatar
Gremlin
Gold Member
Posts: 1627
Joined: 02 Dec 2022, 22:31
Great Britain

Re: wireguard vpn ???

Post by Gremlin »

CraftyClown wrote: 25 Jan 2025, 04:36
My guess would be that the conf file gets overwritten on updates. (Sometimes even on Boot?) The scheduler should remain as written.
F5-221 TOS7.0.0777 - 4x4TB (Ironwolf) Traid
F2-424 TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (HGST) Traid
F2-221 TOS7.0.0777 - 1x3TB Ext4, 1x4TB Btrfs
F2-425+ TOS7.0.0777 - 2x500GB nvme (P3) Traid, 2x6TB HDD (EXOS) Traid
User avatar
CraftyClown
Posts: 47
Joined: 03 Jan 2023, 17:13
Great Britain

Re: wireguard vpn ???

Post by CraftyClown »

outkastm wrote: 25 Jan 2025, 03:49
CraftyClown wrote: 07 Jan 2025, 07:03
I just updated the command in the task scheduler file.

Wireguard works fine on the latest firmware
Working great now thank you, although just as a heads up there is a small mistake in your guide! In the port forwarding section you say the protocol should be TCP instead of UDP. Your screengrabs are correct, it's just the text that needs fixing
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: wireguard vpn ???

Post by outkastm »

Thanks, corrected.
Regarding using task scheduler instead of manual editing the file.
More friendly for beginners
As Gremlin said, In case of a firmware update and the file is overwritten, using the task scheduler at shutdown, we can assure that the module is activated at boot
Post Reply

Return to “Developer Discussion Room”