redirect page splash only node

Asked by Kim

In Wifidog i can enter a redirect page to visit after connecting to a splash only node (specific node).

So a user connects to the node (no login) and goes to www.google.com, but instead of google he will be directed to a site i configured. after being landed on that site the user can visit any site he wishes.

is this available in authpuppy?

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
Kim
Solved:
Last query:
Last reply:
Revision history for this message
gbastien (gbastien02) said :
#1

This option is also available in authpuppy. You should install and activate the apExternalCMS plugin.

You will then be able to edit the portal page it redirects to either for a single node, in the node edition form, or with a generic portal page site-wide in the plugin's configuration page.

Revision history for this message
Kim (kpm) said :
#2

Thanks for the answer. I already tested this function but i can only set the portal page per node.

This is a problem because iphones only show the portal page (through a special signup screen in the iphone) until it's fully loaded and then closes the window. (a page only shows 1 second, maybe a bug?)
I want the window to be shown until the user decides to load another page.

The way to bypass this is to make custom login screens per node. Can this be done?

This way iphone (and all other users) will stay on the page until they press a button to connect.

Revision history for this message
gbastien (gbastien02) said :
#3

The iPhone problem is not an easy one to solve, we have it as well and our portal page contains links to external sites, so we cannot just put it on the login page instead. The ideal solution would be if Apple could let his users decide when to close that special signup screen, but I have little hope for that. Apple knows what is good for its users and having a portal apparently isn't...

Anyway, if you can put the content of the portal page to the login screen, you may do that with the apExternalCMSPlugin and apWebServicePlugin. Here's a wiki page explaining how to make this login script:

http://www.authpuppy.org/doc/Typical_usage_scenarios_with_plugins

Revision history for this message
Kim (kpm) said :
#4

That would work as a global setting for all nodes, but i would like to have a different login screen for each node for this option to work for me.

Revision history for this message
Kim (kpm) said :
#5

found this regarding the iphone problem, can we do the same?;

It seems the iPhone does a DNS lookup on www.apple.com prior to redirecting to the Captive Portal page. If the DNS lookup fails, the phone doesn't display the login screen within the WiFi app, and more importantly, doesn't lose the assigned IP address. The user can then open Safari and log in as normal through the captive portal.

To get DNS lookups on www.apple.com to fail I created a DNS entry for apple.com without any 'A' records on the ZeroShell server.

Revision history for this message
Kim (kpm) said :
#6

maybe it's prossible with iptables on the client?

Revision history for this message
gbastien (gbastien02) said :
#7

For the different login screens, you can add node-specific parameters to the url and thus have different login screens for each node. For example http://somesite/%nodename%?%getparameters%

As for the iPhone problem, we discussed the solution you mention in the wifidog mailing list, but it was rejected by some as it would ruin the user experience Apple users are used to. It would give them the impression they are connected to the internet, but they are not and may not think to go to the browser, since most people use apps anyway...

But solving this problem would most likely be done on the wifidog gateway rather than the web server. If you want to join this discussion and add your point of view, you could subscribe to the wifidog mailing list here: http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog

Revision history for this message
Kim (kpm) said :
#8

the node-specific option could work, thanks for that :)

can i just copy/paste the connect button which is on the default authpuppy site (splash login connect button)?

Revision history for this message
Kim (kpm) said :
#9

continuing in question 172532