Captive portal will not redirect to portal page
-
Hello,
At one time I had this working flawlessly. Then I disabled it for awhile. I just reenabled it and it doesnt seem to work. I tried using a website's IP, which still doesnt work. i am running it with no authentication. I manually typed in the portal page, which i was able to get. but when i click on the button to accept the terms, it just hangs.
any ideas?
thanks
-
-
pfsense 2.1.5
captive portal is running on my lan interface.
all my subnets are allowed on this except for my guest subnet. but my guest subnet gateway is allowed. the subnets that are allowed, do work just fine, does not go to portal page.
i am not using dhcp on pfsense.
hope this info is enough to get started. thanks!
-
pfsense 2.1.5
Old version ….
And memoiry is short ;)captive portal is running on my lan interface.
Ah ….
Why ? Running the portal stuff on a dedicated (OPTx) interface makes live easier .... but I heard that it could be done.all my subnets are allowed on this except for my guest subnet. but my guest subnet gateway is allowed. the subnets that are allowed, do work just fine, does not go to portal page.
Your (default !) 192.168.1.0/24 has subnets ?
I guess I lost you there.
I advise you to make a more classic, more simple, more default setup.i am not using dhcp on pfsense.
Then where is this dhcp server ?
pfSense is a professional gateway/firewall/dhcp/you-name-itNeed more input - error ;)
-
Ok, new details. I set up a captive portal on a OPTx interface. I tried to go to www.cnn.com and the url redirected but i get "webpage is not available", and the url looks like this….
172.16.255.1:8000/index.php?zone=test&redirurl=http%3A%2F%2Fwww.cnn.com%2F
also, even if i disable captive portal, i still cant get to 172.16.255.1:8000/index.php "webpage is not available"
-
Ok, I understand why vlan 255 interface will not work for captive portal.
When i have captive portal enabled on interface vlan255, the ip address configuration for that interface is 172.16.255.1 /24
I already have 172.16.255.1 assigned on my cisco 3560. i ahve a vlan activated with 172.16.255.1 as the gateway.
so therefore when captive portal tries to redirect to 172.16.255.1:8000/index.php it is redirecting to the vlan255 gateway i have set up on my 3560.
So what is best practice to get this working correctly? thanks!
-
…...172.16.255.1:8000/index.php
pfSense 2.2 will not default to '8000' by itself.
It's "8001" when you set up a first portal instance.I advise you to:
Stop the portal interface
Make a backup of your confif.
Edit the config with Notepad++ - and remove everything between
<captiveportal>and</captiveportal>
Import the config file.
Configure your portal interface.Captive portal ports start from 8001 now … I guess you retrieved something that was valid for pfSense <2.2 but not will not anymore.
If your OPTx interface has the IP "172.16.255.1", port "8000" will NOT work. The first instance will be using "8001".
-
8002 actually.
-
Hummm …
Right for the '8002' !
The port will be choses by the redirection in pfSEnse. Visitors don't have to know these details.
-
Thanks. I will do that.
What about my issue with my vlan 255 on my cisco 3560 having an ip address of 172.16.255.1 - same ip address as my OPTx interface.
How does one go about this? Sorry, very new to all of this.
thanks again
-
Assign different addresses on the same subnet to your interfaces.
-
I need to back up a bit….
When you posted about how it should be at 8002 and not 8000 i was still on pfSense 2.1.5. I didnt realize until after I posted my last post. so i did the upgrade (which i lost my squid proxy and content filter, but whatever - was still in trial mode anyways)
So now that I am upgraded to latest and greatest. I deleted all my captive portal instances and started a fresh one on a OPTx interface. I enable it. It lets me go right to the url i want to go to without going to the redirect page. i also tried 172.16.255.2:8002/login.php i get nothing.
So confused
-
Are you behind another router?
Anything in any of the passthroughs? (IP, Hostname, MAC?)
Any users listed in Status > Captive Portal??
Instead of saying what you think you did, how about posting what you've actually done. Interface config, portal config, firewall rules, etc.
https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting#Captive_portal_not_redirecting
-
Ok, forget about my OPTx interfaces, i have another issue with that.
So I set up captive portal back on my lan interface again and it redirects me to the captive portal page. however, when i enter a username and password and click continue it just reloads the portal page as if i entered in the username and password wrong. i have captive portal set to no authentication. Any help?
I am getting somewhere thanks to your help, just need a lot of hand holding. ;D
-
If your browser thinks it's going to the portal page URL, that will happen. It might also try to redirect you to the page you attempted. There is a lot to be desired regarding pfSense's CP handling of this.
- After you log in, is there an IP/MAC entry in Status > Captive Portal??
- After you log in, if you manually enter an outside URL, does it work?
If you always want to be redirected after login regardless, use the After authentication Redirection URL in the captive portal settings.
I would like to see much better handling of the originally attempted URL. It'd also be nice to have some way to redirect things like the Apple test URLs to something sane too.
I have looked at the code and got scared away.
In general it works well enough.
-
After I log in, yes there is a IP/MAC entry.
After I log in, if i manually enter an outside url, no, it does not work.I tried using the after uthentication redirection url - when i logged in, it reloaded the portal page but it changed the redirurl to what it should be.
thoughts?
-
"Does not work" gives us nothing to go on.
Post your config. You probably don't have firewall rules for DNS, or wrong DNS servers, or no firewall rules allowing traffic out, or no NAT rules, or ??. With what we have it'd just be a guess. Did you go through the list in the link above?
-
This use to work before so not sure what happened.
when i say does not work, i mean that it will go back to the portal page if i enter an outside url.
how do i post config? just post the whole xml?
-
Screen shots are probably better. You have something hosed if you get a captive portal entry for the correct IP/MAC pair and keep getting redirected to the portal page when you enter other URLs. How about just ping? Can you ping, say, 8.8.8.8 after logging in?
-
I cant ping 8.8.8.8 after logging into captive portal. what screen shots would you want? thanks again.