Refuse RFC1918 offers on DHCP WAN
-
On 2.3.x, if I want to reject DHCP offers from 192.168.100.0/24 how should that be entered?
When I try to enter it like this, it gets rejected for syntax:

-
I split this off since the other post was 3 years old and this is a different question.
You don't need to reject the entire subnet, just the DHCP server in that subnet, which is probably your modem at 192.168.100.1
-
Thanks Jim.Ā Ok, I know in a past version (maybe 2.2 or 2.1) it did accept a subnet there.Ā If it only accepts individual IPs now, the wording beneath the field should remove the "ā¦place the IP address or subnet of the DHCP serverā¦" since that is a bit confusing.
-
So you can not use subnet?Ā What if your isp has a bunch of dhcp servers on the same subnet you want to block and only accept IP from different set of dhcp servers?
I agree with luckman212 if you can not use subnet in some form of /cidr or whatever then the "or subnet" should prob be removed from the description ;)
" -
The text probably needs to be corrected. It may have allowed the entry before but I don't think it worked. According to the man page it only takes an IP address.
reject ip-address;
Ā Ā The reject statement causes the DHCP client to reject offers from
Ā Ā servers who use the specified address as a server identifier.
Ā Ā This can be used to avoid being configured by rogue or misconfig-
Ā Ā ured DHCP servers, although it should be a last resort - better
Ā Ā to track down the bad DHCP server and fix it. -
I pushed a change to fix the description so that it only lists IP address, not subnet.
-
Thanks!Ā I was about to submit my own PR but as I was about to push it, I noticed that you had already changed the text ;)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register LoginPrivacy Policy · Cookie Policy