Update README.md

This commit is contained in:
Nasir Hafeez
2024-02-20 10:09:03 +05:00
committed by GitHub
parent e79e6a63e2
commit 9070f1ced8

View File

@@ -1,7 +1,11 @@
# Aerohive External Captive Portal
This is an example of a PHP based external captive portal for Aerohive. The code given here can be used to setup a basic captive portal featuring an HTML login form. The `http://1.1.1.1/reg.php` URL given here represents the internal IP address of the one of the radio interfaces on the Aerohive AP. The AP has several internal radio interfaces (and sub-interfaces) like: `Wifi0`, `Wifi1`, `Wifi0.1` and `Wifi1.1`. They represent 2.4 GHz and 5 GHz channels and also 802.11n/802.11ac standards. They have IPs like `1.1.1.1` and `1.1.2.1`. Some details can be found here:
This is an example of a PHP based external captive portal for Aerohive. The code given here can be used to setup a basic captive portal featuring an HTML login form. The `http://1.1.1.1/reg.php` URL given here represents the internal IP address of the one of the radio interfaces on the Aerohive AP. The AP has several internal radio interfaces (and sub-interfaces) like: `Wifi0`, `Wifi1`, `Wifi0.1` and `Wifi1.1`. They represent 2.4 GHz and 5 GHz channels and also 802.11n/802.11ac standards. They have IPs like `1.1.1.1` and `1.1.2.1`.
https://getsatisfaction.com/aerohive/topics/external_cwp
The username and password has to be posted to the IP of the correct interface.
The username and password have to be posted to the IP of the correct interface.
Apache access log example (`GET` request):
```
url=E2B8F3578D88E9B12D88FB428D83488ECB3F06945E31C5FBC89099D15D278E90A4AFE84A98C0A3BC2794F4538BA813C896&ssid=CAPTIVE-TEST&mac=2a3a117cfd4a&autherr=0&challenge=2D3DCCBBA8F7A3C217228514113476D1&Called-Station-Id=90b8326defa7&NAS-IP-Address=198.18.38.1&RADIUS-NAS-IP=192.168.10.250&Calling-Station-Id=2a3a117cfd4a&STA-IP=192.168.10.14&NAS-ID=AH-6def80&MGT-MAC-Address=90b8326def80 HTTP/1.1
```