Wireguard: Difference between revisions
From DWIKI
mNo edit summary Tag: wikieditor |
Tag: wikieditor |
||
| Line 26: | Line 26: | ||
===Generate keys=== | ===Generate keys=== | ||
wg genkey | tee | wg genkey | tee privatekey | wg pubkey > publickey | ||
===Configuration file=== | ===Configuration file=== | ||
Revision as of 14:27, 2 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 privatekey | wg pubkey > publickey
Configuration file
[Interface]
Client
Things to check
=forwarding
iptables rules
FAQ
ping: sendmsg: Required key not available
something is wrong
