Hello,
I want to setup wireguard on rutx50 where the router should act as a server and i connected a linux machine as a client to test it.
firstly, I will explain my setup.
1.I created a duckdns domain and added it to rutx dynamic dns session.
2. I setup wireguard configuration in the portal, along with a peer which is my linux machine. the interface contains the port 51820. On the peer side i allowed 10.20.20.11(client). i also enabled route allowed Ips. i did put persistant keep alive 25. the configuration is below.
root@RUTX50:~# wg showconf rutx1
[Interface]
ListenPort = 51820
PrivateKey = uLCk--------------------------
[Peer]
PublicKey = m2jDL/a8fI99smWtlZ75T+qVTUcU/8dE4IGc0L3GfQ4=
AllowedIPs = 10.20.20.11/32
PersistentKeepalive = 25
3. On the client setup side the conf looks like this.
root@ubuntu-kamag:/etc/wireguard# wg showconf wg1
[Interface]
ListenPort = 47346
PrivateKey = kHzIWP---------------------------------
[Peer]
PublicKey = HiKKfcQw/EfvJCd/cEAWRpLEl3CplIPFql+l832KfmQ=
AllowedIPs = 10.20.20.1/32
Endpoint = 94.125.79.122:51820
PersistentKeepalive = 25
- with this setup i see no handshake but i can see the public ip being properly getting assigned to the client side with the help of duckdns host name. below is the result
root@ubuntu-kamag:/etc/wireguard# wg
interface: wg1
public key: m2jDL/a8fI99smWtlZ75T+qVTUcU/8dE4IGc0L3GfQ4=
private key: (hidden)
listening port: 47346
peer: HiKKfcQw/EfvJCd/cEAWRpLEl3CplIPFql+l832KfmQ=
endpoint: 94.125.-.-:51820
allowed ips: 10.20.20.1/32
transfer: 0 B received, 34.69 KiB sent
persistent keepalive: every 25 seconds
what is the catch and how can i establish a proper wireguard connection betweeen rutx50(server) and ubuntu machine(client)?