Wireguard: Difference between revisions
From DWIKI
Tag: wikieditor |
mNo edit summary Tag: wikieditor |
||
| Line 2: | Line 2: | ||
*[https://www.wireguard.com/ Wireguard homepage] | *[https://www.wireguard.com/ Wireguard homepage] | ||
*[https://wiki.debian.org/WireGuard Wireguard on Debian] | *[https://wiki.debian.org/WireGuard Wireguard on Debian] | ||
=HOWTO= | |||
==Enable forwarding== | |||
sysctl net.ipv4.ip_forward=1 | |||
==Show configuration== | |||
wg showconf wg0 | |||
=Configuration= | =Configuration= | ||
| Line 10: | Line 17: | ||
===Endpoint=== | ===Endpoint=== | ||
===AllowedIPs=== | ===AllowedIPs=== | ||
=Quickstart= | |||
==Server== | |||
Assuming server is behind nat, with SERVERIP=192.168.123.2/24 | |||
===Generate keys=== | |||
wg genkey | tee server-privatekey | wg pubkey > server-publickey | |||
===Configuration file=== | |||
[Interface] | |||
==Client | |||
Revision as of 13:54, 1 July 2025
Links
HOWTO
Enable forwarding
sysctl net.ipv4.ip_forward=1
Show configuration
wg showconf wg0
Configuration
Links
Configuration file
Endpoint
AllowedIPs
Quickstart
Server
Assuming server is behind nat, with SERVERIP=192.168.123.2/24
Generate keys
wg genkey | tee server-privatekey | wg pubkey > server-publickey
Configuration file
[Interface]
==Client
