OPNsense Forum

English Forums => Virtual private networks => Topic started by: rama3124 on January 20, 2026, 10:16:56 AM

Title: Wireguard instance and peers constantly regenerating after deletion
Post by: rama3124 on January 20, 2026, 10:16:56 AM
Hi
I used to use PIA through wireguard on OPNsense but recently switched to NordVPN through wireguard so created a new instance + peer and deleted the old ones. However the PIA wireguard instance and peer seem to regenerate automatically after a short while. How can I delete them permanently and stop them from regenerating?

Not sure if it helps but I run the latest verson of OPNsense:
OPNsense 25.7.11_2-amd64
FreeBSD 14.3-RELEASE-p7
OpenSSL 3.0.18

Thanks
Title: Re: Wireguard instance and peers constantly regenerating after deletion
Post by: meyergru on January 20, 2026, 10:25:56 AM
You probably used something like this: https://github.com/FingerlessGlov3s/OPNsensePIAWireguard to do this.

If so, that means you added non-standard functionality to OpnSense, including scripts that are probably still being called and creating configurations on-the fly via cron or other means. If you cannot undo these modifications, your best bet would be to save your configuration, reinstall and import your configuration again in order to restore system state.


Title: Re: Wireguard instance and peers constantly regenerating after deletion
Post by: rama3124 on January 20, 2026, 09:28:42 PM
You are correct, that was the exact script I was using! I have removed the modifications and everything is fine now
Thanks again