Skip to content
Open
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
38 changes: 22 additions & 16 deletions how-to/wireguard-vpn/on-an-internal-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,29 @@ However, you do have a spare system inside your network that you could use. Here

To recap, our home network has the `10.10.10.0/24` address, and we want to connect to it from a remote location and be "inserted" into that network as if we were there:



```mermaid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```mermaid
```{mermaid}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should fix the rendering issue :)

flowchart LR
%% ASCII -> Mermaid conversion of: laptop over wlan0 to public untrusted network,
%% WireGuard wg0 tunnel (10.90.90.1/24 <-> 10.90.90.2/24) to VPN gw and VPN network.

laptop["Laptop"]

internet(("public untrusted<br/>network/internet"))
vpngw["VPN gw"]
vpn(("VPN network"))

%% Physical/normal networking
laptop --|wlan0|--> internet
internet --|eth0|--> vpngw

%% WireGuard VPN endpoints
laptop -. "wg0 10.90.90.1/24" .-> vpn
vpngw -. "wg0 10.90.90.2/24" .-> vpn

```
public internet
10.10.10.11/24
home0│ xxxxxx ppp0 ┌────────┐
┌─┴──┐ xx xxxxx ──────┤ router │
│ ├─ppp0 xxx xx └───┬────┘ home network, .home domain
│ │ xx x │ 10.10.10.0/24
│ │ xxx xxx └───┬─────────┬─────────┐
└────┘ xxxxxx │ │ │
┌─┴─┐ ┌─┴─┐ ┌─┴─┐
wg0 ──┤ │ │ │ │ │
10.10.10.10/32 │pi4│ │NAS│ │...│
│ │ │ │ │ │
└───┘ └───┘ └───┘
Reserved for VPN users:
10.10.10.10-49
```


## Router changes

Expand Down