Re: [Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Terry Coles
On Tuesday, 29 March 2022 11:59:39 BST Hamish McIntyre-Bhatty wrote:
> Hmm interesting. Are you not having the SSH connection issues to the
> webserver when it's at your house then? That was the issue we were
> originally debugging, and shouldn't have anything to do with either
> nodogsplash or Android if I understand things correctly.

That's fixed.  I had accidentally set up the wrong default route during some 
earlier work.

I've now discovered a timeout value in the config file for nodogsplash.  The is 
a unitless number for the timeout while a client is connecting (called 
PreAuthIdleTimeout) and another for after he has connected (called 
AuthIdleTimeout).  The docs suggest that these are in minutes, but while I was 
debugging, one of the clients was de-authenticated after 120 seconds instead 
of 2 hours.  This gave me the clue that the number represents seconds so I 
increased the PreAuthIdleTimeout from 2 to 20 and things seem a lot better 
now.

If this works, I'll probably change both to the equivalent number of seconds 
for the original values, so 120 for PreAuthIdleTimeout and 7200 for 
AuthIdleTimeout.  The numbers were originally chosen to give the Visitor 2 
minutes to work out what to do initially and 2 hours on site before he had to 
reconnect.

I also have an intermittent issue connecting to the WiFi in the first place, so 
I may be back :-)

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


Re: [Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Hamish McIntyre-Bhatty

On 29/03/2022 11:37, Terry Coles wrote:

After realising that the problem had nothing to do with the VPN Server, I've
done further investigation and the most likely cause of this is the check that
all Android phones have to do before they will connect to a WiFi Network.

On occasions I've caught an error from 'connectivitycheck.gstatic.com/
generate_204'.  Sometimes I'm getting 'net::ERR_CONNECTION_ABORTED' and
sometimes I get 'net::ERR_TIMED_OUT'.  I've posted a typical screenshot at:

https://hadrian-way.co.uk/Misc/Android_Screenshot_2022-03-29.jpg

The trouble is that during WiFi connection checks a message is sent to that
URL by the phone and if the response isn't received, then Android believes
that there is no Internet access and (normally) flags this up to the user with
an option to ignore before connecting.  It seems that nodogsplash somehow gets
into the middle of this sometimes and the Welcome splash screen doesn't get
displayed.

Even so, a user 'in the know' can still connect to the content by browsing to
the Home Page, so the connection is still made.  Unfortunately there will be
no Visitors to WMT who are in the know.

The trouble is that development of nodogsplash seems to be moribund, the last
commits being about 2 years ago and there have been no issues added since
October last year.  I therefore suspect that I can't get much help from that
source.

Has anyone any thoughts on this?  As mentioned elsewhere this problem isn't
new; we just had less understanding of it 2-3 years ago and it was less
prevalent.  Before that, I used to display a notice on site which gave
instructions on how to browse to the Home Page, but this was deemed to be too
complicated and nodogsplash was installed to make it easier..  I don't really
want to have to go back to the original approach if possible.


Hmm interesting. Are you not having the SSH connection issues to the 
webserver when it's at your house then? That was the issue we were 
originally debugging, and shouldn't have anything to do with either 
nodogsplash or Android if I understand things correctly.


Hamish


--
 Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk


[Dorset] Follow Up to my WMT Webserver Problem

2022-03-29 Thread Terry Coles
After realising that the problem had nothing to do with the VPN Server, I've 
done further investigation and the most likely cause of this is the check that 
all Android phones have to do before they will connect to a WiFi Network.

On occasions I've caught an error from 'connectivitycheck.gstatic.com/
generate_204'.  Sometimes I'm getting 'net::ERR_CONNECTION_ABORTED' and 
sometimes I get 'net::ERR_TIMED_OUT'.  I've posted a typical screenshot at:

https://hadrian-way.co.uk/Misc/Android_Screenshot_2022-03-29.jpg

The trouble is that during WiFi connection checks a message is sent to that 
URL by the phone and if the response isn't received, then Android believes 
that there is no Internet access and (normally) flags this up to the user with 
an option to ignore before connecting.  It seems that nodogsplash somehow gets 
into the middle of this sometimes and the Welcome splash screen doesn't get 
displayed.

Even so, a user 'in the know' can still connect to the content by browsing to 
the Home Page, so the connection is still made.  Unfortunately there will be 
no Visitors to WMT who are in the know.

The trouble is that development of nodogsplash seems to be moribund, the last 
commits being about 2 years ago and there have been no issues added since 
October last year.  I therefore suspect that I can't get much help from that 
source.

Has anyone any thoughts on this?  As mentioned elsewhere this problem isn't 
new; we just had less understanding of it 2-3 years ago and it was less 
prevalent.  Before that, I used to display a notice on site which gave 
instructions on how to browse to the Home Page, but this was deemed to be too 
complicated and nodogsplash was installed to make it easier..  I don't really 
want to have to go back to the original approach if possible.

-- 



Terry Coles



-- 
  Next meeting: Online, Jitsi, Tuesday, 2022-05-04 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk