#required_modules

Alexandre :freebsd:alelab@bsd.cafe
2023-11-28

@crest Hello, it seems something changed with this new release because I totally disabled #Bastille and #VNet and now #Wireguard is working as expected.
The only thing to modify is to comment the following line in /etc/rc.d/wireguard: #required_modules='if_wg:wg'

I will investigate what is wrong in my simple setup.

Alexandre :freebsd:alelab@bsd.cafe
2023-11-24

Hello @crest I want to thank you again for the script you wrote for #Wireguard blog.rlwinm.de/the-missing-wir
Everything was fine in 13.2-RELEASE in #IPv4 and #IPv6.

On my home server freshly upgraded to 14-RELEASE, Wireguard service won't start automagically at startup.
I get the following error: "kldload: can't load if_wg: module already loaded or in kernel
/etc/rc.d/wireguard: WARNING: Unable to load kernel module if_wg".
I commented the following line in /etc/rc.d/wireguard: #required_modules='if_wg:wg'

Now Wireguard starts well if launched manually, but #IPv6 doesn't work anymore. And Wireguard service doesn't start automatically at system startup.

I continue my investigations to solve this.
#FreeBSD #freebsd140release #WireGuardVPN #Wireguard

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst