Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions content/components/wireguard.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,16 @@ Incoming connections are not affected by `netmask`.

Let's explain with some examples:

| address | netmask | allowed ips | working outgoing connections |
| ------------ | ---------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 172.16.0.100 | *omitted* or 255.255.255.255 | *omitted* or any other value | **none**, no routes are created |
| | 255.255.255.0 | *omitted* | only to `172.16.0.0/24` |
| | | - 172.16.0.0/24 - 192.168.0.0/24 - *any other* | and any other network will be outside `172.16.0.0/24` |
| | | - 192.168.0.0/24 | **none** because `192.168.0.0/24` is not part of `172.16.0.0/24` |
| 10.44.0.100 | 255.0.0.0 | *omitted* | to `10.0.0.0/8` network |
| | | - 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 |
| any | 0.0.0.0 | *omitted* | **any** |
| | | - 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 |
| address | netmask | allowed ips | working outgoing connections |
| ------------ | ---------------------------- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| 172.16.0.100 | *omitted* or 255.255.255.255 | *omitted* or any other value | **none**, no routes are created |
| 172.16.0.100 | 255.255.255.0 | *omitted* | to `172.16.0.0/24` network |
| 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` |
| 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` |
| 10.44.0.100 | 255.0.0.0 | *omitted* | to `10.0.0.0/8` network |
| 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 |
| any | 0.0.0.0 | *omitted* | **any** |
| 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 |

> [!NOTE]
> Setting the `netmask` to `0.0.0.0` has the effect of routing
Expand Down
5 changes: 5 additions & 0 deletions themes/esphome-theme/layouts/shortcodes/break.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{/*
Shortcode: break
Output: Inserts <br>
*/}}
<br>