Can't get wg0 back - wg1 is 1st interface being created

Started by IslandDave, April 16, 2023, 04:02:19 AM

Previous topic - Next topic
Been playing with wireguard and now I broke it : )

After making a mess playing in the sandbox... I can't get wg0 back.

I tried deleting and adding wireguard back. When I do, wg1 is the first interface created, not wg0.

Any suggestions how to recreate wg0? Thanks.

I observed a similar behavior as I did some tests with Wireguard. But, in between there have been several updates applied to my Opnsense instance. So, I do not know whether this is the reason that Wireguard interfaces now begin with "wg1". This behavior initially has no negative effects as long as the assignment of the interface in the firewall is correct.
OPNsense 24.7.11_2-amd64

Having no wg0 seems only cosmetic (so far). Suspect I managed a plus twice minus once with some script while building and deleting servers: ) Thanks for your tip.