Create automatically a full Wifi Hotspot on Raspberry Pi including a Captive Portal
This project is the latest version of the tutorial created first on my blog Pi Home Server(now closed) Created on a Raspberry Pi 2, some functionalities and tools where not available for the Raspberry Pi 3. Also the tutorial was a little bit difficult to implement because of too many steps. That's why i decided to create a script that will help you to build your own hotspot automatically.
Once the script is executed, you will get :
The installed system have been secured using ANSSI security recommendation and is compliant with french laws about free wifi hotspots (R. 10-13 et R. 10-14 , IV of CPCE)
To contribute, you can open an issue and/or fork this repository.
What are the requirements ?
You just have to download the script, edit it to update it's parameters, execute and wait ... If the wifi on the Raspberry is not already configured, don't worry, the script will do it
git clone https://github.com/pihomeserver/Kupiki-Hotspot-Script.git
sudo chmod +x pihotspot.sh && sudo ./pihotspot.sh
A log file named pihotspot.log
will be created in the folder /var/log
. Open a new session on the Pi and run the following command tail -f /var/log/pihotspot.log
In case you want to give a try to Kupiki Hotspot in a Virtual Machine, please look at this Wiki page
Once installed use your favorite browser to connect to daloRadius installed on your Raspberry Pi.
http://<mypi_ip>/daloradius
or http://<my_hotspot_name>.local/daloradius
if your system supports Bonjour.
The exact address will be displayed at the end of the script execution.
Do not try to connect to daloRadius throught your new hotspot network
Since version 2.0.0 (no update for previous versions), you can get and apply latest updates on your system. Go in /etc/kupiki folder and run as root :
/etc/kupiki/kupiki_updater.sh
Feel free to add it in a cron job to get automatic updates
For those who want to try another interface (in english of french only) with less functionnalities and more bugs, you can try the portal currently in development here