Delay in Connecting Captive Portal



  • I'm using pfSense 2.3.2-RELEASE-p1 as a VM in Proxmox. I use captive portal which is connecting with a RadiusDesk installed in another VM to let users access internet through Wi-Fi.

    Captive portal works fine on Desktops/Laptops running windows. When accessing captive portal with Android devices Android splash screen connecting Wi-F- appears and it hands there ultimately throwing out error message "DNS_Probe_Finished_No_internet". Even manually entering a http URL on chrome and firefox browsers don't get the users on captive portal. Users are getting an ip from pfSense, but they just can't connect captive portal. Sometimes captive portal appears with multiple browser refreshing. And sometimes gives out error not being able to resolve "http://www.gstatic.com/generate_204"

    How should I proceed with fixing this.

    Thanx



  • Do you have "Enable HTTPS login" enabled?
    What do you see when you click "View" on your Current Portal Page?



  • @h2professor:

    Do you have "Enable HTTPS login" enabled?
    What do you see when you click "View" on your Current Portal Page?

    Hi, I have NOT enabled enabled HTTPS login at the moment.


  • LAYER 8 Netgate

    Check that users can readily-resolve DNS names - even global ones - before they go though the portal.

    DNS has to work for all configured DNS servers. Add the DNS servers configured on the clients to IP pass-through if you have to.



  • @Derelict:

    Check that users can readily-resolve DNS names - even global ones - before they go though the portal.

    DNS has to work for all configured DNS servers. Add the DNS servers configured on the clients to IP pass-through if you have to.

    Hi,

    I guess that may be the reason. The detailed error I get include

    "The webpage at http://connectivitycheck.gstatic.com/generate_204 could not be loaded because: net::ERR_ADDRESS_UNREACHABLE"

    but why does it only happens on mobile devices. Any particular setting I need to change with regard to mobile devices?

    Thanx



  • Check the antivirus device. In some cases it may block access. Or even a very old browser version.



  • @ciroxm:

    Check the antivirus device. In some cases it may block access. Or even a very old browser version.

    Don't have any special antivirus installed on the 3 mobile devices and CP appears after about 5 minutes, not that it doesn't appear. The browsers are updated and latest.



  • Tried the modifications suggested at https://forum.pfsense.org/index.php?topic=79229.0. But still no good.

    Are those changes suggested for /etc/inc/captiveportal.inc still valid or need updating for latest pfSense.

    Thanx



  • Tried terminal emulator app on mobile phone while it's still loading WiFi connecting page and tried to ping external domain. It seems terminal can find the IP address and resolves fine even while Connecting Wi-Fi screen keeps loading.

    The page keeps on loading and in the wifi connecting screen it mentions "192.168.2.1 refused to connect . Err_connection_refused"



  • When trying to connect to WIFI with mobile devices it just hangs in "Connecting WiFi" page and not get redirected to captive portal. During this time shouldn't I be able to connect to captive portal by manually typing the captive portal URL. When I do so on mobile, it says connection refused.


Log in to reply