I thought I'd post an update just for future reference in case it helps someone.
After
@raritywrt's discovery regarding VPN routing I did some packet captures on my router and discovered some surprising behaviour from my own ISP.
My router's WAN subnet is 80.7.84.0/22.
However, if I check the address of my ISP's DHCP server, both through packet capture and by looking in
/tmp/wan0_bound.env
, I can see it is 80.1.16.73 !!! This address is
not in the WAN subnet and is (obviously) not publicly accessible.
So after enabling a VPN client with the option to redirect
all internet traffic through the tunnel
udhcpd
will attempt to send its first renew request via the VPN. This will obviously fail. Subsequent renew attempts change from unicast to broadcast and
do go out of the WAN interface.
The slightly surprising thing here is that the DHCP broadcast request via the WAN actually works, even though the ISP's DHCP server isn't in that broadcast domain. I can only assume that my ISP is using a DHCP relay.
This is still not quite the same as
@raritywrt experienced. In his case even the broadcast requests failed, so there's some other differences there as well.