1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Updated Captive portal setup (markdown)

Bill Zimmerman 2020-02-11 22:25:50 +01:00
parent 291155fb24
commit d43957b0a4

@ -10,9 +10,9 @@ sudo apt-get update
sudo apt-get install libmicrohttpd-dev sudo apt-get install libmicrohttpd-dev
``` ```
3. Next, clone the nodogsplash GitHub repository: 3. Next, clone the nodogsplash GitHub repository to your home directory:
``` ```
cd ~ cd ~/
git clone https://github.com/nodogsplash/nodogsplash.git git clone https://github.com/nodogsplash/nodogsplash.git
``` ```
@ -23,21 +23,20 @@ make
sudo make install sudo make install
``` ```
5. With nodogsplash installed in the system, we will make two small changes to its configuration. The nodogsplash GatewayInterface should be set to the interface RaspAP runs on (wlan0 is the default). You will also need to change the GateWayAddress to 10.3.141.1. 5. With nodogsplash installed in the Pi's system, we will make two small changes to its configuration. The nodogsplash `GatewayInterface` should be set to the interface RaspAP runs on (`wlan0` is the default). You will also need to change the `GateWayAddress` to `10.3.141.1`. **Note:** if you have modified RaspAP's default config, be sure this setting reflects your changes.
``` ```
sudo nano /etc/nodogsplash/nodogsplash.conf sudo nano /etc/nodogsplash/nodogsplash.conf
``` ```
``` ```
# Default: NONE
#
# GatewayInterface is not autodetected, has no default, and must be set here. # GatewayInterface is not autodetected, has no default, and must be set here.
# Set GatewayInterface to the interface on your router # Set GatewayInterface to the interface on your router
# that is to be managed by Nodogsplash. # that is to be managed by Nodogsplash.
# Typically br-lan for the wired and wireless lan. # Typically br-lan for the wired and wireless lan.
# #
GatewayInterface wlan0 GatewayInterface wlan0
#
# Parameter: GatewayAddress # Parameter: GatewayAddress
# Default: Discovered from GatewayInterface # Default: Discovered from GatewayInterface
# #
@ -45,7 +44,6 @@ GatewayInterface wlan0
# Set GatewayAddress to the IP address of the router on # Set GatewayAddress to the IP address of the router on
# the GatewayInterface. This is the address that the Nodogsplash # the GatewayInterface. This is the address that the Nodogsplash
# server listens on. # server listens on.
#
GatewayAddress 10.3.141.1 GatewayAddress 10.3.141.1
``` ```
Save and quit out of the editor by pressing **Ctrl+X** and then pressing **Y** and finally **Enter**. Save and quit out of the editor by pressing **Ctrl+X** and then pressing **Y** and finally **Enter**.
@ -90,4 +88,4 @@ Feb 11 09:19:46 raspberrypi nodogsplash[10538]: [5][Tue Feb 11 09:19:46 2020][10
![captive portal screen](https://i.imgur.com/qS9mgTr.png) ![captive portal screen](https://i.imgur.com/qS9mgTr.png)
9. Optional: you can customize the captive portal screen by modifying the file located at `/etc/nodogsplash/htdocs/splash.html`. 9. Optional: you can customize the captive portal screen by modifying the files located in `/etc/nodogsplash/htdocs/`.