ROBIN -  Open Source Mesh Network Forum Index ROBIN - Open Source Mesh Network
users community forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

r2671 URL redirect does not work

 
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> NoDogSplash
View previous topic :: View next topic  
Author Message
Ads






Posted: Sat Sep 23, 2017 11:37 am    Post subject: Ads

Back to top
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Sun Jan 17, 2010 11:37 pm    Post subject: r2671 URL redirect does not work Reply with quote

I suspect that nobody uses URL redirect?

I can't get it to work


Only registered users can see links on this forum!
Register or Login on forum!


_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
foxtroop11
Service Provider
Service Provider


Joined: 22 Mar 2009
Posts: 1168
Location: Ansbach, Germany and sometimes the States

PostPosted: Mon Jan 18, 2010 12:15 am    Post subject: Reply with quote

Don't you have to have the splash page option on? It's suppose to redirect after the people see the initial splash page from what I remember.
Back to top
View user's profile Send private message
bconverse
Moderator
Moderator


Joined: 07 Mar 2008
Posts: 848
Location: Little Rock, AR (USA)

PostPosted: Mon Jan 18, 2010 12:48 am    Post subject: Reply with quote

Not true - we used to use the redirect without the splash page and it worked. We do use the splash page now though because it was hard to redirect iphone users.
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Mon Jan 18, 2010 1:21 am    Post subject: Reply with quote

Do you know why it didn't work with iphones?

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
bconverse
Moderator
Moderator


Joined: 07 Mar 2008
Posts: 848
Location: Little Rock, AR (USA)

PostPosted: Mon Jan 18, 2010 2:01 am    Post subject: Reply with quote

Apparently, the iphones also try to connect on other ports than 80, thus in effect pre-authenticating themselves. So by the time they opened their browser, they had already authenticated.

Turning on the splash page fixed this.
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Mon Jan 18, 2010 2:24 am    Post subject: Reply with quote

I've upgraded to r2683 and now it works

I would still like to know what triggers url redirection

When I first start the PC and browse I get redirected. From then on I will never get redirected.

The only way I can get redirected again is to restart the PC?

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
bconverse
Moderator
Moderator


Joined: 07 Mar 2008
Posts: 848
Location: Little Rock, AR (USA)

PostPosted: Mon Jan 18, 2010 2:54 am    Post subject: Reply with quote

Not sure of the technical reason, but there is probably some background process running that is going out on the web and re-authenticating. Like I said, we turned on the splash and this seems to have solved it.
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Mon Jan 18, 2010 4:03 am    Post subject: Reply with quote

I've done more tests and this feature is not reliable

I need to know more about this feature to test it properly

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
bconverse
Moderator
Moderator


Joined: 07 Mar 2008
Posts: 848
Location: Little Rock, AR (USA)

PostPosted: Mon Jan 18, 2010 4:42 am    Post subject: Reply with quote


Only registered users can see links on this forum!
Register or Login on forum!

Back to top
View user's profile Send private message
foxtroop11
Service Provider
Service Provider


Joined: 22 Mar 2009
Posts: 1168
Location: Ansbach, Germany and sometimes the States

PostPosted: Mon Jan 18, 2010 12:27 pm    Post subject: Reply with quote

You might want to look at lower the time the person gets logged out. I'm not sure I understand your actual problem. I don't think the url redirect is going to happen each and ever time someone opens up a new browser window, probably more like after a certain amount of time. That time needs to expire before you will be redirected again, atleast that's what I get from it.
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Mon Jan 18, 2010 6:17 pm    Post subject: Reply with quote

I suspect you are correct

I've set "Client force timeout" to 30 minutes

I suspect when you first connect it records your MAC address and sends you to the redirect page. From then on in redirect does no work.''

After 30 minutes the MAC address get reset and you start authentication all over again?

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
phred
Moderator
Moderator


Joined: 01 Jul 2008
Posts: 207
Location: San Francisco

PostPosted: Mon Jan 18, 2010 8:13 pm    Post subject: Reply with quote

ispyisail wrote:
I've done more tests and this feature is not reliable

I need to know more about this feature to test it properly


The redirect is 100% reliable. But there may be some process on your device which makes a web request and causes the redirect.

r2678 and after have some updates I included which only triggers the update on an HTTP get, so the redirect should be less sensitive to non browser requests.

_________________

Only registered users can see links on this forum!
Register or Login on forum!



Advertising and Commercial Grade Solutions for Open-Mesh Networks
Silver Lining Networks is development contributor to the ROBIN firmware
Back to top
View user's profile Send private message Visit poster's website
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Tue Jan 19, 2010 1:15 am    Post subject: Reply with quote

Quote:
The redirect is 100% reliable. But there may be some process on your device which makes a web request and causes the redirect.


Is it possible to specify listening ports?

e.g. only port 80 and or 443

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
phred
Moderator
Moderator


Joined: 01 Jul 2008
Posts: 207
Location: San Francisco

PostPosted: Tue Jan 19, 2010 1:32 am    Post subject: Reply with quote

ispyisail wrote:
Quote:
The redirect is 100% reliable. But there may be some process on your device which makes a web request and causes the redirect.


Is it possible to specify listening ports?

e.g. only port 80 and or 443


In the default configuration Nodogsplash only redirects on port 80 (it listens on port 2050).

See /etc/nodogsplash/nodogsplash.conf for the configuration of ports which redirect to the splash/redirect page:

Code:
FirewallRuleSet preauthenticated-users {
        FirewallRule allow udp port 53
        FirewallRule allow tcp port 1:79
        FirewallRule allow tcp port 81:65535
}

_________________

Only registered users can see links on this forum!
Register or Login on forum!



Advertising and Commercial Grade Solutions for Open-Mesh Networks
Silver Lining Networks is development contributor to the ROBIN firmware
Back to top
View user's profile Send private message Visit poster's website
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Tue Jan 19, 2010 7:30 am    Post subject: Reply with quote

For anybody else reading this

Only registered users can see links on this forum!
Register or Login on forum!



Quote:
Preauthenticated. Any other packet. These packets are accepted and routed to a limited set of addresses and ports (see FirewallRuleSet preauthenticated-users and FirewallRuleSet users-to-router in the nodogsplash.conf configuration file). Any other packet is dropped, except that a packet for destination port 80 at any address is redirected to port 2050 on the router, where nodogsplash's builtin libhttpd-based web server is listening. This begins the 'authentication' process. The server will serve a splash page back to the source IP address of the packet. The user clicking the appropriate link on the splash page will complete the process, causing future packets from this IP/MAC address to be marked as Authenticated until the inactive or forced timeout is reached, and its packets revert to being Preauthenticated.


Code:
FirewallRuleSet preauthenticated-users {
                FirewallRule allow tcp port 433       
}


I have assumed this should work for port 80 and 443 only

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
ispyisail
Site Admin
Site Admin


Joined: 12 Sep 2008
Posts: 4604
Location: New Zealand

PostPosted: Tue Jan 19, 2010 8:03 am    Post subject: Reply with quote

Now this is a cool command

Code:
/usr/bin/ndsctl status


All you ever wanted to know about nodogslash

_________________
ROBIN-Mesh Wiki:

Only registered users can see links on this forum!
Register or Login on forum!

Test Network:
Only registered users can see links on this forum!
Register or Login on forum!



Please donate to ROBIN by paypal:

Only registered users can see links on this forum!
Register or Login on forum!

!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROBIN - Open Source Mesh Network Forum Index -> NoDogSplash All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
c d
e



Powered by phpBB © 2001, 2005 phpBB Group

Abuse - Report Abuse - TOS & Privacy.
Powered by forumup.it free forum, create your free forum! Created by Hyarbor & Qooqoa
Confirmed

Page generation time: 0.124