Skip to content
Contents
GuidesOpenWrt

Set up an OpenNDS guest portal and keep shop devices on a separate network

Put guests on their own VLAN, DHCP scope and firewall zone before enabling OpenNDS. Keep payment terminals, door locks and staff devices on the business LAN.

Put guests on their own VLAN, DHCP scope and firewall zone before enabling OpenNDS. Keep payment terminals, door locks and staff devices on the business LAN. Bind OpenNDS to the guest interface and check the package version’s fw4 support and login options.

Test guest connectivity before enabling the portal

With OpenNDS off, verify that a guest gets an address, resolves DNS and cannot reach the business LAN. Then enable the portal and choose the login page, session length and any destinations that must be reachable before login. Use an entry point you manage and ask guests only for the information they need to connect.

Verify guest authentication and on-premises isolation with a new device

Allow an unregistered mobile device to connect to the guest network. Before authentication, access only approved portals and essential services. Afterward, browse normal web pages and verify that the POS is unreachable.

Go through the full flow from connection, popup, authorization to HTTPS with a new device. Then test session expiration and admin recovery. Business paths not relying on authentication services should continue operating when the portal fails.

Retry after expiration to verify lease, service, and business recovery. If customers can access the backend, temporarily disable the visitor entry point and correct the affected region.

Open a page from the guest network, accept the OpenNDS terms and verify a new HTTP connection after authentication. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Open the original image
Open a page from the guest network, accept the OpenNDS terms and verify a new HTTP connection after authentication. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Open a page from the guest network, accept the OpenNDS terms and verify a new HTTP connection after authentication. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Lab record

I bound OpenNDS 10.3.1-r3 to br-guest on an OpenWrt 25.12.6 x86/64 VM. The IPv4 guest client had its own firewall zone. A business HTTP service stayed on the main LAN and worked from there. Before enabling the portal, I checked that the guest could reach the test HTTPS endpoint. This release checked the lease on the initial request. A manually assigned address returned 403. A guest DHCP lease allowed the terms page to load.

Before login, fresh HTTP returned a 307 redirect and HTTPS received no response. I clicked Accept Terms of Service and Continue in Chromium. OpenNDS reported Authenticated and new HTTP and HTTPS requests both returned 200. The session was set to 60 s. A probe about 65 s after the click saw the redirect return and Preauthenticated. The business HTTP service stayed inaccessible to the guest before login, during the session and after expiry.

These are the core settings in /etc/config/opennds. Sessiontimeout is in minutes and checkinterval is in seconds. Keep checkout and other business devices on their own network. I triggered the portal by opening HTTP in Chromium. Test the automatic prompt separately on iOS and Android, and test any IPv6 path you enable.

config opennds
    option enabled '1'
    option gatewayinterface 'br-guest'
    option login_option_enabled '1'
    option sessiontimeout '1'
    option checkinterval '5'

Live Chromium screenshot. Opening the controlled HTTP address from the guest network brought up the OpenNDS terms page.

Live Chromium screenshot. Opening the controlled HTTP address from the guest network brought up the OpenNDS terms page.

Live Chromium screenshot. OpenNDS shows access granted after Continue. I then made new HTTP and HTTPS requests to verify access to the test uplink.

Live Chromium screenshot. OpenNDS shows access granted after Continue. I then made new HTTP and HTTPS requests to verify access to the test uplink.

Reference

Related guides

Reference

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

Explore hardware

Comments