OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: weidah on November 05, 2023, 12:23:42 AM

Title: Strange behaviour after migration (Wireguard and startup)
Post by: weidah on November 05, 2023, 12:23:42 AM
Hi!

I've just migrated to Proxmox and have some strange issues.

At boot the first thing is it gets stuck for a really long time to finish loading php_fpm(But I can already access the GUI at this point) and then HA Proxy takes a while also.
Sometimes HAproxy will go fast once it gets to it. But on my other machine it boots really fast. I do get to enter the Interface while it's still loading, but have to manually start Addguard to get the DNS to work and internet. Is there a way to control the loading order?


The other thing, and more important, is that Wireguard just doesn't work correctly. After each reboot I have access to remote LAN but not internet.

Interestingly enough, stopping and starting a rule on the Firewall WG0 interface makes it work. And it doesn't even have to be the rule for this particular Wireguard connection. Or even just enabling and disabling logging makes it work.

I've checked the firewall rules and it shows it as allowed, but there's no traffic going through until I do something in the WG0 Firewal rule.


Any ideas as to what might be the cause for this?


The only real thing I've done differently on this VM is that I've passed through the NICs with SR-IOV and disabled some interfaces. Might have also updated after the migration, not sure.




Thanks for any help,

Tom / Weidah
Title: Re: Strange behaviour after migration (Wireguard and startup)
Post by: weidah on November 06, 2023, 12:36:06 AM
Figured it out for the slow loading. It was Unbound DNS that was misconfigured, couldn't start and kept retrying and crashing, go figure.

For Wireguard issue, I've added a script that runs on startup that reloads the rules.