sysctl -w net.ipv4.ip_forward=1
or
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/sysctl.conf:
net.ipv4.ip_forward = 1
sysctl net.ipv4.ip_forward
or
cat /proc/sys/net/ipv4/ip_forward
sudo -i
apt update
apt install wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
<...setup wg0.conf>
systemctl enable wg-quick@wg0
systemctl start wg-quick@wg0
Need to apt install socat
On the server: socat UDP-LISTEN:51820 STDOUT
On the client: socat STDIN UDP:<...server>:51820
... then type some things and hit enter. It should show up on your server terminal
Sometimes UDP is blocked by NACLs and TCP isn't; The same thing works substituting UDP for TCP (but of course you'll need to get UDP working for wireguard)