Hello guys, and happy new year! I'm facing a problem with my FRITZ!Box 7530 running OpenWrt (I'm running 23.05.5 with this patch: https://patchwork.ozlabs.org/project/openwrt/patch/20230130224020.473703-1-jan@3e8.eu/). Basically every now and then some devices connected via Wi-Fi lose the Internet connection or straight up disconnect, for now I have only 2 devices connected to the Wi-Fi: my PC and my Smartphone. Every time one of the two get disconnected while the other one is perfectly working. It happens multiple times throughout the day at random intervals and is really irritating. I tried disabling "Disassociate On Low Acknowledgement" but it made no difference at all. Also looking at the logs I can't find anything that stands out. I noticed that when I lose the Internet connection if I ping the Router it start working again. The same happens if I just disconnect from the Wi-Fi and reconnect. I also noticed that sometimes the connection just gets slower and slower over time and then gets back up, it's not always consistent, while I don't get this problem via Ethernet (I'm really close to the Router tho, like 50cm away). Any help is really appreciated! Thank you.
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </>
" button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
ubus call system board
{
"kernel": "5.15.167",
"hostname": "OpenWrt",
"system": "ARMv7 Processor rev 5 (v7l)",
"model": "AVM FRITZ!Box 7530",
"board_name": "avm,fritzbox-7530",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.5",
"revision": "r24106-10cc5fcd00",
"target": "ipq40xx/generic",
"description": "OpenWrt 23.05.5 r24106-10cc5fcd00"
}
}
cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'xxxx:xxxx:xxxx::/48'
config atm-bridge 'atm'
option vpi '1'
option vci '32'
option encaps 'llc'
option payload 'bridged'
option nameprefix 'dsl'
config dsl 'dsl'
option annex 'j'
option tone 'b'
option ds_snr_offset '0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
config device
option name 'dsl0'
option macaddr 'xx:xx:xx:xx:xx:xx'
config interface 'wan'
option device 'dsl0.835'
option proto 'pppoe'
option username 'xxxx'
option password 'xxxx'
option ipv6 '0'
config interface 'wan6'
option device '@wan'
option proto 'dhcpv6'
option disabled '1'
option reqaddress 'try'
option reqprefix 'auto'
option auto '0'
config device
option type '8021q'
option ifname 'lan4'
option vid '835'
option name 'lan4.835'
config device
option type '8021q'
option ifname 'lan4'
option vid '836'
option name 'lan4.836'
config device
option type 'bridge'
option name 'br-guest'
option bridge_empty '1'
config interface 'guest'
option proto 'static'
option device 'br-guest'
option ipaddr '192.168.0.1'
option netmask '255.255.255.0'
config interface 'untrusted'
option proto 'static'
option device 'br-untrusted'
option ipaddr '192.168.90.1'
option netmask '255.255.255.0'
config device
option type 'bridge'
option name 'br-untrusted'
option bridge_empty '1'
list ports 'lan3'
list ports 'lan4.835'
list ports 'lan4.836'
cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/a000000.wifi'
option channel '13'
option band '2g'
option htmode 'HT20'
option cell_density '0'
option country 'IT'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'xxxx'
option encryption 'psk2+ccmp'
option key 'xxxx'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/a800000.wifi'
option channel '36'
option band '5g'
option htmode 'VHT40'
option country 'IT'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'xxxx'
option encryption 'psk2+ccmp'
option key 'xxxx'
config wifi-iface 'wifinet2'
option device 'radio0'
option mode 'ap'
option ssid 'xxxx'
option encryption 'psk2+ccmp'
option key 'xxxx'
option network 'guest'
option isolate '1'
option disabled '1'
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
config dhcp 'guest'
option interface 'guest'
option start '100'
option limit '150'
option leasetime '12h'
config dhcp 'untrusted'
option interface 'untrusted'
option start '100'
option limit '150'
option leasetime '12h'
cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
option enabled '0'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'xxxx::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-IPSec-ESP'
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option name 'Allow-ISAKMP'
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config zone
option name 'guest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'guest'
config forwarding
option src 'guest'
option dest 'wan'
config rule
option name 'Allow-DNS-Guest'
option src 'guest'
option dest_port '53'
option target 'ACCEPT'
list proto 'tcp'
list proto 'udp'
config rule
option name 'Allow-DHCP-Guest'
list proto 'udp'
option src 'guest'
option dest_port '67'
option target 'ACCEPT'
config zone
option name 'untrusted'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'untrusted'
config forwarding
option src 'untrusted'
option dest 'wan'
config rule
option name 'Allow-DNS-Untrusted'
option src 'untrusted'
option dest_port '53'
option target 'ACCEPT'
config rule
option name 'Allow-DHCP-Untrusted'
list proto 'udp'
option src 'untrusted'
option dest_port '67'
option target 'ACCEPT'
Do You have 3 identical ssids in different dhcp networks?
No, I have 2 SSIDs that are the same one (one for 2.4GHz and one for 5GHz) in the lan DHCP and 1 SSID (2.4GHz) in the guest DHCP. The guest SSID is currently disabled tho. Sorry if I used just the "x" character to redact everything, I hope that clears things up.
- option channel '36'
+ option channel 'auto'
+ option channels '36 52 100 116'
option band '5g'
+ option htmode 'VHT80'
- option htmode 'VHT40'
option country 'IT'
Radio restriction is unjustified.
Ok, I'm going to make those changes, but could you please elaborate more on why I'd change those? Is it just to test it out or there's a specific reason? Thank you. Also I don't really need the 5GHz network to be honest, it was actually disabled until yesterday, but I just enabled it to test if it would change something because I stumbled upon this: https://en.avm.de/service/knowledge-base/dok/FRITZ-Box-7530/27_Wi-Fi-connection-drops-frequently/ (point 3.). I thought maybe that was the reason why, maybe with it disabled the Wi-Fi driver automatically goes in energy-saving mode, so I enabled it to test this theory. I don't know if it's actually working tho, it seems to be more stable, but it could easily be a fluke. I'll see how it goes tomorrow and keep you updated. Thank you again for trying to help
Maybe I was onto something with the power saving thing related to the 5GHz network regarding the avm article. Today I experienced no disconnections but I still get the "slow connection" problem from time to time. Basically the Internet connection gets really slow over time but if I start to heavily use it it gets back up on normal speed for a while. For example when I notice it's getting slow, if I do a speedtest, I can see it starts slowly getting faster and faster, like the first speedtest starts at 20Mb/s and then slowly work it's way up to the max (~85Mb/s), and if I start another speedtest right after the previous one, it just goes flawlessly, it quickly goes to the max speed in the span of 1 second. It sounds like some power saving shenanigans to me. How should I go about troubleshooting this? Thank you.
Edit:
Quick update, now after a while that I didn't disconnect the connection became unbearably slow, even going to the OpenWrt panel page (192.168.1.1) takes some time, if however, I keep a terminal window open to keep pinging the router (192.168.1.1) everything works and the connection is not slow anymore, but the moment I stop pinging it the connection speed tanks again. This problem happens on each device connected via Wi-Fi after some time, but not at the same time. Like I now have this problem on my PC, but my Smartphone is doing fine, but later on it could be the opposite (PC ok, Smartphone slow, or both slow, or both ok). I legit don't know what to look for. Anybody has a clue?
Sorry but I got a bit busy... Anyway, here's another update: These past days I fully switched to 5GHz (my PC too), and I've got virtually no problems, maybe just 1-2 disconnections here and there in the span of 10 days (and no slowdown aswell!), so I'd say that's pretty good. However the previous problems persist, I get the disconnections and slowdown problems only on devices connected to the 2.4GHz. What could it be? How do I troubleshoot this? Thank you.