Wireguard client cannot connect

Hi,

I have a AC1300 running with latest firmware (3.215) that I mostly use as a wifi repeater.
I also use a wireguard server (v 1.0.20200513-1~20.04.2) hosted on AWS.

Every time, I need to connect to the wireguard server, I have to connect/abort a random number of times before it works (sometimes for hours !).
For testing, i used the same config file on my laptop and it always connected instantly without any error.

[Interface]
Address = 10.1.1.2/24
PrivateKey = <private_key>
ListenPort = 45076
[Peer]
PublicKey = <public_key>
Endpoint = <ip>:51820
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25

Here are the log:

Mon Mar 13 11:54:40 2023 kern.warn kernel: [ 4128.423601] 726, flush one!
Mon Mar 13 11:54:58 2023 user.debug : ------ss-redir is not running!------
Mon Mar 13 11:54:59 2023 user.notice wireguard: wireguard client start
Mon Mar 13 11:54:59 2023 daemon.info dnsmasq[17746]: exiting on receipt of SIGTERM
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: started, version 2.80 cachesize 150
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: DNS service limited to local subnets
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC no-ID loop-detect inotify dumpfile
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq-dhcp[20894]: DHCP, IP range 192.168.8.100 -- 192.168.8.249, lease time 12h
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain test
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain onion
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain localhost
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain local
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain invalid
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain bind
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain lan
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: reading /tmp/resolv.conf.vpn
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain test
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain onion
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain localhost
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain local
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain invalid
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain bind
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using local addresses only for domain lan
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using nameserver 209.244.0.3#53
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: using nameserver 64.6.64.6#53
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: read /etc/hosts - 4 addresses
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq[20894]: read /tmp/hosts/dhcp.cfg01411c - 2 addresses
Mon Mar 13 11:55:00 2023 daemon.info dnsmasq-dhcp[20894]: read /etc/ethers - 0 addresses
Mon Mar 13 11:55:04 2023 user.info mwan3rtmon[2519]: Detect rtchange event.
Mon Mar 13 11:55:04 2023 user.notice wiregaurd: client start completed, del glwg.lock

Any suggestion ?

Is this the log from when the connection was disconnected? I see in the log that the wireguard connection is normal. Are there any more logs?

Do you mean GL-MT1300?

There is a 4.2.0 firmware can you pls try?

Sorry for the delay.
No more logs than these…

The GUI does not shows it as connected and internet connection is not available for devices.

Yes sorry, meant GL-MT1300.
I installed 4.2.0 and … it works.
Thanks a lot.

Hope this firmware is stable enough!

1 Like