In this article, I will show you how to configure your Rapberry Pi into a nodogsplash captive portal. The prerequisite for this configuration is to configure the Rapberry Pi as a routed Access Point as described in my previous post available under this link.
From your management workstation, open a browser and access to the IP address of the Raspi (192.168.0.30)
Navigate to System – Software and search for “nodogsplash” (you may have to update)
Install the current version (in my case 3.2.1-1)
Open a SSH session to your Raspi using Putty
Verify the status or nodogsplash
opkg install nano
Change the option gatewayinterface to wlan0
# The options available here are an adaptation of the settings used in nodogsplash.conf.
# Set to 0 to disable hook that makes nodogsplash restart when the firewall restarts.
# Serve the file splash.html from this directory
# Use plain configuration file
# Use this option to set the device nogogsplash will bind to.
option gatewayname ‘OpenWrt Nodogsplash’
# Enables debug output (0-7)
# Client timeouts in minutes
service nodogsplash restart
Check if it works with a smartphone
You are done !