Re: [Dorset] Debugging dnsmasq and dhcpd

2022-03-30 Thread Terry Coles
On Wednesday, 30 March 2022 12:01:11 BST Terry Coles wrote:
> I still can't see what's going wrong.

That is still a true statement, but with help from people on the RPi Forums, a 
sticking plaster was found.  Basically stop the system see conflicts (real or 
otherwise) by adding 'noarp' to dnsmasq.conf.

-- 



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] Debugging dnsmasq and dhcpd

2022-03-30 Thread Terry Coles
On Wednesday, 30 March 2022 11:33:31 BST Terry Coles wrote:
> On Wednesday, 30 March 2022 10:26:24 BST Terry Coles wrote:
> > On Tuesday, 29 March 2022 18:57:19 BST Terry Coles wrote:

More info; this time with log-dhcp in the dnasmasq.conf file:

https://hadrian-way.co.uk/Misc/syslog_tail(log-dhcp).txt

I still can't see what's going wrong.

-- 



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] Debugging dnsmasq and dhcpd

2022-03-30 Thread Terry Coles
On Wednesday, 30 March 2022 10:26:24 BST Terry Coles wrote:
> On Tuesday, 29 March 2022 18:57:19 BST Terry Coles wrote:
> I'm still confused.  Here is what was written to syslog when I tried to
> connect to the system with my phone:
> 
> https://hadrian-way.co.uk/Misc/syslog_tail.txt

This is getting weirder!  I added 'log-queries' to dnsmasq.conf and repeated 
the previous exercise.  This time the connection only worked once before I fot 
the hardware conflict message at 10:20 UTC.  Here is the output from syslog 
during those transactions:

https://hadrian-way.co.uk/Misc/syslog_tail(log-queries).txt

Even weirder is that I can connect without problems using my Dell XPS laptop 
running Kubuntu 21.10.  Not only does syslog not flag any conflicts, I seem to 
be able to connect without syslog recording anything at all!  Once connected I 
can ssh into the Webserver, but not ping it, although I can ping the VPN 
Server.

Can anyone make any sense of this?

-- 



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] Debugging dnsmasq and dhcpd

2022-03-30 Thread Terry Coles
On Tuesday, 29 March 2022 18:57:19 BST Terry Coles wrote:
> Apparently there is an address conflict but it doesn't show up until I've
> tried to connect several times.  I'm confused.

I'm still confused.  Here is what was written to syslog when I tried to 
connect to the system with my phone:

https://hadrian-way.co.uk/Misc/syslog_tail.txt

This sequence shows my phone connecting successfully three times with the IP 
Address 192.168.0.212 being returned in each case.  (Between each connection I 
disconnected the phone by connecting to another WiFi AP in my home.)

Then, immediately after the third successful connection, I get the message:

'eth0: hardware address 6e:ab:63:d7:20:a6 claims 192.168.0.1'

and from then on everything goes pear-shaped.

I've confirmed that my phone's MAC Address is 6e:ab:63:d7:20:a6, but why would 
the phone suddenly decide to declare itself as 192.168.0.1?

Any ideas what is going on?

-- 



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] Debugging dnsmasq and dhcpd

2022-03-29 Thread Terry Coles
Messages go to syslog as I've since found out.

Apparently there is an address conflict but it doesn't show up until I've tried 
to connect several times.  I'm confused.

I'll look at this tomorrow.

⁣Sent from Blue ​

On 29 Mar 2022, 18:11, at 18:11, Peter Merchant via dorset 
 wrote:
>On 29/03/2022 15:14, Terry Coles wrote:
>> Hi,
>>
>> The system that I've been talking about for a few days seems to have
>a problem
>> with WiFi.  It generally works OK the first time a user connects, but
>after
>> that the message 'Obtaining IP Address' is displayed for ever.  What
>I can't
>> work out is how to debug this.  Can anyone tell me where to find the
>log file(s)
>> for dnsmasq?
>>
>A quick search gets me:
>
>Ok then your are using hostapd and dnsmasq. For the clients
>informations you can parse the 'leases' file of dnsmasq
>in|/var/lib/misc/dnsmasq.leases|
>
>|I don't know whether the logfiles are close to it. |
>
>|In dnsmasq.conf I found:|
>
>|# For debugging purposes, log each DNS query as it passes through #
>dnsmasq. #log-queries # Log lots of extra information about DHCP
>transactions. #log-dhcp |
>
>|But I can't find any logfiles in rootfs partition. |
>-- 
>  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
-- 
  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] Debugging dnsmasq and dhcpd

2022-03-29 Thread Peter Merchant via dorset

On 29/03/2022 15:14, Terry Coles wrote:

Hi,

The system that I've been talking about for a few days seems to have a problem
with WiFi.  It generally works OK the first time a user connects, but after
that the message 'Obtaining IP Address' is displayed for ever.  What I can't
work out is how to debug this.  Can anyone tell me where to find the log file(s)
for dnsmasq?


A quick search gets me:

Ok then your are using hostapd and dnsmasq. For the clients informations you 
can parse the 'leases' file of dnsmasq in|/var/lib/misc/dnsmasq.leases|

|I don't know whether the logfiles are close to it. |

|In dnsmasq.conf I found:|

|# For debugging purposes, log each DNS query as it passes through # dnsmasq. 
#log-queries # Log lots of extra information about DHCP transactions. #log-dhcp 
|

|But I can't find any logfiles in rootfs partition. |
--
 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