OPNsense Forum

English Forums => General Discussion => Topic started by: bgkskyguy on August 22, 2017, 11:06:22 pm

Title: Captive portal page not found
Post by: bgkskyguy on August 22, 2017, 11:06:22 pm
So, I have two interfaces set up as described in the guest network setup.  I have created and uploaded my template.  everything shows up.  I created the rules as described, creating a rule for each interface..  When I plug in a test laptop it simply says page not found when trying to connect on either of the guest interfaces.  Connected another pc with same issue and tried multiple browsers.  config -  wan, LAN-192.168.14.1 - opt1-192.168
.15.1 (for guest), opt2 - 192.168.16.1 (for guest)...  This is a campground with multiple access points thus the two interfaces.  So, with portal and dns forward enabled..  why no redirect to the captive portal page? 
Did a lot of looking in the docs and forums before I posted so I'm not just asking before looking.  If I missed something I'm sorry please be kind, just figuring this out. 
Title: Re: Captive portal page not found
Post by: bgkskyguy on August 23, 2017, 05:53:42 pm
A little bit to clarify, I have not yet hooked this up.  still on the bench.  I plug a laptop directly into the opt1 (or 2) port.  The laptop gets the correct IP address.  When I try to connect to the internet (any page) I get a "no internet connection error" in my browser.  It is never redirected to the captive portal page.(http://)
Title: Re: Captive portal page not found
Post by: bgkskyguy on August 29, 2017, 09:26:42 pm
Further update........  I found the portal page actually works...it just does not work in chrome.  If I use I.E. it works fine.  odd.
Title: Re: Captive portal page not found
Post by: bartjsmit on August 29, 2017, 09:57:11 pm
Could that be because Chrome tries http/s by default?

Bart...
Title: Re: Captive portal page not found
Post by: Wayne Train on October 19, 2017, 10:46:00 am
Any news on this ?
If i connect to the guest network with firefox 56.0.1 on OPNsense 17.7.5-amd64 I'm not redirected to the captive portal login page if I enter something in the address-bar. Bart mentioned this could be because of https. Is there any way to make the Captive Portal use https ?

And I also have another question:

Is it possible to make the captive portal run on my virtual CARP IP and not on the interface itself ?

Thanks a lot,
Wayne
Title: Re: Captive portal page not found
Post by: franco on October 19, 2017, 02:41:21 pm
Select a certificate for your captive portal zone... ;)

No, captive portal will listen on the interface and all its VIPs if I'm not mistaken. What you can do is block access to all the IPs you don't want the CP to be accessed via.


Cheers,
Franco