|
quickstart
|
|
|
|
sudo apt install wireguard-tools
|
|
|
|
|
|
serverside configuration
|
|
|
|
sudo sysctl -w net.ipv4.ip_forward=1
|
|
sudo sed -i "s/^#net.ipv4.ip_forward = 1/net.ipv4.ip_forward = 1/" /etc/sysctl.conf
|
|
|
|
|
|
generating keys
|
|
|
|
wg genkey > client.key
|
|
wg pubkey < client.key > client.pub
|