wifi captive portal login - candela technologies · wifi captive portal login goal: create many...

10
http://www.candelatech.com [email protected] +1 360 380 1618 [PST, GMT -8] WiFi Captive Portal Login Goal: Create many user sessions to a WiFi captive portal gateway. Airports, arenas and coffee shops often offer open WiFi service that is gated with a web sign-on form. This is called a captive portal. LANforge can run a custom login script on a virtual station to emulate sign-in on the captive portal web page. The following example will create one hundred stations and have them authenticate through a captive WiFi portal. 1. Prepare a portal login script ( lf_ifup_post) 2. The lf_ifup_post script will be called after DHCP assignment for a station occurs. It can also be called before DHCP release. This script is called from the LANforge resource hosting the virtual station. A. The script should be in directory /home/lanforge/. Network Testing and Emulation Solutions

Upload: vutruc

Post on 27-Apr-2019

238 views

Category:

Documents


0 download

TRANSCRIPT

http://[email protected]+13603801618[PST,GMT-8]

WiFiCaptivePortalLogin

Goal:CreatemanyusersessionstoaWiFicaptiveportalgateway.

Airports,arenasandcoffeeshopsoftenofferopenWiFiservicethatisgatedwithawebsign-onform.Thisiscalledacaptiveportal.LANforgecanrunacustomloginscriptonavirtualstationtoemulatesign-inonthecaptiveportalwebpage.ThefollowingexamplewillcreateonehundredstationsandhavethemauthenticatethroughacaptiveWiFiportal.

1. Prepareaportalloginscript(lf_ifup_post)

2. Thelf_ifup_postscriptwillbecalledafterDHCPassignmentforastationoccurs.ItcanalsobecalledbeforeDHCPrelease.ThisscriptiscalledfromtheLANforgeresourcehostingthevirtualstation.

A. Thescriptshouldbeindirectory/home/lanforge/.

NetworkTestingandEmulationSolutions

B. LANforgewillpasstheseargumentstothescriptA. -i-stationdeviceB. --ip4-stationipaddressC. --ip6-stationipv6addressD. --dns-stationDNSaddressE. --mgt-pipenameforreportingresultstoLANforge

C. Customparameterstothescriptcanbeprovided.

D. Thescriptcanhaveanothername.

E. LANforgeexpectsthesereturnvalues:A. OKB. FAIL

C. FAIL:reason,thisprovidesfeedbackonfailureoccurrance.

3. CreateWiFistationsA. InthePortstab,selectwiphy1andclickCreate

B. IntheCreateVLANSwindow,crafttenwifistations:

A. SelectWiFiSTA

B. ForMACaddress,choosexx:xx:xx:*:*:xxC. SelectDHCP-IPv4

D. EnterQuantity100E. Specify0forSTAID

F. TheexampleSSIDforthiscookbookisjedtestG. SelecttheDownoption.ThispostponesthestationsmakingaDHCPrequestuntiltheyare

explicityadminup.

H. ...andthenclickApply

C. Youwillseetenstationcreated:

4. BatchModifyStationsinordertoupdatelf_ifup_postparameters

A. HighlightstationsandclickBatchModify

B. IntheBatchModifyscreen,clickthe+buttonandexpandtoGroup2.

C. EdittheIFPOSTfield.Enterthefilenameandanyextraargumentsthatthescriptwillwantforthisport.Example:lf_ifup_post--userbob--passsecret--urlhttp://slashdot.org/

D. ClicktheApplybuttontoapplythechanges.Donotclosethewindowyet.

E. Tocheckthevalueofeachport'sIF/UPPostyoucanusethePortstab.IntheportConfigureSettingswindow,intheMoreAdvancedTabyoucanfindtheIF/UPscriptvalue.

5. Testingastation.Wewilltoggleitupanddownandlookatthelogstofindproblems.A. HighlightoneofyourstationsinthePortstab.

B. SettheReportTimeto1sandclickApply

C. IntheBatchModifywindow,clicktheUpbutton.ThisisthesameassetttingUp/DowntoUPandclickingApply

D. WatchtheWirelessMessages andLANforgeMessages windowsforerrormessages.ThePortstabwillupdatethestationstatus.

6. UsetheBatchModifywindowtoForceDHCPRenewal

A. ClickDown

B. clickClearDHCP

C. clickUp

7. UsetheBatchModifywindowtoRe-LogintoPortalA. ClickPortalRe-Login

B. Ifyouwantedtochangeotherparameters:

C. ClickDownLogout

D. SetUp/DowntoDown

E. ChangeanotherstationparametersandthenclickApply

F. ClickUp

8. UsetheBatchModifywindowtoChangestationMACaddresses

A. ClickDown

B. SetMACAddrtoxx:xx:xx:*:*:*randomizethemacaddress

C. ClickApply

D. ClickUp

CandelaTechnologies,Inc.,2417MainStreet,Suite201,Ferndale,WA98248,USAwww.candelatech.com|[email protected]|+1.360.380.1618