pfSense Gold Subscription

Author Topic: $40 Captive Portal Redirect to landing page only  (Read 2840 times)

0 Members and 1 Guest are viewing this topic.

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
$40 Captive Portal Redirect to landing page only
« on: September 22, 2015, 07:42:25 pm »
Is there a way to set the captive portal to only redirect to a landing page without any prompts or portal page?  All i want to do is push all my users to a specific web page.  No management, not authentication, no disclaimer.

I'm not sure if there is a way to have it submit after xx amount of seconds?  Not sure whats this worth?
« Last Edit: September 30, 2015, 10:10:45 am by kabrutus »

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #1 on: September 23, 2015, 04:02:40 am »
And after that, what?

What you described can be accomplished via a simple port forward. At least if the destination server is properly configured (Will need to be an address-based virtual host, not name-based).

It's what happens next that might require a captive portal.

This is a feature that should be there.  A couple other related things (like a redirection to a site if the IP/MAC pair already exists in the portal authentication table instead of just presenting the portal page over and over again because the user is a donkey.)

You could probably do this pretty easily at the top of /usr/local/captiveportal/index.php.  The problem is catching all the cases for the myriad of CP options in the GUI. But a custom index.php that you accept responsibility for maintaining should be pretty simple.  Get the MAC/IP pair, add it to the authenticated table, redirect the user.

That said, captive portals break the internet for users and need to die.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #2 on: September 24, 2015, 10:19:42 am »
All i want is to have the Captive portal automatically forward the user to a website we designate.  All without the user having to click ok or submit on any cp landing page. 

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #3 on: September 24, 2015, 11:02:30 am »
And after that, what?  Have access to the internet?
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #4 on: September 24, 2015, 11:57:01 pm »
Yes

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #5 on: September 25, 2015, 12:00:28 am »
Then you need to modify the captive portal code.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #6 on: September 28, 2015, 02:53:03 pm »
What do you think that is worth?

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #7 on: September 28, 2015, 03:40:32 pm »
The questions is actually what you think it's worth.  Pick a number and post a bounty.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
$40 Captive Portal Redirect to landing page only
« Reply #8 on: September 29, 2015, 01:25:54 pm »
$40

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #9 on: September 29, 2015, 01:41:21 pm »
There is a bounties forum.
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline kabrutus

  • Jr. Member
  • **
  • Posts: 33
  • Karma: +0/-1
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #10 on: September 29, 2015, 01:44:29 pm »
This is not the bounty forum?

Offline Derelict

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9260
  • Karma: +1054/-309
    • View Profile
Re: Captive Portal Redirect to landing page only
« Reply #11 on: September 29, 2015, 04:21:50 pm »
Sorry.  I figured it was Captive Portal.  Never even looked. :/
Las Vegas, Nevada, USA
Use this diagram to describe your issue.
The pfSense Book is now available for just $24.70!
Do Not PM For Help! NO_WAN_EGRESSTM

Offline maznos

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: $40 Captive Portal Redirect to landing page only
« Reply #12 on: October 08, 2015, 03:58:31 am »
hello

is it still on?