Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-14 Thread Terry Coles
On Saturday, 14 July 2018 13:33:21 BST Ralph Corderoy wrote: > Have you read > https://nodogsplash.readthedocs.io/en/latest/howitworks.html ? Well I did, but it was some time ago and I only understood a small part of it. > As I said a long time ago, you can let nodog set things up and should > th

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-14 Thread Ralph Corderoy
Hi Terry, > 1. If the nodogsplash webserver is serving the WMT content pages; how > does it manage that? > > The Splash Page is located at /etc/nodogsplash/htdocs, which is the > default location. The WMT content is at /var/www/html, which is the > default location for nginx. The nodogsplash co

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-12 Thread Patrick Wigmore
On Thu, 12 Jul 2018 07:14:05 +0100, Terry Coles wrote: > > Given enough time to detect the captive portal, Windows 7 pops up > > a > > balloon from the taskbar suggesting that "Additional log on > > information may be required", which opens a browser when clicked. > > Have you installed nodogsplas

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Terry Coles
On Wednesday, 11 July 2018 19:17:25 BST Patrick Wigmore wrote: > On Wed, 11 Jul 2018 17:14:21 +0100, Terry Coles wrote: > > It's worse than that; I've found that every browser that I've tried > > on every device that I have access to exhibits different behaviours > > with this code: Something tha

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Patrick Wigmore
On Wed, 11 Jul 2018 17:14:21 +0100, Terry Coles wrote: > It's worse than that; I've found that every browser that I've tried > on every device that I have access to exhibits different behaviours > with this code: I think this is just something that happens with captive portals. It's not unique t

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Terry Coles
On Wednesday, 11 July 2018 12:04:26 BST Patrick Wigmore wrote: > I think you've hit the nail on the head there. Android seems to have a > special browser that appears for signing in to captive portals, and it > doesn't render web pages quite the same way as the usual browser. > > It makes sense tha

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Patrick Wigmore
On Wed, 11 Jul 2018 11:04:29 +0100, Terry Coles wrote: > On Wednesday, 11 July 2018 10:20:49 BST Terry Coles wrote: > > All of the pages appear different in one other respect. Across > > the top of the Splash Page, there is a page Title that reads > > 'Sign in to network'. This appears at the top

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Terry Coles
On Wednesday, 11 July 2018 07:27:21 BST Ralph Corderoy wrote: > Try simplifying splash.html, e.g. > > > > ... I tried using a much simplified page based on this, but it made both the Splash Page and the Home Page oversized. A copy of my current splash.html may be found at:

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Terry Coles
On Wednesday, 11 July 2018 10:20:49 BST Terry Coles wrote: > All of the pages appear different in one other respect. Across the top of > the Splash Page, there is a page Title that reads 'Sign in to network'. > This appears at the top of all the pages. It's this hangover from the Sign > In Page

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-11 Thread Terry Coles
On Wednesday, 11 July 2018 07:27:21 BST Ralph Corderoy wrote: > Is this the content of the web page being served? > https://github.com/nodogsplash/nodogsplash/blob/master/resources/splash.html I am using that page as the basis of my Splash Page, which authorises the user and tells him/her that th

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-10 Thread Ralph Corderoy
Hi Terry, > On my wife's Moto G6 Plus (Android 8.0), this works well. On my Moto > G5 Plus (Android 7.0), the Home Page is too big and overflows the > screen. Is this the content of the web page being served? https://github.com/nodogsplash/nodogsplash/blob/master/resources/splash.html > I suspe

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-07-09 Thread Terry Coles
On Sunday, 17 June 2018 11:34:02 BST Terry Coles wrote: > I have placed files showing yhe physical and software configuration at > http://www.hadrian-way.co.uk/Misc/Pi_Router/. > > Simply put, the on-site Wi-Fi Antenna is acting as a DHCP server as well as > an Access Point and is connected to the

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-23 Thread Terry Coles
On Friday, 22 June 2018 12:33:30 BST Terry Coles wrote: > Now I can get back to installing NodogSplash Well. Not quite. My test setup had the Client as a Raspberry Pi with a fixed IP address, whereas the final setup will be a Wi-Fi AP with mobile clients looking for an IP Address. When

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-22 Thread Terry Coles
On Friday, 22 June 2018 13:36:07 BST Ralph Corderoy wrote: > This means you have two default routes. The default route is the one to > take when none of the other routes match. When more than one route > matches, because they have the same specificity, then the one with the > lowest metric wi

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-22 Thread Ralph Corderoy
Hi Terry, > https://pimylifeup.com/raspberry-pi-wireless-access-point/ That looks quite good. I'm a bit puzzled by `routers' being a host address of 0, but I suppose it depends how dhcpcd uses these to configure the routing table. interface wlan0 static ip_address=192.168.220.1/24 s

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-22 Thread Terry Coles
On Wednesday, 20 June 2018 14:12:08 BST Terry Coles wrote: > One thing: I remembered that I'd been able to lay my hands on a Pi Zero for > the WMT and it's been in my spares draw ever since. So assuming that I can > cobble together enough peripherals, I should be able to set up the > configuration

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-20 Thread Terry Coles
On Wednesday, 20 June 2018 13:09:36 BST Ralph Corderoy wrote: > > Anyone know haoe to fix the IP Address on an Android phone? > > It seems it's possible, e.g. https://it.uoregon.edu/node/3559 Not any more it seems. That page was written when Jelly Bean was the latest version of Android (4.1, ci

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-20 Thread Ralph Corderoy
Hi Terry, > Anyone know haoe to fix the IP Address on an Android phone? It seems it's possible, e.g. https://it.uoregon.edu/node/3559 Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2018-07-03 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:d

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-20 Thread Ralph Corderoy
Hi Terry, > > ...that you understood. :-) > > No. I did what most other Raspberry Pi users do; I followed the > Tutorial and assumed that the author knew what he was doing. I wasn't referring to that. > > > One final question. If I open a default copy of > > > /etc/network/interface, it says

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Terry Coles
On Tuesday, 19 June 2018 14:42:40 BST Terry Coles wrote: > I don't have laptops that run anything else :-) Unfortunately, I seem to have lost my second USB Type A to Ethernet Adaptor. I need two; one for eth1 on the Pi and one for the laptop. I have several Micro USB to Ethernet Adaptors, but

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Terry Coles
On Tuesday, 19 June 2018 14:22:39 BST Ralph Corderoy wrote: > A laptop running Linux would do as well. I don't have laptops that run anything else :-) > ...that you understood. :-) No. I did what most other Raspberry Pi users do; I followed the Tutorial and assumed that the author knew what h

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Ralph Corderoy
Hi Terry, > > customer-mobile (another Pi?) manual too. > > I'm fresh out of Pis but I may be able to cobble together something > using a mobile phone or laptop connected by Ethernet A laptop running Linux would do as well. > I was also thinking of starting again from scratch with a clean > inst

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Terry Coles
On Tuesday, 19 June 2018 13:50:38 BST Hamish MB wrote: > Raspbian lite might be a good choice? It's certainly a good choice when the system is to run headless, but I don't think it would make any difference in this instance. Anyway, I've already burnt the new SD Card and am in the process of up

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Hamish MB
Raspbian lite might be a good choice? On 19/06/18 13:41, Terry Coles wrote: > On Tuesday, 19 June 2018 12:00:42 BST Ralph Corderoy wrote: >> You've assembled a system of software parts and it doesn't work. >> Debugging it will be hard because of the possible interactions between >> the parts that

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Terry Coles
On Tuesday, 19 June 2018 12:00:42 BST Ralph Corderoy wrote: > You've assembled a system of software parts and it doesn't work. > Debugging it will be hard because of the possible interactions between > the parts that are unknown. I'd try to strip it back to the minimal and > get that working, e.g.

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Ralph Corderoy
Hi Terry, > At first, because the problem was related to routes, I assumed that I > had introduced the problem when I set up the routing using IP Tables. You've assembled a system of software parts and it doesn't work. Debugging it will be hard because of the possible interactions between the par

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-19 Thread Terry Coles
On Sunday, 17 June 2018 18:42:53 BST Ralph Corderoy wrote: > If you're on the Pi trying to ping 8.8.8.8 with eth0 plugged in, giving > the winning metric-202 default route, then your packet is going to > travel out of eth0 addressed to outdoor-wap's 192.168.0.1-interface's > Ethernet address. That

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-18 Thread Terry Coles
On Monday, 18 June 2018 18:09:10 BST PeterMerchant via dorset wrote: > My Home network has a main wireless AdSL router 192.168.1.1 and a remote > old ADSL wireless router upstairs of a different make. This has IP > 192.168.1.2, same Netmask and ADSL not configured. But I have access to > everything

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-18 Thread PeterMerchant via dorset
On 17/06/18 21:34, Terry Coles wrote: On Sunday, 17 June 2018 21:11:50 BST PeterMerchant via dorset wrote: It is the understanding of those words that is the problem. I didn't understand what you wanted either. I wondered how he was going to do the measurement 'during' the process of plugging ev

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 21:11:50 BST PeterMerchant via dorset wrote: > It is the understanding of those words that is the problem. I didn't > understand what you wanted either. I wondered how he was going to do the > measurement 'during' the process of plugging everything in. Thanks Peter (and St

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Stephen Wolff
Hiya >>> I didn't realise that you wanted me to unplug it again. >> I didn't realise that you weren't reading my words. :-) >> > It is the understanding of those words that is the problem. I didn't > understand what you wanted either. I wondered how he was going to do the > measurement 'during

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread PeterMerchant via dorset
On 17/06/18 18:42, Ralph Corderoy wrote: Hi Terry, I didn't realise that you wanted me to unplug it again. I didn't realise that you weren't reading my words. :-) It is the understanding of those words that is the problem. I didn't understand what you wanted either. I wondered how he was

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Ralph Corderoy
Hi Terry, > I didn't realise that you wanted me to unplug it again. I didn't realise that you weren't reading my words. :-) You carry out two actions above and I wanted before plugging it in for the first time since boot, during the time it is plugged in, and after it is unplugged.

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 13:19:01 BST Ralph Corderoy wrote: I didn't realise that you wanted me to unplug it again. > 1. Boot Pi. > 2. What's the output of `ip -s -d -a r'? pi@WMT_Webserver:~ $ ip -s -d -a r unicast default via 192.168.1.1 dev eth1 proto boot scope global src 192.168.1

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Ralph Corderoy
Hi Terry, > Sorry I'm still not making myself clear am I. 1. Boot Pi. 2. What's the output of `ip -s -d -a r'? 3. Plug cable into eth0. 4. Wait plentry of time for things to settle down, e.g. router lights. 5. What's the output of `ip -s -d -a r'? 6. Unplug eth0's ca

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 13:05:27 BST Terry Coles wrote: > first O/P was without the cable to eth0 plugged in (just eth1 to the > Antenna). Immediately after I plugged it in, I ran the command again and Doh! Just eth1 to the Office Router. -- Terry Coles -- Next meeting:

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 12:56:02 BST Ralph Corderoy wrote: > > Sorry missed the 'during' That's a bit arbitrary isn't it? What > > counts as 'during'? I plugged the cable in and immediately ran the > > command; the result was identical to the 'without' case. The second > > output is what I get

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Ralph Corderoy
Hi Terry, > > > The problem is that when I plug the cable into eth0 nothing is > > > routed to anywhere. As soon as I unplug it, the path to the > > > Internet is restored. > > > > What's the output of `ip -s -d -a r' before plugging in the eth0 > > cable, then during, then after? > > Sorry misse

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 12:40:46 BST Terry Coles wrote: > result was identical to the 'without' case. The second output is what I > get after I've plugged it in. Perhaps I should have after I've plugged it in and the Ethernet light on the Router spoofing the Antenna has lit. --

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 12:33:51 BST Ralph Corderoy wrote: > Hi Terry, > > > > What's the output of `ip -s -d -a r' before plugging in the eth0 cable, > > > > unicast default via 192.168.1.1dev eth1 proto boot scope global src > > 192.168.1.15 metric 203 unicast 192.168.1.0/24 d

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Ralph Corderoy
Hi Terry, > > What's the output of `ip -s -d -a r' before plugging in the eth0 cable, > > unicast default via 192.168.1.1dev eth1 proto boot scope global src > 192.168.1.15 metric 203 > unicast 192.168.1.0/24 dev eth1 proto kernel scope link src > 192.168.1.15 metric 203 >

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 12:24:07 BST Terry Coles wrote: > BTW. There's an error in my diagram, the IP Address of eth0 is fixed at > 192.168.0.9, not 192.168.0.1 as stated. I've just updated it. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2018-07-03 20:00 Meets,

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
On Sunday, 17 June 2018 12:13:13 BST Ralph Corderoy wrote: > What's the output of `ip -s -d -a r' before plugging in the eth0 cable, > then during, then after? pi@WMT_Webserver:~ $ ip -s -d -a r unicast default via 192.168.1.1 dev eth1 proto boot scope global src 192.168.1.15 metric 203 unicast

Re: [Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Ralph Corderoy
Hi Terry, > The problem is that when I plug the cable into eth0 nothing is routed > to anywhere. As soon as I unplug it, the path to the Internet is > restored. What's the output of `ip -s -d -a r' before plugging in the eth0 cable, then during, then after? Cheers, Ralph. -- Next meeting: Bo

[Dorset] Using a Raspberry Pi as a Network Router

2018-06-17 Thread Terry Coles
Hi, My WMT Project to set up a Captive Portal has hit yet another bump in the road. I'm sure it's me simply not spotting the obvious agin, but could someone check through my setup and let me know if they spot something wrong. I have placed files showing yhe physical and software configuration