From 6f2f23d7e6c857a012d3524e64795eeba620ce90 Mon Sep 17 00:00:00 2001 From: Nasir Hafeez <38311694+nasirhafeez@users.noreply.github.com> Date: Sat, 25 Jan 2020 09:11:42 +0500 Subject: [PATCH] Create README.md --- Draytek/README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Draytek/README.md diff --git a/Draytek/README.md b/Draytek/README.md new file mode 100644 index 0000000..11a04ef --- /dev/null +++ b/Draytek/README.md @@ -0,0 +1,32 @@ +# Draytek External Captive Portal + +This portal has been tested on the following hardware: + +``` +Vendor: Draytek +Device: Vigor2862 +Redirect Method: GET +``` + +Redirecting client to captive portal:- + +URL format: http:///login.php?apmac=&clientmac=&loginurl=&target= + +Redirecting client from captive portal to router (for authorization):- + +URL format: http://portal.draytek.com:8001/cgi-bin/wifilogin.cgi?username=&password= + +Apache Access Log (on captive portal server):- +``` +apmac=00-1D-AA-09-44-10&client_mac=D8-8F-76-6D-A8-7B&loginurl=http://portal.draytek.com:8001/cgi-bin/wifilogin.cgi&target=http://captive.apple.com/hotspot-detect.html HTTP/1.0" 404 379 "-" "CaptiveNetworkSupport-355.270.2 wispr" +``` +RADIUS Access-Request Packet (in FreeRADIUS debug):- +``` +User-Name = "draytek" +User-Password = "draytek" +Called-Station-Id = "00-1D-AA-09-44-10" +Calling-Station-Id = "D8-8F-76-6D-A8-7B" +NAS-IP-Address = +Service-Type = Authenticate-Only +``` +Notes: portal.draytek.com is the address of the Draytek router