Device & Firmware:
- Model: GL.iNet Flint 4 (GL-BE14000)
- Firmware Version: 4.9.3
Description of the Issue:
When using an OpenVPN client profile configured with dev tap (routed L3 setup over a TAP interface, not an L2 bridge), the router silently disables the LAN DHCP server (dhcp.lan.ignore='1') upon VPN connection (and after every reboot).
Guest and IoT networks continue to serve DHCP normally, while the main LAN DHCP toggle in the GL.iNet UI turns off and LuCI shows "Ignore interface" checked.
Root Cause:
In /etc/openvpn/scripts/ovpnclient-up (around line 143), the script checks if the profile mode is tap or tap-s2s, and unconditionally assumes the user wants an L2 Site-to-Site bridge where DHCP is handled by the remote server:
sh
# tap-s2s settings
if [ "$client_tap" = tap-s2s -o "$client_tap" = tap ]; then
/usr/bin/setup_tap_s2s client
touch /tmp/run/disconnect_lan_flag
uci set dhcp.lan.ignore=1
uci commit dhcp
/etc/init.d/dnsmasq reload
wait_for_wifi_ready
/etc/init.d/network reload&
disconnect_lan_clients
fi
Why this is problematic:
- Assumes all
dev tapconfigs are L2 bridges: Many OpenVPN servers usedev tapsimply for L3 routing (pushing an IP address and routes directly to theovpnclientinterface) without bridgingbr-lanto the remote LAN. Disabling local DHCP breaks internet/LAN connectivity for all local clients. - Zero logging: Neither
ovpnclient-upnorovpnclient-downwrites anything tosyslog(logger) when modifyingdhcp.lan.ignoremaking this behavior look like a random firmware bug where LAN DHCP turns off after reboot.
Suggested Improvements:
- Add a clear
loggermessage in/etc/openvpn/scripts/ovpnclient-upandovpnclient-downwheneverdhcp.lan.ignoreis toggled ordisconnect_lan_clientsis triggered. - Separate
tap(standard routed TAP client) fromtap-s2s(L2 bridge mode), or provide an explicit UI toggle in the OpenVPN client settings (e.g., "Bridge TAP with LAN / Disable local DHCP") instead of forcingdhcp.lan.ignore=1on everydev tapprofile.
Workaround used:
Adding a custom route-up script in the .ovpn profile to revert dhcp.lan.ignore='0' and restart dnsmasq.