I have a server with a static IP and a client which is located in my local network at home. What I am trying to achieve is a vpn connection between these two (might add more clients later though). I don't need to be able to connect to the internet through the vpn server, just the direct connection.
The server is running Ubuntu 18.04 LTS, but I cannot use the wireguard kernel module, because the server is an OpenVZ virtual server and therefore does not allow modifications to the kernel. So I'm using wireguard-go instead on the server. See my earlier post for the discussion on that matter.
The server is configured with
[Interface]
PrivateKey = ...
ListenPort = 51944
[Peer]
PublicKey = ...
AllowedIPs = 192.168.177.5/32
and
sudo ip addr add 192.168.177.4/32 dev wg0
to set its IP address.
The client (also Ubuntu 18.04 LTS) is configured with
[Interface]
PrivateKey = ...
Address = 192.168.177.5/32
[Peer]
PublicKey = ...
AllowedIPs = 192.168.177.4/32
Endpoint = [static IP of my server]:51944
PersistentKeepalive = 25
and started with
sudo wg-quick up wg0
In the output from sudo wg of both, server and client, I can see that the handshake works. But trying to ping either way makes the comment prompt wait forever.
Does anyone have I an idea what the problem might be?