Skip to content
Contents
GuidesOpenWrt

Restrict OpenWrt management access to a trusted network

Keep one wired management entry. Then read Dropbear and LuCI's listening addresses and actual firewall zones.

Keep one wired management entry. Then read Dropbear and LuCI's listening addresses and actual firewall zones. The management service binds to a trusted LAN or management VLAN. External access is routed through a dedicated VPN first, then back to the management zone.

Try the key first, then disable the password

Load your own SSH public key via an existing session, then open a new session to verify login capability. Keep the confirmed key and local recovery entry safe. Finally, disable password authentication. Check WAN input policies and port forwarding for both IPv4 and IPv6.

Compare with wired management and external sources respectively

Reserve the SSH public key and wired interface for management access. Verify that LuCI and SSH are accessible within the approved subnet, then use an external source under your control to confirm that these ports are unreachable.

Trusted LAN and authorized VPN should be able to log in; guest and WAN test terminals should be denied as expected. If port knocking is used for self-managed devices, there must be clear expiration handling, logging, and recovery procedures upon failure. Key authentication must still be retained.

After both IPv4 and IPv6 are verified, close the old entry. If login fails after tightening, restore the original software binding or source rule via the retained local channel.

Verify the management listeners and WAN input policy from the management network. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Verify the management listeners and WAN input policy from the management network. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Verify the management listeners and WAN input policy from the management network. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments