[Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Johan Vromans
Hi, I have a number of IoT devices. Occasionally, when they try to set up the DHCP lease, some of them send wrong packets. The device effectively claims the IP address of the DHCP server. From the system log: May 4 05:39:59 srv1 dhcpcd[449]: eth0: hardware address xx:xx:xx:xx:xx::ce clai

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Geoff Back
Hi Johan, On 05/05/2023 08:40, Johan Vromans wrote: > Hi, > > I have a number of IoT devices. Occasionally, when they try to set up the > DHCP lease, some of them send wrong packets. The device effectively claims > the IP address of the DHCP server. From the system log: > > May 4 05:39:59 srv

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Johan Vromans
Hi Geoff, Thanks for your reply. > Set static IP on the interface and do not run dhcpcd.  The problem is > with dhcpcd releasing the address, not with dnsmasq. I have this in my /etc/dhcpcd.conf: interface eth0 static ip_address=192.168.1.10/24 static routers=192.168.1.1 I do not run /sbin/dhc

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Geert Stappers
On Fri, May 05, 2023 at 11:54:31AM +0200, Johan Vromans wrote: > Hi Geoff, > > Thanks for your reply. > > > Set static IP on the interface and do not run dhcpcd.  The problem is > > with dhcpcd releasing the address, not with dnsmasq. > > I have this in my /etc/dhcpcd.conf: > > interface eth0 >

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Geert Stappers
On Fri, May 05, 2023 at 12:11:32PM +0200, Geert Stappers wrote: > On Fri, May 05, 2023 at 11:54:31AM +0200, Johan Vromans wrote: } } } } dhcpcd[449]: eth0 10 second defense failed for 192.168.1.10 } } } } and slowly the LAN collapses > > > Set static IP on the interface and do not run dhcpcd.  Th

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Johan Vromans
On Fri, 5 May 2023 11:54:31 +0200, Johan Vromans wrote: > > do not run dhcpcd. All docs tell me to set the static address in the /etc/dhcpcd.conf, this is confusing. I've now disabled dhcpcd and put the static address in /etc/network/interfaces. Thanks Johan ___

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Matus UHLAR - fantomas
On Fri, 5 May 2023 11:54:31 +0200, Johan Vromans wrote: > do not run dhcpcd. On 05.05.23 13:33, Johan Vromans wrote: All docs tell me to set the static address in the /etc/dhcpcd.conf, this is confusing. I've now disabled dhcpcd and put the static address in /etc/network/interfaces. you use

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Ben Hendin
uh...@fantomas.sk wrote: > you use dhcpd to configure other machines over network, not your own. > > and, dnsmasq is not dhcpd. While it can act as dhcp server, the same applies > as above. Apparently the syntax Johan has listed is not standard dhcpd.conf syntax (at least not that I could find in

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Buck Horn
On 05.05.2023 14:32:12, "Matus UHLAR - fantomas" wrote: On 05.05.23 13:33, Johan Vromans wrote: All docs tell me to set the static address in the /etc/dhcpcd.conf, this is confusing. I've now disabled dhcpcd and put the static address in /etc/network/interfaces. you use dhcpd to configure oth

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Matus UHLAR - fantomas
uh...@fantomas.sk wrote: you use dhcpd to configure other machines over network, not your own. and, dnsmasq is not dhcpd. While it can act as dhcp server, the same applies as above. On 05.05.23 08:42, Ben Hendin wrote: Apparently the syntax Johan has listed is not standard dhcpd.conf syntax (

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Johan Vromans
On Fri, 05 May 2023 14:56:40 +, "Buck Horn" wrote: > Roy Marples's DHCP client daemon >dhcpcd > is not the same as ISC's DHCP server daemon >dhcpd. > > It would seem to me that Johan Vromans has been using the former: > I think I recognise the syntax. Yes, that's correct. The system

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Geert Stappers
On Fri, May 05, 2023 at 08:47:14PM +0200, Johan Vromans wrote: > On Fri, 05 May 2023 14:56:40 +, "Buck Horn" wrote: > > > Roy Marples's DHCP client daemon > >dhcpcd > > is not the same as ISC's DHCP server daemon > >dhcpd. > > > > It would seem to me that Johan Vromans has been using

Re: [Dnsmasq-discuss] Defending IP address

2023-05-05 Thread Johan Vromans
On Fri, 5 May 2023 22:13:24 +0200, Geert Stappers wrote: > It is too early to blame the IoT devices. I don't blame them... They merely revealed there's something fishy. > The original problem is most likely solvable with the original dhcpcd > configuration in-place. Strange that you keep po

Re: [Dnsmasq-discuss] Defending IP address

2023-05-06 Thread Geert Stappers
On Fri, May 05, 2023 at 11:02:49PM +0200, Johan Vromans wrote: > On Fri, 5 May 2023 22:13:24 +0200, Geert Stappers wrote: > > On Fri, May 05, 2023 at 08:47:14PM +0200, Johan Vromans wrote: > > > > > > ... The system is a Raspberry Pi running Raspbian. > > > It is DHCP/DNS server (dnsmasq) for my

Re: [Dnsmasq-discuss] Defending IP address

2023-05-06 Thread A C
One thing I'd like to point out is that the documentation demonstrating setting a static IP using dhcpcd.conf is not from the Raspberry Pi foundation but from a lot of other Rasberry Pi blogs online. The official blog does not list using that method at all. Instead it either points to using a

Re: [Dnsmasq-discuss] Defending IP address

2023-05-06 Thread Johan Vromans
On Sat, 6 May 2023 19:03:21 +0200, Geert Stappers wrote: > Let's assume there is > > } xx:xx:xx:xx:xx:aa,192.168.1.10,dnsmasq.squirrel.nl,24h True. System name is srv1 but that does not matter. > > # Addresses for dynamic hosts. > > dhcp-range=192.168.1.33,192.168.1.50,6h > > Now we known th

Re: [Dnsmasq-discuss] Defending IP address

2023-05-06 Thread Johan Vromans
On Sat, 6 May 2023 11:17:22 -0700, A C wrote: > The official blog does not list using that method at all. Instead it > either points to using a systemd network file or through the > /etc/network/interfaces file. If so, I have been unable to find it... Sorry for that. Can you give the link? --

Re: [Dnsmasq-discuss] Defending IP address

2023-05-06 Thread A C
I lost the link, I did t a lot of searching which kept coming up with the dhcpcd.conf method and by all accounts many people have problems similar to what you did where the interface has issues in multi-device environments. There's a bunch of threads on places like stackexchange and the Rasber

Re: [Dnsmasq-discuss] Defending IP address

2023-05-07 Thread Buck Horn
On 06.05.2023 20:17:22, "A C" wrote: One thing I'd like to point out is that the documentation demonstrating setting a static IP using dhcpcd.conf is not from the Raspberry Pi foundation but from a lot of other Rasberry Pi blogs online. Setting a static IP address on-device via dhcpcd.conf

Re: [Dnsmasq-discuss] Defending IP address

2023-05-07 Thread A C
On 2023-05-06 23:46, Buck Horn wrote: On 06.05.2023 20:17:22, "A C" wrote: One thing I'd like to point out is that the documentation demonstrating setting a static IP using dhcpcd.conf is not from the Raspberry Pi foundation but from a lot of other Rasberry Pi blogs online. Setting a static

Re: [Dnsmasq-discuss] Defending IP address, server-clients

2023-05-07 Thread Geert Stappers
On Sun, May 07, 2023 at 01:45:34AM -0700, A C wrote: > On 2023-05-06 23:46, Buck Horn wrote: > > On 06.05.2023 20:17:22, "A C" wrote: > > > > > One thing I'd like to point out is that the documentation > > > demonstrating setting a static IP using dhcpcd.conf is not from the > > > Raspberry Pi fou