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. 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