network:vpn:wireguard_access_to_home_network_using_pikvm
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| network:vpn:wireguard_access_to_home_network_using_pikvm [2023/05/14 21:55] – created admin | network:vpn:wireguard_access_to_home_network_using_pikvm [2024/11/17 13:30] (current) – admin | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| [WireGuardPeer] | [WireGuardPeer] | ||
| - | PublicKey=... | + | PublicKey=< |
| - | PresharedKey=... | + | PresharedKey=< |
| AllowedIPs=10.0.0.2/ | AllowedIPs=10.0.0.2/ | ||
| Line 69: | Line 69: | ||
| AllowedIPs=10.0.0.4/ | AllowedIPs=10.0.0.4/ | ||
| ``` | ``` | ||
| + | |||
| + | After adding peers use `systemctl restart systemd-networkd` to load the new configuration. | ||
| `/ | `/ | ||
| Line 80: | Line 82: | ||
| ``` | ``` | ||
| + | ## A typical client conf file (peer_B and so on) | ||
| + | E. g. for peer B: | ||
| + | |||
| + | ```ini | ||
| + | [Interface] | ||
| + | Address = 10.0.0.2/24 | ||
| + | DNS = 192.168.1.1 | ||
| + | ListenPort = 38865 | ||
| + | MTU = 1330 | ||
| + | PrivateKey = <best generated on the client> | ||
| + | [Peer] | ||
| + | PublicKey = < | ||
| + | PresharedKey = < | ||
| + | AllowedIps = 10.0.0.0/ | ||
| + | Endpoint = <DNS resolveable hostname of public IP>: | ||
| + | ``` | ||
| + | |||
| + | With the information filled in the conf file can be transferred to the client. For IOs and Android QR codes can be used: | ||
| + | |||
| + | ```bash | ||
| + | qr < peer_B.conf | ||
| + | ``` | ||
network/vpn/wireguard_access_to_home_network_using_pikvm.1684094112.txt.gz · Last modified: by admin