Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wireguard UI doesnt restart Wireguard Service When Applying Config #478

Open
fattyredpanda opened this issue Oct 31, 2023 · 12 comments
Open

Comments

@fattyredpanda
Copy link

fattyredpanda commented Oct 31, 2023

Wireguard UI doesnt restart Wireguard Service When Applying Config. I have to manually restart from console everytime after clicking apply config for it to take effect.

Running Ubuntu 23

@alex85us
Copy link

+1

@vrtareg
Copy link

vrtareg commented Nov 21, 2023

Same here
Trying to run on TrueNAS FreeBSD based Jail
Config is generated OK but unable to restart service and get stats of clients.

@thenktor
Copy link

Same on FreeBSD. To restart the service it should run service wireguard restart

@vgallegoiz
Copy link

Same as you, to apply the config I need to restart the wireguard container and then the wireguard-ui. Easier than service wireguard restart

@OlegMuzych
Copy link

Hi guys. To automatically restart the service, you need to: WGUI_MANAGE_RESTART=true
https://github.com/ngoduykhanh/wireguard-ui#using-docker

@dvett01
Copy link

dvett01 commented Dec 29, 2023

I have issues with the WGUI_MANAGE_RESTART=true.
Once I hit apply config my wireguard tunnell will be taken down, but will not start again.

I believe it might be related to an issue with iptables that I can see in my docker logs:
ip link delete dev wg0
iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o ens6 -j MASQUERADE
/usr/bin/wg-quick: line 295: iptables: command not found

To bring wireguard up again I need to run it manually with wg-quick start wg0

Any idea if I am doing something wrong?

@kaganae
Copy link

kaganae commented Dec 30, 2023

I am having the same issue, running within docker on a Synololgy NAS. When I apply the config, the changes are applied to wg0.conf, the wg0 interface is stopped, but it does not start after (but works fine when I manually start from the command line via wg-quick). Environment variables are as follows:

environment:
- SENDGRID_API_KEY
- EMAIL_FROM_ADDRESS
- EMAIL_FROM_NAME
- SESSION_SECRET
- WG_CONF_TEMPLATE
- WGUI_MANAGE_START=false
- WGUI_MANAGE_RESTART=true

@jantschaefer
Copy link

I'm having the same problem on my Synology. #520 did not solve the issuse for me. Did anyone else already try version 0.6.0 and can confirm that the problem still persits?

@jantschaefer
Copy link

I've checked the log file of the WireGuard-UI container. There seems to be an issue with iptables. The error message is: iptables v1.8.10 (nf_tables): Could not fetch rule set generation id: Invalid argument. Previous versions (0.5.2) are running fine.

@bukiru
Copy link

bukiru commented Feb 21, 2024

Hi guys. To automatically restart the service, you need to: WGUI_MANAGE_RESTART=true https://github.com/ngoduykhanh/wireguard-ui#using-docker

but I don't use docker!!!!

@kaganae
Copy link

kaganae commented Feb 21, 2024

Yes, thanks. WGUI_MANAGE_RESTART is set to true, but it isn't working as documented.

@KyKyIIIKuH
Copy link

Replaced this
ExecStart=/usr/bin/systemctl restart wg-quick@wg0.service
on this
ExecStart=/usr/bin/systemctl reload wg-quick@wg0.service

and everything started working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests