Wireguard client caused wifi problem

I config wireguard client on GL-SFT1200, to connect wireguard server that built by myself.
Connect well, work well by vpn policies.
But few hours later, could search wifi signal, but can’t get ip address by LAN’s DHCP.
If turned off wireguard client, it seems wifi works well.
Any ideas? txs.

When this happens, i.e. wifi connection failed,
can you connect via cable and ssh to the router and get some log logread?

ok, i’ll try. if I could log in ssh, which log file I could post?

Use command logread to output the log and then post.

Sat Apr 30 08:24:46 2022 kern.warn kernel: [176556.247351] lmac[1] rc_init: station_id=62 format_mod=4 pre_type=0 short_gi=1 max_bw=2
Sat Apr 30 08:24:46 2022 kern.warn kernel: [176556.255437] lmac[1] rc_init: nss_max=1 mcs_max=9 r_idx_min=12 r_idx_max=12 no_samples=10
Sat Apr 30 08:24:46 2022 kern.warn kernel: [176556.263803] add sta(ee:80:52:25:db:59) to hash table 37!
Sat Apr 30 08:24:46 2022 kern.info kernel: [176556.269557] hb-fmac 17800000.wifi-hb wlan0: Add sta 62 (ee:80:52:25:db:59) flags=[WME][AUTHENTICATED][ASSOCIATED]
Sat Apr 30 08:24:46 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: associated (aid 1)
Sat Apr 30 08:24:46 2022 kern.info kernel: [176556.282812] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:24:46 2022 kern.info kernel: [176556.292504] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:24:46 2022 kern.info kernel: [176556.301156] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:24:46 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ee:80:52:25:db:59
Sat Apr 30 08:24:46 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 RADIUS: starting accounting session 93D2894CA4936921
Sat Apr 30 08:24:46 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 WPA: pairwise key handshake completed (RSN)
Sat Apr 30 08:24:46 2022 kern.info kernel: [176556.317780] hb-fmac 17800000.wifi-hb wlan0: Add key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:24:51 2022 daemon.notice netifd: sf_eth_event port 2 updown 1 is_wan 0 vlanid 1 ifname eth0
Sat Apr 30 08:25:09 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED ee:80:52:25:db:59
Sat Apr 30 08:25:09 2022 kern.warn kernel: [176579.094389] rx pkt(1) disassoc from [ee:80:52:25:db:59] reasoncode: 8
Sat Apr 30 08:25:09 2022 kern.info kernel: [176579.102049] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:25:09 2022 kern.info kernel: [176579.110651] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:25:09 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: disassociated
Sat Apr 30 08:25:09 2022 kern.info kernel: [176579.119450] hb-fmac 17800000.wifi-hb wlan0: Del sta 62 (ee:80:52:25:db:59)
Sat Apr 30 08:25:09 2022 kern.warn kernel: [176579.126587] remove STA ee:80:52:25:db:59 from hash table success
Sat Apr 30 08:25:10 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Sat Apr 30 08:25:10 2022 kern.warn kernel: [176580.134048] tx pkt(1) deauth to [ee:80:52:25:db:59] reasoncode: 2
Sat Apr 30 08:26:00 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: authenticated
Sat Apr 30 08:26:00 2022 kern.warn kernel: [176629.996063] lmac[1] rc_init: station_id=63 format_mod=4 pre_type=0 short_gi=1 max_bw=2
Sat Apr 30 08:26:00 2022 kern.warn kernel: [176630.004256] lmac[1] rc_init: nss_max=1 mcs_max=9 r_idx_min=12 r_idx_max=12 no_samples=10
Sat Apr 30 08:26:00 2022 kern.warn kernel: [176630.013045] add sta(ee:80:52:25:db:59) to hash table 37!
Sat Apr 30 08:26:00 2022 kern.info kernel: [176630.018806] hb-fmac 17800000.wifi-hb wlan0: Add sta 63 (ee:80:52:25:db:59) flags=[WME][AUTHENTICATED][ASSOCIATED]
Sat Apr 30 08:26:00 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: associated (aid 1)
Sat Apr 30 08:26:00 2022 kern.info kernel: [176630.031528] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:00 2022 kern.info kernel: [176630.040201] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:00 2022 kern.info kernel: [176630.048635] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:00 2022 daemon.notice hostapd: wlan0: AP-STA-CONNECTED ee:80:52:25:db:59
Sat Apr 30 08:26:00 2022 kern.info kernel: [176630.169118] hb-fmac 17800000.wifi-hb wlan0: Add key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:00 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 RADIUS: starting accounting session 9E443EC577F48D98
Sat Apr 30 08:26:00 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 WPA: pairwise key handshake completed (RSN)
Sat Apr 30 08:26:08 2022 daemon.notice hostapd: wlan0: AP-STA-DISCONNECTED ee:80:52:25:db:59
Sat Apr 30 08:26:08 2022 kern.warn kernel: [176638.048050] rx pkt(1) disassoc from [ee:80:52:25:db:59] reasoncode: 8
Sat Apr 30 08:26:08 2022 kern.info kernel: [176638.055622] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:08 2022 kern.info kernel: [176638.064075] hb-fmac 17800000.wifi-hb wlan0: Del key for sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:08 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: disassociated
Sat Apr 30 08:26:08 2022 kern.info kernel: [176638.072778] hb-fmac 17800000.wifi-hb wlan0: Del sta 63 (ee:80:52:25:db:59)
Sat Apr 30 08:26:08 2022 kern.warn kernel: [176638.080049] remove STA ee:80:52:25:db:59 from hash table success
Sat Apr 30 08:26:09 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Sat Apr 30 08:26:09 2022 kern.warn kernel: [176639.087705] tx pkt(1) deauth to [ee:80:52:25:db:59] reasoncode: 2
Sat Apr 30 08:26:12 2022 daemon.info hostapd: wlan0: STA ee:80:52:25:db:59 IEEE 802.11: authenticated
Sat Apr 30 08:26:12 2022 kern.warn kernel: [176642.256020] lmac[1] rc_init: station_id=0 format_mod=4 pre_type=0 short_gi=1 max_bw=2
Sat Apr 30 08:26:12 2022 kern.warn kernel: [176642.264229] lmac[1] rc_init: nss_max=1 mcs_max=9 r_idx_min=12 r_idx_max=12 no_samples=10
Sat Apr 30 08:26:12 2022 kern.warn kernel: [176642.278460] add sta(ee:80:52:25:db:59) to hash table 37!
Sat Apr 30 08:26:12 2022 kern.info kernel: [176642.284026] hb-fmac 17800000.wifi-hb wlan0: Add sta 0 (ee:80:52:25:db:59) flags=[WME][AUTHENTICATED][ASSOCIATED]

I asked developer to have a check.

I will do a test by myself.

How long after wireguard will this problem appear?

always in few hours, less than one day.