Closed pascal456 closed 6 months ago
Did you already try:
[Environment]::SetEnvironmentVariable("NB_ICE_DISCONNECTED_TIMEOUT_SEC", "10", "Machine")
This works for the issue like written above in our setup with Windows clients. We are using 13 in stead of 10 as value I believe.
See: https://github.com/netbirdio/netbird/issues/1195#issuecomment-1962321207
We got the same problem with 1 client out of 8 and 2 server. After settings the enviroment variable the problem was solved. very strange. Some more informations: the client with the problem has no timouts to the internet or when we are using openvpn instead of netbird. the client is Windows 10
thanks @support-tt and @karstennilsen for the input. I tried it out.
I have set this on the windows client by adding the setting to C:\ProgramData\Netbird\config.json
but it extremely worsened the situation:
PS C:\Windows\System32> ping zm2ws1 -t -4
Pinging zm2ws1.netbird.cloud [100.85.144.221] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Reply from 100.85.144.221: bytes=32 time=783ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=30ms TTL=64
Reply from 100.85.144.221: bytes=32 time=33ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Reply from 100.85.144.221: bytes=32 time=31ms TTL=64
Reply from 100.85.144.221: bytes=32 time=30ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Reply from 100.85.144.221: bytes=32 time=30ms TTL=64
Request timed out.
Request timed out.
Request timed out.
Reply from 100.85.144.221: bytes=32 time=635ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=30ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=28ms TTL=64
Reply from 100.85.144.221: bytes=32 time=29ms TTL=64
Request timed out.
Request timed out.
Did you set this on the connecting client only? Or also on the remote host? And as far as I understood this is only an issue between Windows clients, is that correct in your case? I am connecting to a Ubuntu Server machine, wondering if that makes a difference?
A connection is established for each peer, so when a connection between 2 peers has continuous disconnections you need to try to increase the timeout on the 2 peers. However, if the internet connection of one or both peers is too unstable or there are routers/firewalls in the route that close the connections, I don't think this setting can help. On the contrary, the time before reconnection may increase in some cases.
When you do it right, it works.
Sorry for the confusion. The setting did not worsen the situation: actually I did the setting in the settings file, and doing it with the preceding NB
seems to be wrong.
At first the client did not start at all; corrupted settings file.
Then I did it with
[Environment]::SetEnvironmentVariable("NB_ICE_DISCONNECTED_TIMEOUT_SEC", "10", "Machine")
but forgot to restart the service (I confused the service with the client / UI-Agent). It is not sufficient to restart that. So that
netstart service restart
on the Windows machine did the trick.
I am wondering @karstennilsen, where did you get that setting from? I cannot find anything on it in the docs?
Thanks for the support @Fantu and @karstennilsen.
@pascal456 the flag is not part of the agent's command, but we will add this as default in the client and have it as a flag too.
I think that probably is good to change ice disconnect timeout to 10 sec as default. The pros seem more than the cons to me, or I'm wrong?
For my part, this ticket can be closed because I have a solution to the problem for now. Do you want it to stay open for tracking or do you want to open a separate one @mlsmaycon ?
Describe the problem
I am trying out netbird as VPN and I am really satisfied with the setup process. Everything went fine connecting
Now in the office everything is fine. Connection is stable. Actually the machines are on the same local network in that case.
Then, when using the connection from home, it is extremely unstable.
To Reproduce
Scenario: ping for simple connection check
Scenario: Use Case remote development
Expected behavior
Are you using NetBird Cloud?
NetBird version
netbird version
on connecting machine /
dev-pc1
(windows client):on
remote-workstation
/ ubuntu:NetBird status -d output:
on connecting machine /
dev-pc1
(windows client):one
remote-workstation
/ ubuntu:Screenshots
stability of pings (ping from
dev-pc1
toremote-workstation
):Additional context