OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: DahOne on April 21, 2019, 08:53:38 am

Title: Captive Portal does not redirect to login page
Post by: DahOne on April 21, 2019, 08:53:38 am
Hi All, i'm now transitioning to OpnSense from pfSense. I have set up a box and everything works great except for Captive Portal. I am using vouchers with my setup.
My problem is that the captive portal page doesn't appear when I try to access the internet, i just get a "page cannot be displayed" error. If i were to go to the captive portal page manually (192.168.125.1:8000) I can login and from there i can access the internet just fine.
Can someone point me in the right direction to have this done automatically?

Regards,
Title: Re: Captive Portal does not redirect to login page
Post by: nwx on April 23, 2019, 12:49:15 pm
Hi,

I have actualy the same problem with a clean install of opnsense + updates.
My configuration is very basic :
1 physical NIC with 3 VLAN

Without captive portal all works fine, but when I activate captive portal (with or without vouchers) I launch the web browsers (firefox, edge or chrome) and I'm not redirected to the captive portal web page.

thanx for your answers
Title: Re: Captive Portal does not redirect to login page
Post by: hbc on April 23, 2019, 03:19:00 pm
Sounds like similar problem in this thread:

https://forum.opnsense.org/index.php?topic=12109.msg57508 (https://forum.opnsense.org/index.php?topic=12109.msg57508)
Title: Re: Captive Portal does not redirect to login page
Post by: nwx on April 24, 2019, 09:44:58 am
Hi,
Thank you for your answer ! Indeed it seems your tips is working !

But it's extremely annoying :s Today most of user have https://www.google.com in home webpage.

Anyone knows if this problem could be resolved in a future update ?

I will make some tests with a second NIC without VLAN tagging. I'll make a feed back soon

Thank you
Title: Re: Captive Portal does not redirect to login page
Post by: rackg on April 24, 2019, 02:42:48 pm
I am using Transparent Web Proxy +  Captive Portal and have issues with redirecting automatically on the browser launch. Any solution ?
Title: Re: Captive Portal does not redirect to login page
Post by: rackg on May 13, 2019, 04:11:40 am
Hi,
Thank you for your answer ! Indeed it seems your tips is working !

But it's extremely annoying :s Today most of user have https://www.google.com in home webpage.

Anyone knows if this problem could be resolved in a future update ?

I will make some tests with a second NIC without VLAN tagging. I'll make a feed back soon

Thank you
Any updates from your test results ?
Title: Re: Captive Portal does not redirect to login page
Post by: nwx on May 15, 2019, 08:50:15 am
Hi !

Unfortunately no ! My test with dedicated NIC for the guestNet have not worked.
I'm actualy looking for a solution that I force client's web browser to call an http page by default.

I'll make some feed back soon as possible.

NwX
Title: Re: Captive Portal does not redirect to login page
Post by: rackg on May 21, 2019, 01:23:48 pm
Just wonder why the issue exist on LAN and GUESTNET Ethernet connections. How other users in this forum or commercial firewall solves it ? I see the DHCP advanced options doesn't help here also as per RFC https://tools.ietf.org/html/rfc7710.

Any clues ?