Table of Contents

wireguard

fast kernelspace VPN

See https://www.wireguard.com/ and https://wiki.archlinux.org/title/WireGuard for more info.

Configuration

See also https://www.procustodibus.com/blog/2021/05/wireguard-ufw/ on how to setup common configurations.

Firewall rules

When using a firewall such as UFW, the following ports need to be opened:

See ufw on how to configure firewall for use with wireguard.

Troubleshooting

Sometimes SSH connections can fail due to packet fragmentation (?), sometimes a fix is to lower MTU to 1400.
sudo ip link set dev wg0 mtu 1400 and reset inet.