Wireguard: Difference between revisions
From DWIKI
Tag: wikieditor |
m →HOWTO Tag: wikieditor |
||
| (9 intermediate revisions by the same user not shown) | |||
| 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 | |||
==Stop tunnel== | |||
wg-quick stop wg0 | |||
==Show more info== | |||
wg show | |||
==Save configuration== | |||
wg-quick save wg0 | |||
==Reload configuration== | |||
systemctl reload wg-quick@wg0 | |||
=Configuration= | =Configuration= | ||
| Line 10: | Line 31: | ||
===Endpoint=== | ===Endpoint=== | ||
===AllowedIPs=== | ===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 | |||
[[Category:VPN]] | |||
Latest revision as of 13:20, 8 November 2025
Links
HOWTO
Enable forwarding
sysctl net.ipv4.ip_forward=1
Show configuration
wg showconf wg0
Stop tunnel
wg-quick stop wg0
Show more info
wg show
Save configuration
wg-quick save wg0
Reload configuration
systemctl reload wg-quick@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
