Since I've gotten the OpenWrt router several months ago, every few weeks, my network crashes and I can't reach my router or the internet. My only solution is to pull the power cord on the router and then everything comes back.
I'd like to get a review of my config to see if I have something that immediately stands out as a problem before I guess I have to set up a syslog server or the like. I've done research and my closest hunch is that odhcpd or uhttpd is crashing out. I read that forcing dhcp to come up even if it finds another dhcp server in the network could help but that doesn't really make sense as I don't have another dhcp server on my network.
I've also considered it was my ISP modem in bridge mode so I got a new Arris S34 modem. I don't think it is related to my IP changing either though I went through some growing pains where I think I had a "bad config".
I also have a GS108T v3 in the mix with OpenWrt and maybe some of the issue is that but since I got a new modem, I think the network is more stable though I have some screwy IPV6 behavior and sometimes I can't get an IPV4 address on a machine when I move to another port.
# ubus call system board
{
"kernel": "5.15.167",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "GL.iNet GL-MT6000",
"board_name": "glinet,gl-mt6000",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.5",
"revision": "r24106-10cc5fcd00",
"target": "mediatek/filogic",
"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 'fd49:a3dd:1b0e::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan1'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
list ports 'lan5'
config device
option name 'lan1'
option macaddr '94:83:xx:xx:xx:1b'
config device
option name 'lan2'
option macaddr '94:83:xx:xx:xx:1b'
config device
option name 'lan3'
option macaddr '94:83:xx:xx:xx:1b'
config device
option name 'lan4'
option macaddr '94:83:xx:xx:xx:1b'
config device
option name 'lan5'
option macaddr '94:83:xx:xx:xx:1b'
config device
option name 'eth1'
option macaddr '94:83:xx:xx:xx:19'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
config interface 'wan6'
option device 'eth1'
option proto 'dhcpv6'
option reqaddress 'try'
option reqprefix '56'
option norelease '1'
config interface 'lab'
option proto 'static'
option device 'br-lan.3'
option ipaddr '192.168.3.1'
option netmask '255.255.255.0'
option delegate '0'
option ip6assign '64'
option ip6hint '3'
config interface 'work'
option proto 'static'
option device 'br-lan.5'
option ipaddr '192.168.5.1'
option netmask '255.255.255.0'
option delegate '0'
option ip6assign '64'
option ip6hint '5'
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '5'
list ports 'lan1:t'
config bridge-vlan
option device 'br-lan'
option vlan '9'
list ports 'lan1:t'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
config interface 'lan'
option proto 'static'
option device 'br-lan.9'
option ipaddr '192.168.9.1'
option netmask '255.255.255.0'
option delegate '0'
option ip6assign '64'
option ip6hint '9'
config bridge-vlan
option device 'br-lan'
option vlan '4'
list ports 'lan1:t'
config interface 'guestplus'
option proto 'static'
option device 'br-lan.4'
option ipaddr '192.168.4.1'
option netmask '255.255.255.0'
option delegate '0'
option ip6assign '64'
option ip6hint '4'
# cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list network 'wan'
list network 'wan6'
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'
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 'fe80::/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 rule
option name 'lab-Allow-IPSec-ESP'
list proto 'esp'
option src 'wan'
option dest 'lab'
option target 'ACCEPT'
config zone
option name 'lab'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'lab'
config forwarding
option src 'lab'
option dest 'wan'
config rule
option name 'lab-Allow-ISAKMP'
option target 'ACCEPT'
option src 'wan'
option dest 'lab'
option dest_port '500'
list proto 'udp'
config zone
option name 'work'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'work'
config forwarding
option src 'work'
option dest 'wan'
config rule
option name 'WorkDnsDhcp'
option src 'work'
option dest_port '53 67 68'
option target 'ACCEPT'
config rule
option name 'LabDnsDhcp'
option src 'lab'
option dest_port '53 67 68'
option target 'ACCEPT'
config zone
option name 'guestplus'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
list network 'guestplus'
config forwarding
option src 'guestplus'
option dest 'wan'
config rule
option name 'GuestplusDnsDhcp'
option src 'guestplus'
option dest_port '53 67 68'
option target 'ACCEPT'
# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/18000000.wifi'
option channel '1'
option band '2g'
option htmode 'HE20'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'A2gNetwork'
option encryption 'psk2'
option key 'REDACTED'
option network 'lan'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/18000000.wifi+1'
option channel '36'
option band '5g'
option htmode 'HE80'
option cell_density '0'
config wifi-iface 'default_radio1'
option device 'radio1'
option mode 'ap'
option ssid 'A5gNetwork'
option encryption 'psk2'
option key 'REDACTED'
option network 'lan'
# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option localservice '1'
option ednspacket_max '1232'
list rebind_domain 'plex.direct'
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 'lab'
option interface 'lab'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan6'
option interface 'wan6'
option ignore '1'
config dhcp 'work'
option interface 'work'
option start '100'
option limit '150'
option leasetime '12h'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dhcpv6 'server'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dhcpv6 'server'
config host
option name 'openwrtsw'
option ip '192.168.9.222'
option mac '54:07:XX:XX:XX:12'
option duid 'xxxx312'
config host
option name 'openwrtswlab'
option ip '192.168.3.240'
option mac '56:07:XX:XX:XX:14'
config host
option name 'openwrtswwork'
option ip '192.168.5.239'
option mac '56:07:XX:XX:XX:13'
config dhcp 'guestplus'
option interface 'guestplus'
option start '100'
option limit '150'
option leasetime '12h'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option dhcpv6 'server'
config host
option name 'macwin'
option ip '192.168.9.195'
option mac 'AC:1A:XX:XX:XX:XX'
option duid 'xxxx7da'
config domain
option name 'openwrtsw'
option ip '192.168.9.222'