@LTS_Tom i followed full documentation, on server i have this
interface: wg0
public key: <public_key>
private key: (hidden)
listening port: 51820
peer:
allowed ips: 192.168.69.2/32
persistent keepalive: every 40 seconds
and on client i have
interface: wg0
public key: <public_key>
private key: (hidden)
listening port: 51820
fwmark: 0xca6c
peer:
endpoint: 161.35.35.136:51820
allowed ips: 0.0.0.0/0
transfer: 0 B received, 29.92 KiB sent
persistent keepalive: every 40 seconds
i dont get handshake and i cant ping the servers… on the client server when i do sudo wg-quick up wg0 i dont have connection to internet
Have you validated that the ports are open on the server? Have you tried a tool like netcat to see if you can see data coming in?
Greetings,
Have created a digital ocean setup multiple times now to experiment with this setup. But I am running into some issues.
I have gone over the settings and have it set correctly but it would not connect. When checking each step again I found that when I checked the status of systemctl status wg-quick@wg0 it showed failed ( Active: failed (Result: exit-code) ).
So I blew the droplet away and started over. When I created the wg0 file and only had the server settings, it would give a status of active. Upon stopping the service and adding the peer, then it would show failed. So I tried just leaving the service active after the server info was loaded and used wg-quick down then edited the conf file to add the peer. Upon running wg-up wg0 the ssh crashed and would not reconnect, even after restarting the droplet.
Any help or ideas on what went wrong?