NOXCIS / Wiregate

"WireGate: Secure Intranet Deployment with WireGuard, Docker, and Enhanced Network Controls"
MIT License
218 stars 5 forks source link

Wireguard peers disappear and interface turns off after restart #2

Closed Kitmitsu closed 1 year ago

Kitmitsu commented 1 year ago

I have Worm-Hole running on a fresh Debian VM with nothing else but it's dependencies. The settings I picked during setup were all the defaults. It works great, however each time either the wg_dashboard container is restarted or the entire VM is rebooted, the peer settings are wiped from wg0.conf. The interface settings themselves remain intact in the config file even after changing them and rebooting.

As well as that, after a restart the wg0 interface doesn't start until it's toggled on manually via the dashboard or command line.

Any clues how to fix this?

NOXCIS commented 1 year ago

Comment out this line in WG-Dash/entrypoint.sh if you want the config to stay after restart (rm /etc/wireguard/*.conf). I added it for dev purposes. I'm going to switch to different dashboard soon once integrate 2fa by Authnik.

Kitmitsu commented 1 year ago

I knew I missed something. Thanks!

NOXCIS commented 1 year ago

@Kitmitsu ive updated the image to auto start and added functionality for multiple auto starting interfaces