I am using x86/64 with the latest SNAPSHOT.
Randomly, last week, my phone stopped being capable of connecting to the WiFi. It said ‘no internet access’. I went and turned off my static routes I created that push its traffic to the WAN, and it suddenly started to work again, most likely because the wg tunnel was intercepting it.
My question is, what is causing this? A bug with static routing? A bug with Wireguard being the default route? No idea.
Nothing has been changed on the router for months in terms of settings. I updated it to see if that fixed the issue, but it did not.
Here are my configs:
/etc/config/network:
config interface 'loopback'
option device 'lo'
option proto 'static'
list ipaddr '127.0.0.1/8'
config globals 'globals'
option packet_steering '2'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
option ipv6 '0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
list ipaddr '10.0.0.1/24'
option delegate '0'
list dns '10.0.0.1'
option multipath 'off'
config interface 'wan'
option device 'eth1'
option proto 'dhcp'
option hostname '*'
option peerdns '0'
list dns '10.0.0.1'
option multipath 'off'
config interface 'wg1'
option proto 'wireguard'
option private_key 'xxx'
option mtu '1420'
list addresses 'xxx'
list dns '10.0.0.1'
option multipath 'off'
config wireguard_wg1
option description 'xxx'
option public_key 'xxx'
list allowed_ips '0.0.0.0/0'
option endpoint_host 'xxx'
option route_allowed_ips '1'
config rule
option priority '1'
option in 'lan'
option src '10.0.0.4/32'
option lookup '100'
option enabled '1'
config route
option interface 'wan'
option target '0.0.0.0/0'
option mtu '1500'
option table '100'
option enabled '1'
/etc/config/firewall:
config defaults
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option synflood_protect '1'
option drop_invalid '1'
option flow_offloading '1'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
list network 'lan'
config forwarding
option src 'lan'
option dest 'wan'
config include 'pbr'
option fw4_compatible '1'
option type 'script'
option path '/usr/share/pbr/firewall.include'
config zone
option name 'wan'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
list network 'wan'
config zone
option name 'wg1'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
list network 'wg1'
config forwarding
option src 'lan'
option dest 'wg1'
/etc/config/dhcp:
config dhcp 'lan'
option interface 'lan'
option start '2'
option limit '250'
option leasetime '12h'
option dhcpv4 'server'
option ipv6_only_preferred '0'
config odhcpd 'odhcpd'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '3'
option maindhcp '1'
config host
option name 'Device'
option ip '10.0.0.4'
option mac 'xxx’