Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. How to remove 'router' option within a dhcpd group block (Adam Nielsen) 2. Re: How to remove 'router' option within a dhcpd group block (Sten Carlsen) ---------------------------------------------------------------------- Message: 1 Date: Thu, 30 Jun 2022 23:16:40 +1000 From: Adam Nielsen <a.niel...@shikadi.net> To: dhcp-users@lists.isc.org Subject: How to remove 'router' option within a dhcpd group block Message-ID: <20220630231640.0cbd8...@vorticon.teln.shikadi.net> Content-Type: text/plain; charset=US-ASCII Hi all, Does anyone know if there is a way to remove a router in a group block that was set in a subnet block, in the dhcpd config file? subnet 192.168.0.0 netmask 255.255.255.0 { option routers 1.2.3.4; } group { # Don't supply a router at all. option routers 0.0.0.0; host ... } Specifying 0.0.0.0 doesn't work, dhcpd still hands out 1.2.3.4 from the subnet section. Is there a way to tell it to drop that option completely within the group section? My reason for asking is that I have some devices that like to phone home, and while I can block them at the router it would be nice not to even have them try to connect to the router at all. Many thanks, Adam. ------------------------------ Message: 2 Date: Thu, 30 Jun 2022 16:29:58 +0200 From: Sten Carlsen <st...@s-carlsen.dk> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: How to remove 'router' option within a dhcpd group block Message-ID: <8035a103-b3dd-4749-9491-58b73b0a3...@s-carlsen.dk> Content-Type: text/plain; charset=us-ascii > On 30 Jun 2022, at 15.16, Adam Nielsen <a.niel...@shikadi.net> wrote: > > Hi all, > > Does anyone know if there is a way to remove a router in a group block > that was set in a subnet block, in the dhcpd config file? I put the router option in each pool, probably it will also work in groups. This works for me. > > subnet 192.168.0.0 netmask 255.255.255.0 { > option routers 1.2.3.4; > } > > group { > # Don't supply a router at all. > option routers 0.0.0.0; > > host ... > } > > Specifying 0.0.0.0 doesn't work, dhcpd still hands out 1.2.3.4 from the > subnet section. > > Is there a way to tell it to drop that option completely within the > group section? > > My reason for asking is that I have some devices that like to phone > home, and while I can block them at the router it would be nice not to > even have them try to connect to the router at all. > > Many thanks, > Adam. > -- > ISC funds the development of this software with paid support subscriptions. > Contact us at https://www.isc.org/contact/ for more information. > > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ Subject: Digest Footer _______________________________________________ ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 165, Issue 1 ******************************************