diff --git a/public/docs-static/img/how-to-guides/create-route-posturecheck-final.png.png b/public/docs-static/img/how-to-guides/create-route-posturecheck-final.png.png new file mode 100644 index 00000000..99e4ab82 Binary files /dev/null and b/public/docs-static/img/how-to-guides/create-route-posturecheck-final.png.png differ diff --git a/public/docs-static/img/how-to-guides/create-route-with-posturecheck.png b/public/docs-static/img/how-to-guides/create-route-with-posturecheck.png new file mode 100644 index 00000000..233e0b1d Binary files /dev/null and b/public/docs-static/img/how-to-guides/create-route-with-posturecheck.png differ diff --git a/public/docs-static/img/how-to-guides/distribute-to-groups-posturechecks.png b/public/docs-static/img/how-to-guides/distribute-to-groups-posturechecks.png new file mode 100644 index 00000000..4aecd195 Binary files /dev/null and b/public/docs-static/img/how-to-guides/distribute-to-groups-posturechecks.png differ diff --git a/public/docs-static/img/how-to-guides/netbird-routes-list-external.png b/public/docs-static/img/how-to-guides/netbird-routes-list-external.png index b452ac97..07dcf38d 100644 Binary files a/public/docs-static/img/how-to-guides/netbird-routes-list-external.png and b/public/docs-static/img/how-to-guides/netbird-routes-list-external.png differ diff --git a/public/docs-static/img/how-to-guides/netbird-routes-list-local.png b/public/docs-static/img/how-to-guides/netbird-routes-list-local.png index 6e1c0221..b727774a 100644 Binary files a/public/docs-static/img/how-to-guides/netbird-routes-list-local.png and b/public/docs-static/img/how-to-guides/netbird-routes-list-local.png differ diff --git a/public/docs-static/img/how-to-guides/policy-office-subnet-with-posturecheck.png b/public/docs-static/img/how-to-guides/policy-office-subnet-with-posturecheck.png index faed43a6..c7a73ceb 100644 Binary files a/public/docs-static/img/how-to-guides/policy-office-subnet-with-posturecheck.png and b/public/docs-static/img/how-to-guides/policy-office-subnet-with-posturecheck.png differ diff --git a/public/docs-static/img/how-to-guides/policy-with-network-posturecheck-added.png b/public/docs-static/img/how-to-guides/policy-with-network-posturecheck-added.png new file mode 100644 index 00000000..8cd7ce56 Binary files /dev/null and b/public/docs-static/img/how-to-guides/policy-with-network-posturecheck-added.png differ diff --git a/public/docs-static/img/how-to-guides/select-network-posture-check.png b/public/docs-static/img/how-to-guides/select-network-posture-check.png new file mode 100644 index 00000000..ad00931f Binary files /dev/null and b/public/docs-static/img/how-to-guides/select-network-posture-check.png differ diff --git a/src/pages/how-to/disabling-network-route-when-connecting-from-the-office.mdx b/src/pages/how-to/disabling-network-route-when-connecting-from-the-office.mdx index 0708a320..d7ba3d92 100644 --- a/src/pages/how-to/disabling-network-route-when-connecting-from-the-office.mdx +++ b/src/pages/how-to/disabling-network-route-when-connecting-from-the-office.mdx @@ -1,9 +1,18 @@ -# Disabling network route when connecting from the office -A common scenario our users have is to allow theirs peers to externally access their local office network subnet. Having the hability to easily connect to locally exposed services from anywhere in the world, using NetBird is a trivial task, but you don't want to route your traffic via NetBird when you are in the office. To solve this, you can create a policy that will allow connection to the routing peers group, only if they are outside the office, using **Block Peer Network Range** Posture Check. +# Connecting from the office +A typical scenario administrators have is to access their office networks remotely. With [Network routes](https://docs.netbird.io/how-to/routing-traffic-to-private-networks), NetBird makes this an easy task. Still, more often than not, administrators want to avoid routing their user's traffic via NetBird when they are in the office. To solve this, administrators can leverage the power of [Posture Checks](https://docs.netbird.io/how-to/manage-posture-checks) and create policies that allow connection to the routing peers only if they are outside the office by using [Peer Network Range](/how-to/manage-posture-checks#peer-network-range-check) posture check with a block action. -A common scenario our users have is to allow their peers to externally access their local office network subnet. Having the ability to easily connect to locally exposed services from anywhere in the world, using NetBird, is a trivial task. Still, you don't want to route your traffic via NetBird when you are in the office. To solve this, you can create a policy that will allow connection to the routing peers group, only if they are outside the office, using **Block Peer Network Range** Posture Check. +## Example + +In the following scenario, our office network is on the subnet `192.168.1.0/24`. +Let's assume all users will be part of the group `route-users` and the routing peer for our office will be inside the group `route-nodes`. +With this in mind, the goal is to go through the steps of creating a Posture Check, creating a Policy and assign Posture Check to it and finally creating a Network Route that will expose the office subnet. + +### Create a Posture Check +To create a Posture Check, navigate to the `Access Control -> Posture Checks` section in the NetBird dashboard and click on **Add Posture Check**. + +Select `Peer Network Range` and then `Block`. Click `Add Network Range` and input your office subbnet `192.168.1.0/24`. Note that if you have multiple locations that you want to see excluded, you can add multiple network ranges.
@@ -11,29 +20,54 @@ A common scenario our users have is to allow their peers to externally access th
+
+
+
+
+
+
@@ -53,4 +87,5 @@ When we are connected somewhere outside the office, we can observe:
Notice that the subnet `192.168.1.0/24` is routed through our Wireguard interface (`utun100`).
+As you can see, the Posture Check is working as expected, and the traffic is being routed through NetBird only when the client is outside the office network.
This concludes this Posture Check example.