Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-02-23 Thread Terry Coles
On Friday, 23 February 2018 16:39:34 GMT Terry Coles wrote:
> Still looking for inspiration

I've just had another thought as to what I might be doing wrong and have just 
written to 
Foxdog to get clarification of their solution.

I have put the 'android walled garden hack' code into a file located in 
/etc/nginx/sites-
available with a simlink to /etc/nginx/sites-enabled.

In case Foxdog don't reply soon, can anyone tell me if I've put the code in the 
right place?


-- 



Terry Coles
-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-02-23 Thread Terry Coles
On Friday, 23 February 2018 12:25:29 GMT Terry Coles wrote:
> Any ideas as to what I've missed?

I think maybe I've got something wrong in the Foxdog configuration after all.

When the system is running, I get allocated an IP Address of 192.168.0.119 for 
WLN0 on my phone.  I can ping WMT.com and all the domains listed in the Foxdog 
solution. I can also issue traceroute and get 1 hop responses, so it looks 
like my DHCP and DNS servers configuration is OK.

I'm now wondering if the nginx config is missing something, but I can't 
actually see what at the moment.  If I issue:

nginx -s reload

I no longer get errors ( I had some, but they're fixed) and I can type 
'wmt.com' at the browser and I get the page I want - as long as I've agreed to 
stay connected to the AP which has no Internet access.

Still looking for inspiration

-- 



Terry Coles

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Revisited - Accessing a Local Network over a Wireless Router that is NOT Connected to the Internet

2018-02-23 Thread Terry Coles
On Monday, 19 February 2018 12:04:51 GMT Terry Coles wrote:
> I'm hoping to try the new config tomorrow, when I go to the WMT.

The config provided by Foxdog Studios didn't work for me, so I removed the Pi 
and the AP from the WMT and set the whole thing up at home.

I'm still having problems, but I don't think it has anything to do with the 
config provided by Foxdog.  I searched back through the emails at the time and 
remembered that I had never got this spoofing to work on Android but, (as 
indicated by Foxdog), iPhones have always worked.  At the time, we agreed that 
it wasn't the end of the world to have to accept a connection with no path to 
the Internet, because at least the users would then realise that they wouldn't 
be able to access Twitter / Facebook etc when connected to our AP.  Since 
then, Management have decided that spoofing the Internet is a better solution.

Here is what we had, which worked as long as the user clicked on 'Remain 
Connected to this AP' when prompted by the phone:

The Wireless AP is a TL-WA7210N.  We configured it as an Access Point and used 
the built in DHCP server to set up an IP Range for Visitor's devices of 
192.168.0.100 - 199.

The Pi is running nginx and had the server wmt.com setup and the earlier 
version of the Foxdog solution.  There was no DNS server running anywhere on 
the system, which is why I suspect the Foxdog solution never really worked.

Since I got the system home, I have:

1.  Turned off DHCP in the TL-WA7210N.
2.  Configured The Raspberry Pi Webserver to also provide DHCP and DNS servers.
3.  Set up a static IP address of 192.168.0.1 for the Pi.
5.  Made the Pi a DHCP server instead of a client.
4.  Listed all of the domains in the Foxdog solution, plus the webserver 
(WMT.com) in the file hosts.dnsmasq

All using the instructions given in:

https://www.raspberrypi.org/learning/networking-lessons/lessons/

It is exactly the same as before !!!

Any ideas as to what I've missed?

-- 



Terry Coles

-- 
Next meeting:  Bournemouth, Tuesday, 2018-03-06 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR