SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
Captive Portal
April 2015 Hangout
Jim Pingle
Project Notes
● pfSense 2.2.2 is out!
– Security and bug fixes
– Console issue, update files fixed
● New SG series hardware shipping now
● Support moved to per-Incident model
● Still investigating new Hangout hosting options
About this Hangout
● Description, Capabilities, and Limitations
●
Zones
● Authentication Types
●
Vouchers
●
Portal Settings Run-Through
●
Passing devices/users through
●
Redirects
●
Custom Login Pages
●
Status & Graphs
● Basic Troubleshooting
Description / Capabilities
● What is Captive Portal?
● Captive Portal forces users to authenticate before they can
reach the Internet or any network outside their interface
● Captures HTTP requests for unauthenticated users and directs
them to a portal page
– It can try to redirect HTTPS but this can result in certificate errors in
the browser.
● Useful for presenting a ToS, User agreement, displaying a
business or property page, preventing unauthorized use, etc
● Commonly used in businesses and especially hospitality/travel:
Hotels, cafes, restaurants, airports
Description / Capabilities
● Works at layer 2, checks MAC addresses and/or IP
addresses depending on settings
● Certain hosts (source or destination) may be set to bypass
the portal
– Always-on devices, walled garden, local servers
● Optional automatic per-user bandwidth limits
● Some operating systems and clients have special support
to detect portals and alert users that a login is necessary
– Certain cases such as iOS devices may not work quite right and
users may need to manually load an HTTP page to login
Limitations
● Cannot act as a “reverse” portal for clients on WAN
● Does not work for IPv6
● Is only effective if clients have a unique MAC/IP address – If many clients are
behind a single router that performs NAT before reaching pfSense, it will not
work
● For authentication, not encryption, so wireless clients may still need additional
security (WPA2, etc)
● Cannot effectively redirect HTTPS requests (no portal can without SSL MITM)
● Can only work with bridges if the portal is on the assigned bridge interface
(e.g. bridge0)
● Requires some extra work to function with a proxy involved
● No per-user rules based on login name
● No LDAP authentication support
Zones
● Zones allow for multiple independent portals to be
configured
● Zones may have completely different settings
● At least one zone must be defined
● One zone may operate on multiple interfaces
● An interface can only be a member of a single zone
● Currently no way to edit zone name/description so
be mindful when creating a new zone
Authentication Types
● None/Open (“Click through”)
– Useful for showing users a ToS/Splash page without requiring a login
●
Local Users
– Useful for small numbers of users
– Optional Captive Portal user permission requirement
●
Vouchers
– Great for time-limited anonymous but secure access, such as hotels and
restaurants, where creating or re-using common user accounts is not viable
●
RADIUS
– Useful for large numbers of users or for using extended attributes such as
per-user bandwidth or time limits, tying into an AD or similar structure
Vouchers
● Secure access codes generated based on crypto keys
● All vouchers have a set time limit measured in minutes
● Timers are counted from first login, no logout/pause
● Created in batches called “rolls” that share a common
time limit
● Once a voucher is used or manually expired, it cannot
be re-used
● Voucher rolls may be exported as .csv and printed or
imported into a POS system
Basic Portal Settings Run-Through
●
Enable, select interface(s)
●
Max current connections – Only controls how many people may access
the portal web server simultaneously, not a user connection upper limit
● Idle timeout, Hard timeout
● Logout pop-up – Not very effective due to pop-up blocking in browsers
●
Redirect URL – See next slide
●
Concurrent User Logins – Prevents multiple logins
●
MAC Filtering – useful when routing, not direct Layer 2
●
Per-User Bandwidth restriction – sets up a limiter for each user
●
Authentication – pick whichever method is best for this env
●
HTTPS login – needs a cert from a CA trusted by the user's browser
●
Custom pages – covered later
Redirects
● Be sure to enter a full URL including HTTP or HTTPS prefix!
● Pre-authentication redirect
– Requires special code handling in the portal login page and on the landing
page
– If blank, the captive portal page is presented directly
● Post-authentication redirect
– Good for a welcome page after login, or redirecting to a preferred search
engine, etc
– If blank, user will be redirected to whichever page they originally requested
●
Blocked MAC address redirect
– If a MAC is set to be blocked on the MAC tab, they will be redirected here
– Useful for blocking infected systems or known offenders
Custom Login Pages
● Do not copy/paste code from “View Source” as this breaks macros!
● Sample code is on the CP config tab
● More samples on the forum, for example
https://forum.pfsense.org/index.php?topic=26141.0
● Once uploaded, the custom page can be downloaded or reset
● Example page from this demo will be available for download
● The stock CP page code may be found In the source
● Images, CSS, etc may be uploaded on the File Manager tab
– Uploaded files are prefixed with “captiveportal-”, for example
“captiveportal-logo.png”, which must be accounted for in the HTML code
Passing Devices Through
● MAC tab
– Pass or block specific MAC addresses
– Apply bandwidth limit to a specific MAC address
● Allowed IP Addresses tab
– Pass all traffic to or from a specific IP address
– Useful for local servers, remote DNS servers, etc
● Allowed Hostnames tab
– Pass from, to, or both directions for a fully qualified domain name
– Works based off hostname resolution (resolved periodically)
– Does not work for hosts with random DNS replies
– Works best with static or infrequently changing responses (no RR)
Status / Graphs
● Status > System Logs, Portal Auth tab shows a record of
logins and error messages (if any)
● Status > Captive Portal shows online users, their
address, login time
● Voucher tabs allow for viewing online voucher users, roll
status, testing vouchers, and expiring vouchers
● Status > RRD Graph, Captive Portal tab
– Logged In graph: Count of users who have logged in over time
– Concurrent Graph: Count of users online at a specific time
Basic Troubleshooting
● No redirect to portal page?
– Check if DNS is working. If DNS server is remote, add to
Allowed IP addresses tab.
– Check firewall rules, make sure they allow outbound access to
port 80 (HTTP)
– Client has HTTPS home page. Have them load an HTTP page
– Try hitting portal ip:port directly
● More advanced troubleshooting here:
https://doc.pfsense.org/index.php/Captive_Portal_Troubl
eshooting
Conclusion
● Eventually will have an “Advanced Captive
Portal” hangout to cover more complex portal
configurations, more detail on vouchers,
RADIUS authentication, user attributes,
bandwidth and time limits, and more
● Questions?
● Ideas for hangout topics? Post on forum,
comment on the blog posts, Reddit, etc

Weitere ähnliche Inhalte

Mehr von Netgate

Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Netgate
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Netgate
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Netgate
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Netgate
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Netgate
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Netgate
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Netgate
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017Netgate
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Netgate
 
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...Netgate
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Netgate
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016Netgate
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016Netgate
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Netgate
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016Netgate
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Netgate
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016Netgate
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Netgate
 
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Netgate
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Netgate
 

Mehr von Netgate (20)

Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017Dynamic Routing with FRR - pfSense Hangout December 2017
Dynamic Routing with FRR - pfSense Hangout December 2017
 
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
Firewall Best Practices for VoIP on pfSense - pfSense Hangout October 2017
 
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
Certificate Management on pfSense 2.4 - pfSense Hangout September 2017
 
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
Backup and Restore with pfSense 2.4 - pfSense Hangout August 2017
 
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
Server Load Balancing on pfSense 2.4 - pfSense Hangout July 2017
 
Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017Advanced Captive Portal - pfSense Hangout June 2017
Advanced Captive Portal - pfSense Hangout June 2017
 
Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017Let's Encrypt - pfSense Hangout April 2017
Let's Encrypt - pfSense Hangout April 2017
 
High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017High Availability on pfSense 2.4 - pfSense Hangout March 2017
High Availability on pfSense 2.4 - pfSense Hangout March 2017
 
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
Advanced OpenVPN Concepts on pfSense 2.4 & 2.3.3 - pfSense Hangout February 2017
 
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...
Squid, SquidGuard, and Lightsquid on pfSense 2.3 & 2.4 - pfSense Hangout Janu...
 
Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016Console Menu - pfSense Hangout December 2016
Console Menu - pfSense Hangout December 2016
 
OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016OpenVPN as a WAN - pfSense Hangout October 2016
OpenVPN as a WAN - pfSense Hangout October 2016
 
DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016DHCP Server - pfSense Hangout September 2016
DHCP Server - pfSense Hangout September 2016
 
Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016Providing Local DNS with pfSense - pfSense Hangout August 2016
Providing Local DNS with pfSense - pfSense Hangout August 2016
 
High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016High Availability Part 2 - pfSense Hangout July 2016
High Availability Part 2 - pfSense Hangout July 2016
 
Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016Connectivity Troubleshooting - pfSense Hangout June 2016
Connectivity Troubleshooting - pfSense Hangout June 2016
 
NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016NAT on pfSense 2.3 - pfSense Hangout May 2016
NAT on pfSense 2.3 - pfSense Hangout May 2016
 
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
Multi-WAN on pfSense 2.3 - pfSense Hangout March 2016
 
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
Traffic Shaping Basics with PRIQ - pfSense Hangout February 2016
 
Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016Creating a DMZ - pfSense Hangout January 2016
Creating a DMZ - pfSense Hangout January 2016
 

Kürzlich hochgeladen

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Kürzlich hochgeladen (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Captive Portal - pfSense Hangout April 2015

  • 1. Captive Portal April 2015 Hangout Jim Pingle
  • 2. Project Notes ● pfSense 2.2.2 is out! – Security and bug fixes – Console issue, update files fixed ● New SG series hardware shipping now ● Support moved to per-Incident model ● Still investigating new Hangout hosting options
  • 3. About this Hangout ● Description, Capabilities, and Limitations ● Zones ● Authentication Types ● Vouchers ● Portal Settings Run-Through ● Passing devices/users through ● Redirects ● Custom Login Pages ● Status & Graphs ● Basic Troubleshooting
  • 4. Description / Capabilities ● What is Captive Portal? ● Captive Portal forces users to authenticate before they can reach the Internet or any network outside their interface ● Captures HTTP requests for unauthenticated users and directs them to a portal page – It can try to redirect HTTPS but this can result in certificate errors in the browser. ● Useful for presenting a ToS, User agreement, displaying a business or property page, preventing unauthorized use, etc ● Commonly used in businesses and especially hospitality/travel: Hotels, cafes, restaurants, airports
  • 5. Description / Capabilities ● Works at layer 2, checks MAC addresses and/or IP addresses depending on settings ● Certain hosts (source or destination) may be set to bypass the portal – Always-on devices, walled garden, local servers ● Optional automatic per-user bandwidth limits ● Some operating systems and clients have special support to detect portals and alert users that a login is necessary – Certain cases such as iOS devices may not work quite right and users may need to manually load an HTTP page to login
  • 6. Limitations ● Cannot act as a “reverse” portal for clients on WAN ● Does not work for IPv6 ● Is only effective if clients have a unique MAC/IP address – If many clients are behind a single router that performs NAT before reaching pfSense, it will not work ● For authentication, not encryption, so wireless clients may still need additional security (WPA2, etc) ● Cannot effectively redirect HTTPS requests (no portal can without SSL MITM) ● Can only work with bridges if the portal is on the assigned bridge interface (e.g. bridge0) ● Requires some extra work to function with a proxy involved ● No per-user rules based on login name ● No LDAP authentication support
  • 7. Zones ● Zones allow for multiple independent portals to be configured ● Zones may have completely different settings ● At least one zone must be defined ● One zone may operate on multiple interfaces ● An interface can only be a member of a single zone ● Currently no way to edit zone name/description so be mindful when creating a new zone
  • 8. Authentication Types ● None/Open (“Click through”) – Useful for showing users a ToS/Splash page without requiring a login ● Local Users – Useful for small numbers of users – Optional Captive Portal user permission requirement ● Vouchers – Great for time-limited anonymous but secure access, such as hotels and restaurants, where creating or re-using common user accounts is not viable ● RADIUS – Useful for large numbers of users or for using extended attributes such as per-user bandwidth or time limits, tying into an AD or similar structure
  • 9. Vouchers ● Secure access codes generated based on crypto keys ● All vouchers have a set time limit measured in minutes ● Timers are counted from first login, no logout/pause ● Created in batches called “rolls” that share a common time limit ● Once a voucher is used or manually expired, it cannot be re-used ● Voucher rolls may be exported as .csv and printed or imported into a POS system
  • 10. Basic Portal Settings Run-Through ● Enable, select interface(s) ● Max current connections – Only controls how many people may access the portal web server simultaneously, not a user connection upper limit ● Idle timeout, Hard timeout ● Logout pop-up – Not very effective due to pop-up blocking in browsers ● Redirect URL – See next slide ● Concurrent User Logins – Prevents multiple logins ● MAC Filtering – useful when routing, not direct Layer 2 ● Per-User Bandwidth restriction – sets up a limiter for each user ● Authentication – pick whichever method is best for this env ● HTTPS login – needs a cert from a CA trusted by the user's browser ● Custom pages – covered later
  • 11. Redirects ● Be sure to enter a full URL including HTTP or HTTPS prefix! ● Pre-authentication redirect – Requires special code handling in the portal login page and on the landing page – If blank, the captive portal page is presented directly ● Post-authentication redirect – Good for a welcome page after login, or redirecting to a preferred search engine, etc – If blank, user will be redirected to whichever page they originally requested ● Blocked MAC address redirect – If a MAC is set to be blocked on the MAC tab, they will be redirected here – Useful for blocking infected systems or known offenders
  • 12. Custom Login Pages ● Do not copy/paste code from “View Source” as this breaks macros! ● Sample code is on the CP config tab ● More samples on the forum, for example https://forum.pfsense.org/index.php?topic=26141.0 ● Once uploaded, the custom page can be downloaded or reset ● Example page from this demo will be available for download ● The stock CP page code may be found In the source ● Images, CSS, etc may be uploaded on the File Manager tab – Uploaded files are prefixed with “captiveportal-”, for example “captiveportal-logo.png”, which must be accounted for in the HTML code
  • 13. Passing Devices Through ● MAC tab – Pass or block specific MAC addresses – Apply bandwidth limit to a specific MAC address ● Allowed IP Addresses tab – Pass all traffic to or from a specific IP address – Useful for local servers, remote DNS servers, etc ● Allowed Hostnames tab – Pass from, to, or both directions for a fully qualified domain name – Works based off hostname resolution (resolved periodically) – Does not work for hosts with random DNS replies – Works best with static or infrequently changing responses (no RR)
  • 14. Status / Graphs ● Status > System Logs, Portal Auth tab shows a record of logins and error messages (if any) ● Status > Captive Portal shows online users, their address, login time ● Voucher tabs allow for viewing online voucher users, roll status, testing vouchers, and expiring vouchers ● Status > RRD Graph, Captive Portal tab – Logged In graph: Count of users who have logged in over time – Concurrent Graph: Count of users online at a specific time
  • 15. Basic Troubleshooting ● No redirect to portal page? – Check if DNS is working. If DNS server is remote, add to Allowed IP addresses tab. – Check firewall rules, make sure they allow outbound access to port 80 (HTTP) – Client has HTTPS home page. Have them load an HTTP page – Try hitting portal ip:port directly ● More advanced troubleshooting here: https://doc.pfsense.org/index.php/Captive_Portal_Troubl eshooting
  • 16. Conclusion ● Eventually will have an “Advanced Captive Portal” hangout to cover more complex portal configurations, more detail on vouchers, RADIUS authentication, user attributes, bandwidth and time limits, and more ● Questions? ● Ideas for hangout topics? Post on forum, comment on the blog posts, Reddit, etc