mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Updated Captive portal setup (markdown)
parent
a23828e6ab
commit
8caf6d31a2
@ -10,7 +10,7 @@ sudo apt-get update
|
||||
sudo apt-get install libmicrohttpd-dev
|
||||
```
|
||||
|
||||
3. Next, we will clone the nodogsplash GitHub project:
|
||||
3. Next, we will clone the nodogsplash GitHub repository:
|
||||
```
|
||||
cd ~
|
||||
git clone https://github.com/nodogsplash/nodogsplash.git
|
||||
@ -23,7 +23,7 @@ make
|
||||
sudo make install
|
||||
```
|
||||
|
||||
5. With nodogsplash installed in the system, we will now make some 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 system, we will make some 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.
|
||||
|
||||
```
|
||||
sudo nano /etc/nodogsplash/nodogsplash.conf
|
||||
@ -50,13 +50,13 @@ GatewayAddress 10.3.141.1
|
||||
```
|
||||
Save and quit out of the editor by pressing **Ctrl+X** and then pressing **Y** and finally **Enter**.
|
||||
|
||||
6. We can now start up the software. This can be done by simply executing the binary with `sudo nodogsplash`. However, we'll make things a bit easier by adding a `systemd` service provided by the project. Copy the following file and enable the service:
|
||||
6. We are now ready to start up the software. This can be done by simply executing the binary with `sudo nodogsplash`. However, we'll make things a bit easier by adding a `systemd` service provided by the project. Copy the following file and enable the service:
|
||||
```
|
||||
sudo cp ~/nodogsplash/debian/nodogsplash.service /lib/systemd/system/
|
||||
sudo systemctl enable nodogsplash.service
|
||||
```
|
||||
|
||||
7. Now start the service and check its status:
|
||||
7. Next, start the service and check its status:
|
||||
```
|
||||
sudo systemctl start nodogsplash.service
|
||||
sudo systemctl status nodogsplash.service
|
||||
@ -83,6 +83,9 @@ Feb 11 09:19:44 raspberrypi systemd[1]: Started NoDogSplash Captive Portal.
|
||||
Feb 11 09:19:46 raspberrypi nodogsplash[10538]: [5][Tue Feb 11 09:19:46 2020][10539](src/fw_iptables.c:382) Initializing firewall rules
|
||||
```
|
||||
|
||||
**Note:** The captive portal may be stopped with `sudo systemctl stop nodogsplash.service` or disabled completely with `sudo systemctl disable nodogsplash.service`.
|
||||
|
||||
|
||||
8. Connect a client to RaspAP's hotspot. You should now see nodogsplash's captive portal screen:
|
||||
|
||||
![captive portal screen](https://i.imgur.com/qS9mgTr.png)
|
||||
|
Loading…
Reference in New Issue
Block a user