WiFi Security (WPA2)
Although the captive portal manages Internet access, it is recommended to protect the wireless traffic with WPA2 encryption.
Why use a WiFi password
Section titled “Why use a WiFi password”- Over-the-air encryption: Without a password, data can be intercepted by third parties.
- Access Control: Prevents unwanted users from associating with the network.
- Privacy: Ensures communication is private between the client and the AP.
hostapd Configuration with WPA2
Section titled “hostapd Configuration with WPA2”Add the following lines to /etc/hostapd/hostapd.conf:
interface=wlx1cbfce41183adriver=nl80211ssid=My_Secure_WiFihw_mode=gchannel=6
# WPA2 Securitywpa=2wpa_passphrase=YourSecurePassword123wpa_key_mgmt=WPA-PSKrsn_pairwise=CCMP
# Stabilityauth_algs=1wmm_enabled=0Apply Changes
Section titled “Apply Changes”sudo systemctl restart hostapdInteraction with Catsplash
Section titled “Interaction with Catsplash”The WiFi password does not interfere with the captive portal. The flow is:
- User selects the WiFi network and enters the password.
- Once connected, the OS detects the portal and opens the Catsplash window.
- User must click “Connect” on the portal to get Internet access.
This “Double Security” model is the standard for networks that want full control over their users.