Wireguard: Difference between revisions
From DWIKI
m →HOWTO Tag: wikieditor |
m →HOWTO Tag: wikieditor |
||
| Line 13: | Line 13: | ||
==Show more info== | ==Show more info== | ||
wg show | wg show | ||
==Save configuration== | |||
wg-quick save wg0 | |||
=Configuration= | =Configuration= | ||
Revision as of 14:41, 3 July 2025
Links
HOWTO
Enable forwarding
sysctl net.ipv4.ip_forward=1
Show configuration
wg showconf wg0
Show more info
wg show
Save configuration
wg-quick save 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
net.ipv4.ip_forward=1
iptables rules
FAQ
ping: sendmsg: Required key not available
something is wrong
