Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Pubic Wifi connection drops like clockwork after 10 minutes

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
durexlw
Posts: 2
Joined: 2020-05-25 10:56

Pubic Wifi connection drops like clockwork after 10 minutes

#1 Post by durexlw »

Running Kali linux 2020.2, when I try to connect to a public WiFi network (PEAP MSCHAPV2), it disconnects, almost like clockwork after 10 minutes. The reason this worries me is:
  • I lose internet connection after the exact lease time of 600 seconds is passed.
  • NetworkManager however reports I should have full connectivity, but pinging 8.8.8.8 returns nothing. The connection is indeed strong, along the lines of: Link Quality=90/100 Signal level=55/100 Noise level=0/100
  • A windows testbox is sitting right next to it and even with it's lousy internal wifi, it maintains a stable connection
Here are some log files:

Code: Select all

14:36:08 [1590410168.7870] agent-manager: agent[4d0eff7ecf14af56,:1.103/nmcli-connect/0]: agent registered
14:36:08 [1590410168.7900] device (wlan0): Activation: starting connection '' (2a64d856-f613-40ad-93b4-82564128244c)
14:36:08 [1590410168.7904] audit: op="connection-activate" uuid="2a64d856-f613-40ad-93b4-82564128244c" name="" pid=5139 uid=0 result="success"
14:36:08 [1590410168.7907] device (wlan0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
14:36:08 [1590410168.7929] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
14:36:08 [1590410168.7946] device (wlan0): Activation: (wifi) access point '' has security, but secrets are required.
14:36:08 [1590410168.7947] device (wlan0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
14:36:08 [1590410168.8082] device (wlan0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
14:36:08 [1590410168.8102] device (wlan0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
14:36:08 [1590410168.8119] device (wlan0): Activation: (wifi) connection '' has security, and secrets exist.  No new secrets needed.
14:36:08 [1590410168.8120] Config: added 'ssid' value ''
14:36:08 [1590410168.8121] Config: added 'scan_ssid' value '1'
14:36:08 [1590410168.8121] Config: added 'bgscan' value 'simple:30:-65:300'
14:36:08 [1590410168.8121] Config: added 'key_mgmt' value 'WPA-EAP WPA-EAP-SHA256 FT-EAP FT-EAP-SHA384'
14:36:08 [1590410168.8122] Config: added 'password' value '<hidden>'
14:36:08 [1590410168.8122] Config: added 'eap' value 'PEAP'
14:36:08 [1590410168.8122] Config: added 'fragment_size' value '1266'
14:36:08 [1590410168.8123] Config: added 'phase2' value 'auth=MSCHAPV2'
14:36:08 [1590410168.8123] Config: added 'identity' value '<hidden>'
14:36:08 [1590410168.8123] Config: added 'proactive_key_caching' value '1'
14:36:08 [1590410168.8359] device (wlan0): supplicant interface state: disconnected -> associating
14:36:08 [1590410168.8360] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> associating
14:36:09 [1590410169.0244] device (wlan0): supplicant interface state: associating -> associated
14:36:09 [1590410169.0245] device (p2p-dev-wlan0): supplicant management interface state: associating -> associated
14:36:09 [1590410169.6856] device (wlan0): supplicant interface state: associated -> 4way_handshake
14:36:09 [1590410169.6857] device (p2p-dev-wlan0): supplicant management interface state: associated -> 4way_handshake
14:36:09 [1590410169.7136] device (wlan0): supplicant interface state: 4way_handshake -> completed
14:36:09 [1590410169.7138] device (wlan0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network ""
14:36:09 [1590410169.7139] device (p2p-dev-wlan0): supplicant management interface state: 4way_handshake -> completed
14:36:09 [1590410169.7150] device (wlan0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
14:36:09 [1590410169.7169] dhcp4 (wlan0): activation: beginning transaction (timeout in 45 seconds)
14:36:09 [1590410169.7968] dhcp4 (wlan0): option dhcp_lease_time      => '600'
14:36:09 [1590410169.7970] dhcp4 (wlan0): option domain_name_servers  => '195.130.130.134 195.130.131.134'
14:36:09 [1590410169.7970] dhcp4 (wlan0): option expiry               => '1590410769'
14:36:09 [1590410169.7971] dhcp4 (wlan0): option host_name            => 'kali'
14:36:09 [1590410169.7971] dhcp4 (wlan0): option ip_address           => '10.127.65.118'
14:36:09 [1590410169.7972] dhcp4 (wlan0): option next_server          => '10.127.0.1'
14:36:09 [1590410169.7972] dhcp4 (wlan0): option requested_broadcast_address => '1'
14:36:09 [1590410169.7973] dhcp4 (wlan0): option requested_domain_name => '1'
14:36:09 [1590410169.7974] dhcp4 (wlan0): option requested_domain_name_servers => '1'
14:36:09 [1590410169.7974] dhcp4 (wlan0): option requested_domain_search => '1'
14:36:09 [1590410169.7975] dhcp4 (wlan0): option requested_host_name  => '1'
14:36:09 [1590410169.7975] dhcp4 (wlan0): option requested_interface_mtu => '1'
14:36:09 [1590410169.7976] dhcp4 (wlan0): option requested_ms_classless_static_routes => '1'
14:36:09 [1590410169.7976] dhcp4 (wlan0): option requested_nis_domain => '1'
14:36:09 [1590410169.7977] dhcp4 (wlan0): option requested_nis_servers => '1'
14:36:09 [1590410169.7977] dhcp4 (wlan0): option requested_ntp_servers => '1'
14:36:09 [1590410169.7978] dhcp4 (wlan0): option requested_rfc3442_classless_static_routes => '1'
14:36:09 [1590410169.7978] dhcp4 (wlan0): option requested_root_path  => '1'
14:36:09 [1590410169.7979] dhcp4 (wlan0): option requested_routers    => '1'
14:36:09 [1590410169.7979] dhcp4 (wlan0): option requested_static_routes => '1'
14:36:09 [1590410169.7980] dhcp4 (wlan0): option requested_subnet_mask => '1'
14:36:09 [1590410169.7980] dhcp4 (wlan0): option requested_time_offset => '1'
14:36:09 [1590410169.7981] dhcp4 (wlan0): option requested_wpad       => '1'
14:36:09 [1590410169.7982] dhcp4 (wlan0): option routers              => '10.127.0.1'
14:36:09 [1590410169.7983] dhcp4 (wlan0): option subnet_mask          => '255.255.128.0'
14:36:09 [1590410169.7983] dhcp4 (wlan0): state changed unknown -> bound
14:36:09 [1590410169.8087] device (wlan0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
14:36:09 [1590410169.8390] device (wlan0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
14:36:09 [1590410169.8413] device (wlan0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
14:36:09 [1590410169.8472] policy: set '' (wlan0) as default for IPv4 routing and DNS
14:36:09 kali dnsmasq[657]: reading /etc/resolv.conf
14:36:09 kali dnsmasq[657]: using nameserver 195.130.130.134#53
14:36:09 [1590410169.8600] device (wlan0): Activation: successful, device activated.
14:36:09 kali dnsmasq[657]: using nameserver 195.130.131.134#53
14:36:09 kali dnsmasq[657]: cleared cache


14:41:13 [1590410473.2742] dhcp4 (wlan0): option dhcp_lease_time      => '600'
14:41:13 [1590410473.2743] dhcp4 (wlan0): option domain_name_servers  => '195.130.130.134 195.130.131.134'
14:41:13 [1590410473.2744] dhcp4 (wlan0): option expiry               => '1590411070'
14:41:13 [1590410473.2745] dhcp4 (wlan0): option host_name            => 'kali'
14:41:13 [1590410473.2745] dhcp4 (wlan0): option ip_address           => '10.127.65.118'
14:41:13 [1590410473.2746] dhcp4 (wlan0): option next_server          => '10.127.0.1'
14:41:13 [1590410473.2746] dhcp4 (wlan0): option requested_broadcast_address => '1'
14:41:13 [1590410473.2747] dhcp4 (wlan0): option requested_domain_name => '1'
14:41:13 [1590410473.2747] dhcp4 (wlan0): option requested_domain_name_servers => '1'
14:41:13 [1590410473.2748] dhcp4 (wlan0): option requested_domain_search => '1'
14:41:13 [1590410473.2748] dhcp4 (wlan0): option requested_host_name  => '1'
14:41:13 [1590410473.2749] dhcp4 (wlan0): option requested_interface_mtu => '1'
14:41:13 [1590410473.2749] dhcp4 (wlan0): option requested_ms_classless_static_routes => '1'
14:41:13 [1590410473.2750] dhcp4 (wlan0): option requested_nis_domain => '1'
14:41:13 [1590410473.2754] dhcp4 (wlan0): option requested_nis_servers => '1'
14:41:13 [1590410473.2754] dhcp4 (wlan0): option requested_ntp_servers => '1'
14:41:13 [1590410473.2755] dhcp4 (wlan0): option requested_rfc3442_classless_static_routes => '1'
14:41:13 [1590410473.2755] dhcp4 (wlan0): option requested_root_path  => '1'
14:41:13 [1590410473.2756] dhcp4 (wlan0): option requested_routers    => '1'
14:41:13 [1590410473.2756] dhcp4 (wlan0): option requested_static_routes => '1'
14:41:13 [1590410473.2757] dhcp4 (wlan0): option requested_subnet_mask => '1'
14:41:13 [1590410473.2758] dhcp4 (wlan0): option requested_time_offset => '1'
14:41:13 [1590410473.2758] dhcp4 (wlan0): option requested_wpad       => '1'
14:41:13 [1590410473.2759] dhcp4 (wlan0): option routers              => '10.127.0.1'
14:41:13 [1590410473.2759] dhcp4 (wlan0): option subnet_mask          => '255.255.128.0'
14:41:13 [1590410473.2760] dhcp4 (wlan0): state changed bound -> extended


14:46:09 [1590410769.7639] dhcp4 (wlan0): option dhcp_lease_time      => '600'
14:46:09 [1590410769.7662] dhcp4 (wlan0): option domain_name_servers  => '195.130.130.134 195.130.131.134'
14:46:09 [1590410769.7663] dhcp4 (wlan0): option expiry               => '1590411369'
14:46:09 [1590410769.7663] dhcp4 (wlan0): option host_name            => 'kali'
14:46:09 [1590410769.7664] dhcp4 (wlan0): option ip_address           => '10.127.65.118'
14:46:09 [1590410769.7664] dhcp4 (wlan0): option next_server          => '10.127.0.1'
14:46:09 [1590410769.7665] dhcp4 (wlan0): option requested_broadcast_address => '1'
14:46:09 [1590410769.7665] dhcp4 (wlan0): option requested_domain_name => '1'
14:46:09 [1590410769.7666] dhcp4 (wlan0): option requested_domain_name_servers => '1'
14:46:09 [1590410769.7666] dhcp4 (wlan0): option requested_domain_search => '1'
14:46:09 [1590410769.7667] dhcp4 (wlan0): option requested_host_name  => '1'
14:46:09 [1590410769.7667] dhcp4 (wlan0): option requested_interface_mtu => '1'
14:46:09 [1590410769.7668] dhcp4 (wlan0): option requested_ms_classless_static_routes => '1'
14:46:09 [1590410769.7668] dhcp4 (wlan0): option requested_nis_domain => '1'
14:46:09 [1590410769.7669] dhcp4 (wlan0): option requested_nis_servers => '1'
14:46:09 [1590410769.7669] dhcp4 (wlan0): option requested_ntp_servers => '1'
14:46:09 [1590410769.7670] dhcp4 (wlan0): option requested_rfc3442_classless_static_routes => '1'
14:46:09 [1590410769.7670] dhcp4 (wlan0): option requested_root_path  => '1'
14:46:09 [1590410769.7671] dhcp4 (wlan0): option requested_routers    => '1'
14:46:09 [1590410769.7671] dhcp4 (wlan0): option requested_static_routes => '1'
14:46:09 [1590410769.7672] dhcp4 (wlan0): option requested_subnet_mask => '1'
14:46:09 [1590410769.7672] dhcp4 (wlan0): option requested_time_offset => '1'
14:46:09 [1590410769.7673] dhcp4 (wlan0): option requested_wpad       => '1'
14:46:09 [1590410769.7673] dhcp4 (wlan0): option routers              => '10.127.0.1'
14:46:09 [1590410769.7674] dhcp4 (wlan0): option subnet_mask          => '255.255.128.0'
14:46:09 [1590410769.7674] dhcp4 (wlan0): state changed extended -> extended
14:46:17 [1590410777.7904] device (wlan0): supplicant interface state: completed -> associating
14:46:17 [1590410777.7906] device (p2p-dev-wlan0): supplicant management interface state: completed -> associating
14:46:18 [1590410778.0565] device (wlan0): supplicant interface state: associating -> disconnected
14:46:18 [1590410778.0566] device (p2p-dev-wlan0): supplicant management interface state: associating -> disconnected
14:46:18 [1590410778.1589] device (wlan0): supplicant interface state: disconnected -> scanning
14:46:18 [1590410778.1590] device (p2p-dev-wlan0): supplicant management interface state: disconnected -> scanning
14:46:18 [1590410778.8752] device (wlan0): supplicant interface state: scanning -> associating
14:46:18 [1590410778.8752] device (p2p-dev-wlan0): supplicant management interface state: scanning -> associating
14:46:18 [1590410778.9234] device (wlan0): supplicant interface state: associating -> associated
14:46:18 [1590410778.9235] device (p2p-dev-wlan0): supplicant management interface state: associating -> associated
14:46:19 [1590410779.5671] device (wlan0): supplicant interface state: associated -> 4way_handshake
14:46:19 [1590410779.5673] device (p2p-dev-wlan0): supplicant management interface state: associated -> 4way_handshake
14:46:19 [1590410779.5903] device (wlan0): supplicant interface state: 4way_handshake -> completed
14:46:19 [1590410779.5927] device (p2p-dev-wlan0): supplicant management interface state: 4way_handshake -> completed
How I interpret this: I get a lease of 600 seconds, according to protocol, the lease is renewed after half the time. Then at 14:46 the lease is expired, I should get a new one, but that's the exact point I lose internet connection.

However NetworkManager says:

Code: Select all

sudo nmcli g status
STATE      CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN    
connected  full          enabled  enabled  enabled  enabled 
And iwconfig:

Code: Select all

Link Quality=100/100  Signal level=59/100  Noise level=0/100
I thought this would be due to MAC Address randomization, so in "/etc/NetworkManager/conf.d/" I added a file "no-mac-addr-random.conf", containing:

Code: Select all

[connection]
wifi.cloned-mac-address=preserve
wifi.mac-address-randomization=no

[device]
wifi.scan-rand-mac-address=no
For completeness, the connection-definition itself contains:

Code: Select all

[connection]
id=PublicWiFi
uuid=2a64d856-f613-40ad-93b4-82564128244c
type=wifi
autoconnect-priority=5
metered=2
permissions=
timestamp=1590393037

[wifi]
mac-address=00:G0:CT:AB:59:CA
mac-address-blacklist=
mode=infrastructure
seen-bssids=36:2C:B4:33:6E:7C;3A:43:3D:E4:A4:A7;3A:43:7D:E4:A3:92;56:67:31:83:40:5A;AE:22:05:55:8B:B9;AE:22:35:55:8C:CA;AE:22:35:8D:94:9F;
ssid=PublicWiFi

[wifi-security]
key-mgmt=wpa-eap

[802-1x]
eap=peap;
identity=<hidden>
password=<hidden>
phase2-auth=mschapv2

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=disabled

[proxy]
Simply just "nmcli c down PublicWiFi" and "nmcli c up PublicWifi" restores everything back to normal... for exactly 10 minutes and then internet drops again, but networkmanager just claims this connection has full connectivity. I'm sure I have to do something wrong or there is some mechanism I'm unaware of... this is driving me insane.

Could anybody help me?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Pubic Wifi connection drops like clockwork after 10 minu

#2 Post by Head_on_a_Stick »

durexlw wrote:Running Kali linux
That is not supported here. If you want assistance on these boards then please install Debian instead and confirm that the problem also exists there. If it does then post back with details of your hardware & driver.
deadbang

durexlw
Posts: 2
Joined: 2020-05-25 10:56

Re: Pubic Wifi connection drops like clockwork after 10 minu

#3 Post by durexlw »

Head_on_a_Stick wrote:That is not supported here. If you want assistance on these boards then please install Debian instead and confirm that the problem also exists there. If it does then post back with details of your hardware & driver.
Thanks for the reply. I apologize. I wrongly presumed the network aspect would still be plain Debian. I'm installing Debian and will report back.

Post Reply