Wireguard: Difference between revisions

From DWIKI
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Tony (talk | contribs)
mNo edit summary
Tag: wikieditor
Line 33: Line 33:




==Client
==Client==
 
 
=FAQ=
==ping: sendmsg: Required key not available==
something is wrong

Revision as of 14:00, 1 July 2025

Links

HOWTO

Enable forwarding

sysctl net.ipv4.ip_forward=1

Show configuration

wg showconf wg0

Configuration

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

FAQ

ping: sendmsg: Required key not available

something is wrong