Skip to content

Commit 0d48ad6

Browse files
Chupakaswoboda1337
authored andcommitted
[wireguard] Fix the examples table (#5395)
1 parent 0256dd2 commit 0d48ad6

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

content/components/wireguard.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,16 @@ Incoming connections are not affected by `netmask`.
156156

157157
Let's explain with some examples:
158158

159-
| address | netmask | allowed ips | working outgoing connections |
160-
| ------------ | ---------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
161-
| 172.16.0.100 | *omitted* or 255.255.255.255 | *omitted* or any other value | **none**, no routes are created |
162-
| | 255.255.255.0 | *omitted* | only to `172.16.0.0/24` |
163-
| | | - 172.16.0.0/24 - 192.168.0.0/24 - *any other* | and any other network will be outside `172.16.0.0/24` |
164-
| | | - 192.168.0.0/24 | **none** because `192.168.0.0/24` is not part of `172.16.0.0/24` |
165-
| 10.44.0.100 | 255.0.0.0 | *omitted* | to `10.0.0.0/8` network |
166-
| | | - 10.44.0.0/16 - 10.10.0.0/16 | only to the networks in the allowed list because the netmask will route the whole `10.0.0.0/8` but wireguard allows only those two subnets |
167-
| any | 0.0.0.0 | *omitted* | **any** |
168-
| | | - 172.16.0.0/24 - 10.44.0.0/16 - 10.10.0.0/16 | to any network that is in the list of allowed IPs because the netmask will route any traffic but wireguard allows only its own list |
159+
| address | netmask | allowed ips | working outgoing connections |
160+
| ------------ | ---------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
161+
| 172.16.0.100 | *omitted* or 255.255.255.255 | *omitted* or any other value | **none**, no routes are created |
162+
| 172.16.0.100 | 255.255.255.0 | *omitted* | to `172.16.0.0/24` network |
163+
| 172.16.0.100 | 255.255.255.0 | `- 172.16.0.0/24`{{< break >}}`- 192.168.0.0/24`{{< break >}} *`- any other`* | only to `172.16.0.0/24` because `192.168.0.0/24` and any other network will be outside of `172.16.0.0/24` |
164+
| 172.16.0.100 | 255.255.255.0 | `- 192.168.0.0/24` | **none** because `192.168.0.0/24` is not part of `172.16.0.0/24` |
165+
| 10.44.0.100 | 255.0.0.0 | *omitted* | to `10.0.0.0/8` network |
166+
| 10.44.0.100 | 255.0.0.0 | `- 10.44.0.0/16`{{< break >}}`- 10.10.0.0/16` | only to the networks in the allowed list because the netmask will route the whole `10.0.0.0/8` but wireguard allows only those two subnets |
167+
| any | 0.0.0.0 | *omitted* | **any** |
168+
| any | 0.0.0.0 | `- 172.16.0.0/24`{{< break >}}`- 10.44.0.0/16`{{< break >}}`- 10.10.0.0/16` | to any network that is in the list of allowed IPs because the netmask will route any traffic but wireguard allows only its own list |
169169

170170
> [!NOTE]
171171
> Setting the `netmask` to `0.0.0.0` has the effect of routing
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{/*
2+
Shortcode: break
3+
Output: Inserts <br>
4+
*/}}
5+
<br>

0 commit comments

Comments
 (0)