Skip to content

Commit 2229075

Browse files
committed
Point the cleanup commands at the previous mark
1 parent 1e7df75 commit 2229075

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pages/client/environment-variables.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ Container network plugins, CNIs and other VPNs claim bits of the mark space for
4343
The client removes the routing rule for its mark range on shutdown. If you change `NB_FWMARK_BASE` while the client was not shut down gracefully (killed, crashed, host reset), the rule for the previous range stays behind and has to be removed by hand, otherwise traffic keeps being sent to the NetBird routing table:
4444

4545
```shell
46-
# Find the leftover rule, it names the old mark
46+
# Find the leftover rule, it names the mark of the previous range
4747
ip rule show
4848
ip -6 rule show
4949

50-
# Remove it, for both families
50+
# Remove it for both families, with the mark the rules above named
51+
# (0x1bd00 here is the default base, use the previous one if it was custom)
5152
sudo ip -4 rule del not from all fwmark 0x1bd00 lookup netbird priority 110
5253
sudo ip -6 rule del not from all fwmark 0x1bd00 lookup netbird priority 110
5354
```

0 commit comments

Comments
 (0)