netmaker icon indicating copy to clipboard operation
netmaker copied to clipboard

[Bug]: Windows Netclient not setting routes

Open kpestalozzi opened this issue 2 years ago • 7 comments

What happened?

We use a Egress Gateway to connect to our Office Networks. After boot or when changing networks (e.g. LAN to WLAN) netclient does not set the routes for the egress networks. The Wireguard tunnel comes up fine and the route for the VPN itself exists but all routes for the egress networks are missing. After doing a netclient pull manually the routes are set correctly. This problem seems only to exist on Windows. I couldn't reproduce this on Linux.

Version

v0.17.1

What OS are you using?

Windows

Relevant log output

No response

Contributing guidelines

  • [X] Yes, I did.

kpestalozzi avatar Jan 04 '23 07:01 kpestalozzi

Maybe related with this #1867?

FreeMinded avatar Jan 10 '23 17:01 FreeMinded

I have this issue - any progress ?

Elf36 avatar Apr 09 '23 17:04 Elf36

I have the same exact issue with Netclient in windows 11, it doesnt create router even with a manuall netclient.exe pull.

I dont think anyone actually testing the clients as the last 5 clients desnt even show the host settings from the gui.

zzecool avatar Aug 17 '23 11:08 zzecool

@zzecool - I opened a new bug that may be the same or related. Could you try my workaround and see if it works for you?

Start > search for Command Prompt > Open as Administrator (if you can?)

cd to C:\Program Files (x86)\Netclient\

enter netclient.exe pull and see what happens? I manually did a netclient.exe join -t ENROLLMENT_KEY and I'm connected, even if the gui isn't working at all.

jivanyatra avatar Oct 15 '23 08:10 jivanyatra

I updated my ticket with what worked for me. Again, not 100% sure we're seeing the same issue, but for what it's worth, when I do netclient.exe pull it works now.

jivanyatra avatar Oct 19 '23 08:10 jivanyatra

Unable to connect to egress routes from Windows on latest version (v0.21.2); it doesn't create the routes correctly, which can be confirmed via route print... I was able to solve via this change to wireguard\wireguard_windows.go. I may get around to contributing properly with a PR, but here is the effective change in case anyone else wants to run with it.

image

tompkinss-decian avatar Nov 24 '23 20:11 tompkinss-decian

This PR should fix this problem on windows -> https://github.com/gravitl/netclient/pull/630

uGiFarukh avatar Nov 27 '23 13:11 uGiFarukh