Setting up wireguard client using a config file

Hi everyone, I’m trying to set up a WireGuard client from a VPN provider (IONOS)
However, I’m not exactly sure which of these

GL-iNet Side:
Config

[Interface]
PrivateKey =
Address=192.168.69.2/24

[Peer]
PublicKey=
Endpoint=:51820
AllowedIPs = 0.0.0.0/0

WireGuard Server Side
Config file
[Interface]
Address = 192.168.69.1/24
ListenPort = 51820
PrivateKey =

[Peer]
PublicKey=
AllowedIPs=192.168.69.2
PersistentKeepalive=25

I get this log
user.notice wireguard-debug: USER=root ifname=wgclient ACTION=REKEY-TIMEOUT SHLVL=2 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/

There are different answers online and so a bit confusing which is why I’m asking here
what is my mistake?

Hi,
interface = client
peer = server

listen port for interface is an any free port. e.g 17123

1 Like