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

Stopped working after reboot (Windows Server 2019) #138

Open
pcinacio opened this issue Sep 25, 2023 · 6 comments
Open

Stopped working after reboot (Windows Server 2019) #138

pcinacio opened this issue Sep 25, 2023 · 6 comments

Comments

@pcinacio
Copy link

pcinacio commented Sep 25, 2023

Good morning.
I installed in a Windows Server 2019 environment, and things worked fine.
After a reboot, Tunnel Service, Private Network, and Nat Routing, all appear in red. Is there a way to work around this?
I have WireGuard in a Debian environment, and it works well. Totally appreciate the work of those who put it to work on Windows this way, but always found it a bit trickier.. :/
CapturarWG

@vsviridov
Copy link

Same thing happened to me. "Install tunnel service" doesn't seem to do anything. Attempting to start Wireguard tunnel: wg_server causes and "Error 5: Access Denied" message.

@vsviridov
Copy link

vsviridov commented Sep 25, 2023

Check this https://stackoverflow.com/questions/48478869/cannot-bind-to-some-ports-due-to-permission-denied

Likely the port got reserved by the OS which prevented the service from starting. It also bugs out the UI, making it think the service is not installed.

Another ticket with more details:
#99

@micahmo
Copy link
Owner

micahmo commented Sep 25, 2023

Great find @vsviridov! Others, let us know if this clue helps at all!

@pcinacio
Copy link
Author

Ok, so i understand it now.
Yesterday i administered excluded the Wireguard port to prevent the reservation, reboot a couple times, so far, everything is good.
Lets see if it stays that way :)

@micahmo
Copy link
Owner

micahmo commented Sep 26, 2023

@pcinacio and others, if this ends up working, do you think it's something that should be added to WS4W? I'm not sure how easy it would be to do in C#, but maybe once the port is selected in the server configuration, I can reserve it (or at least notify if it's in use).

@vsviridov
Copy link

I think the behaviour where the service is registered, but can't start and the application still shows "Register service" button is a bug.

Maybe checking if the port is reserved in the app is a good idea, and adding mitigation would be great, as the whole point is about ease of use.

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

3 participants