You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -171,7 +180,8 @@ To generate a bundle via GUI, you can access the application then go to `Setting
171
180
</p>
172
181
By default running with trace log enable before generating the bundle is selected. This will restart the client connections and provide a `disconnect to connected` information for our engineers.
173
182
174
-
If you uncheck this option, a bundle will be generated without running this step. Which is very useful when you have an issue that recovers when restarting the client.
183
+
If you uncheck this option, a bundle will be generated without running this step. Which is very useful when you have an
@@ -353,9 +363,11 @@ The most notable examples of encountering the issue are:
353
363
- the user makes a mistake and selects
354
364
- the user uses different browser/profile or selects the wrong account during SSO login at the start of the workday,
355
365
356
-
If you know the exact previous Peer which was logged in, you can just delete it from Dashboard without doing anything else and attempt login again.
366
+
If you know the exact previous Peer which was logged in, you can just delete it from Dashboard without doing anything
367
+
else and attempt login again.
357
368
358
-
Otherwise, to resolve the issue, you will need to remove the file manually to use the machine as a different user/Setup Key while the NetBird client daemon is stopped:
369
+
Otherwise, to resolve the issue, you will need to remove the file manually to use the machine as a different user/Setup
370
+
Key while the NetBird client daemon is stopped:
359
371
360
372
1. `netbird service stop`
361
373
2. `sudo rm /var/lib/netbird/default.json` (*nix) or `rm C:\ProgramData\netbird\config.json` (Windows)
@@ -384,14 +396,14 @@ and following Netbird network resources:
384
396
385
397
- `peer-a`: end user's device running Netbird Client,
386
398
- `peer-b`: a linux server inside the internal network running Netbird Client,
387
-
- it has direct access to the whole `int-net1` IP range,
399
+
- it has direct access to the whole `int-net1` IP range,
388
400
- `users:employees`: a Netbird Group containing `peer-a`,
389
401
- `routers:int-net1`: a Netbird Group containing `peer-b`,
390
402
- `access:srv-c`: a Netbird Groups used as a target of ACL rules for `srv-c` only,
391
403
- `access:int-net1`: a Netbird Groups used as a target of ACL rules for the whole subnet,
392
404
- `net-a`: a Netbird Network
393
-
- `net-a:srv-c`: a Network Resource handling traffic to `10.123.45.17/32` (`srv-c`),
394
-
- `net-a:int-net1`: a Network Resource handling traffic to `10.123.45.0/24` (`int-net1`),
405
+
- `net-a:srv-c`: a Network Resource handling traffic to `10.123.45.17/32` (`srv-c`),
406
+
- `net-a:int-net1`: a Network Resource handling traffic to `10.123.45.0/24` (`int-net1`),
395
407
- `route:int-net1`: a Netbird Network Route handling traffic to `10.123.45.0/24` (`int-net1`),
396
408
- `route:srv-c`: a Netbird Network Route handling traffic to `10.123.45.17/32` (`srv-c`),
397
409
@@ -454,8 +466,8 @@ For Netbird network routing resources configurations you can use either (new) _N
454
466
A Network `net-a` should have at minimum:
455
467
456
468
- _Network Resource_: `net-a:srv-c` with either of:
457
-
- an _Address_ set to `10.123.45.17/32` to configure route to `srv-c` exclusively and nothing else,
458
-
- _Assigned Groups_ set to `access:srv-c`
469
+
- an _Address_ set to `10.123.45.17/32` to configure route to `srv-c` exclusively and nothing else,
470
+
- _Assigned Groups_ set to `access:srv-c`
459
471
- _Routing Peer Group_ assigned to `routers:int-net1`
460
472
461
473
A _Network Route_ `route:srv-c` should have at least:
@@ -501,9 +513,9 @@ Just like with the previous section you can loosen the above example by:
501
513
- allowing `ALL` protocol, _Ports_ will become greyed out because all traffic will be allowed,
502
514
- creating a bidirectional rule (both arrows should be green), always truefor the protocol `ALL`,
503
515
- selecting a different source group from the pool assigned to `peer-a`,
504
-
- it could be built-in `All` group, but it is discouraged,
516
+
- it could be built-in `All` group, but it is discouraged,
505
517
- selecting a different destination group from the pool assigned to `peer-b`,
506
-
- it could be built-in `All` group, but it is discouraged,
518
+
- it could be built-in `All` group, but it is discouraged,
507
519
508
520
#### Is `peer-a`'s operating system configured to use the route?
509
521
@@ -752,7 +764,7 @@ You can validate whether this is the issue in your setup by performing following
752
764
3. resolve the domain, eg: `dscacheutil -q host -a name <domain>`
753
765
4. `netbird up` / `Connect`
754
766
5. check whether `dscacheutil -q host -a name <domain>` works
755
-
- if it doesn't flush the cache and retry
767
+
- if it doesn't flush the cache and retry
756
768
757
769
#### Verifying the nameservers are properly registered in Linux operating system
758
770
@@ -795,3 +807,208 @@ To configure `int-dns2`, while following _Access from `peer-a` to `srv-c`_ secti
795
807
address range,
796
808
797
809
To test the configuration in practice please refer to previous section _Public nameservers_.
810
+
811
+
## Debugging access to Domain Resources
812
+
813
+
While we strive to make them "just work", there still are and will be cases of domain-based Resources not behaving
814
+
correctly. It can happen for myriad of reason starting with local device management or firewall software, through
815
+
Routing Peer issues and ending with
816
+
817
+
For in-depth overview of the mechanism please read [Domain Resources](/how-to/networks#domain-resources) section.
818
+
819
+
Analyzing those issues will take a "backwards" approach (based on the most common issues), where we will first confirm
820
+
that Routing Peer itself is working as expected and will check the client's operating system configuration as one of the
821
+
last steps.
822
+
823
+
For the remainder of the section let's assume:
824
+
825
+
- there is a `*.nb.test` Network Resource configured,
826
+
- we are trying to access a `srv.nb.test` domain,
827
+
- a `zxc.nb.test` domain does not exist, it's used to demonstrate errors,
828
+
- the Routing Peer's NetBird address is `100.83.136.209`
829
+
- it's named `brys-vm-nbt-ubuntu-isolated-02`, when referred in the outputs
830
+
- the client is named `brys-vm-nbt-ubuntu-01`, when referred in the outputs
831
+
- the client is running Ubuntu, but a lot of commands used are working uniformly across all platforms,
832
+
- it's IP address is `100.83.73.97`,
833
+
- on MacOS & Windows you would use `100.83.255.254` to access the local DNS forwarder instead,
834
+
- the Resource is running on `brys-vm-nbt-ubuntu-isolated-01`, when referred to in the outputs
835
+
- we will only check the new port `22054`, but steps might need repeating for port `5353`for legacy clients,
836
+
837
+
<Note>
838
+
Be aware that the port `5353` is a well known Multicast DNS port (aka Avahi aka Bonjour,
839
+
used for: printer sharing, Chromecast etc.) and therefore it might be occupied by another software
840
+
running on the machine. As a result (old) Routing Peers might be prevented from routing Domain Resources.
841
+
842
+
While not an issue in the regular server operations, it might come as a surprise to find that the port `5353`
843
+
is occupied by a Chrome (and it's derivatives) Web Browser on your remotely accessible Windows Server machine.
844
+
845
+
This is the primary reason we have switched to the new port `22054`. We strongly advise you to update your fleet
846
+
to the latest version (no older than `0.59.10`) to address this issue.
847
+
</Note>
848
+
849
+
### Is Routing Peer correctly resolving queries?
850
+
851
+
While in practice it almost never the issue, it is always good to double-check whether the Routing Peer itself is able
852
+
to resolve the requested domain as-is and whether it can access the target resource.
853
+
854
+
Please refer
855
+
to [Verifying the DNS names resolve properly in practice](#verifying-the-dns-names-resolve-properly-in-practice)
856
+
section for operating-system specific commands while adjusting domain for `srv.nb.test`.
857
+
858
+
It also would not hurt to check whether the Routing Peer has an actual network access to the routed resource with:
859
+
860
+
For TCP services you should see something like this:
0 commit comments