Tools How to ignore requests in dhcpd?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Tools How to ignore requests in dhcpd?
# 8  
Old 02-13-2013
Quote:
Originally Posted by DGPickett
I wonder why the via hosts are configured to send requests to you?
They probably are configured to be "bootp-relay-agents", as per the definition of RFC 1542 (respectively "bootp forwarding agents", as they are called in RFC951). This is the way router hardware usually behaves, because larger corporate networks usually rely on DHCP (which is a superset of the original bootp protocol).

I hope this helps.

bakunin
# 9  
Old 03-08-2013
Hi bakunin,
Indeed, all adresses like 172.16.xxx.2 are DHCP Relay.

Hi DGPickett,
I tried to setup a firewall with the help of the administrator but in the end, we had to give up because for some weird reason, the DHCP starts in a way that puts it before the netfilter. It is therefore impossible to filter anything.

Thanks for your help anyway.

Regards
Santiago
# 10  
Old 03-08-2013
Seems like some sort of re-order in startup files would change that. Not sure if it is firewall later to dig under dhcp or firewall earlier so dhcp slips in behind it. Usually firewalls slip in right by the NIC, wrap the NIC and provide a virtual NIC, so they cannot be preempted. Talk to the firewall provider.
# 11  
Old 03-08-2013
Quote:
Originally Posted by chebarbudo
Indeed, all adresses like 172.16.xxx.2 are DHCP Relay.

I tried to setup a firewall with the help of the administrator but in the end, we had to give up because for some weird reason, the DHCP starts in a way that puts it before the netfilter.
This is to be expected. Here is how DHCP works:

1. A client comes to life. It sends a DHCP-Request packet. This packet is a broadcast (the client has no idea who its server is) and has - of course - no IP-address. Therefore packet-filtering based on source- or target-addresses fall short.

2a. If there is a DHCP-server in the same subnet it will either do nothing (if it is not willing to give out a lease for whatever reason) or send a the ingredients for the new IP-interface (IP, SNM and whatever is configured in the option fields). This agan has to be a broadcast, because the interface still has no IP address at this time.

2b. If there is no DHCP-server on this net a router may be configured as "bootp-relay-agent". (bootp is a subset of DHCP, but essentially the same protocol). It will relay all the broadcasts involved in this case, otherwise see 2a.

3. Once the client receives the lease data, it configures its interface and sends a DHCP-ACK(nowledge) back to the server. The rest of the communication is normal IP-traffic, not broadcasts.

If you want to block DHCP you cannot base it on addresses, because there are none for a signifikant part of the communication (ecco!) and if you block it based on protocol you simply shut the aforementioned relay. This will block legitimate as well as unwanted DHCP traffic.

Seems like your only option - since the only problem you have seems to be your logs - is to filter these logs. I suggest some "grep -v".

I hope this helps.

bakunin
# 12  
Old 03-11-2013
Well, you could block on address zero, if that is not a metavalue in your tool, and UDP port 67 (BOOTP runs on top of UDP).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to ignore requests in dhcpd?

Hi there, I setup a dhcp server on a debian. It is designed to only assign ip addresses to a list of known hosts. The config file looks like : log-facility local6; ignore unknown-clients; subnet 172.16.0.0 netmask 255.255.0.0 { } host 1 { hardware ethernet 00:03:2d:xx:xx:xx; fixed-address... (3 Replies)
Discussion started by: chebarbudo
3 Replies

2. Linux

dhcpd failover with static IP

Hi I am a bit confused, I want to setup failover within dhcpd. There are multiple subnets and hosts with static IP's. however it seems I need to set up an IP range for the subnets for failover to work is this correct or am I missing something (1 Reply)
Discussion started by: eeisken
1 Replies

3. IP Networking

dhcpd-related questions

I have two items, only related because they are both regarding dhcpd. First of all, I keep seeing dhcpd responding to DHCPREQUESTs on eth1 which is my cable modem. For example: Sep 12 21:00:09 plague dhclient: DHCPREQUEST on eth1 to 204.186.xxx.xxx port 67 Sep 12 21:00:09 plague dhcpd:... (2 Replies)
Discussion started by: NESter
2 Replies

4. UNIX for Advanced & Expert Users

dhcpd - range parameter

Hi All, I'm curious about what this community would think about this portion of a dhcpd.conf file: subnet 192.168.1.0 netmask 255.255.255.0 { ... ...other parameters/options... ... range 192.168.1.3 192.168.1.253 range 172.16.0.2 172.16.0.50 } I tested this and dhcpd did not barf... (2 Replies)
Discussion started by: Keene44
2 Replies

5. IP Networking

dhcpd - range parameter

Hi All, I'm curious about what this community would think about this portion of a dhcpd.conf file: subnet 192.168.1.0 netmask 255.255.255.0 { ... ...other parameters/options... ... range 192.168.1.3 192.168.1.253 range 172.16.0.2 172.16.0.50 } I tested this and dhcpd did not barf... (1 Reply)
Discussion started by: Keene44
1 Replies

6. Linux

dhcpd - range parameter

Hi All, I'm curious about what this community would think about this portion of a dhcpd.conf file: subnet 192.168.1.0 netmask 255.255.255.0 { ... ...other parameters/options... ... range 192.168.1.3 192.168.1.253 range 172.16.0.2 172.16.0.50 } I tested this and... (1 Reply)
Discussion started by: Keene44
1 Replies

7. UNIX for Advanced & Expert Users

dhcpd password

I want to change the password for dhcpd so I can give it to the dhcp operator to handle dhcp server. however, when I use passwd to change the password, it prompt me with changing password for dhcpd. old password: my question is that I have never set dhcpd password before, so what is the old... (1 Reply)
Discussion started by: fredao
1 Replies

8. Linux

dhcpd.conf

I have intall a REdhat 9.0 as a server and Ive configure to act as a DHCP however Im having technical problems b/c the file /etc/dhcpd.conf does not exists. I went to the text edit and I created : subnet 192.192.168.100.0 netmask 255.255.255.0 { range 192.168.100.10 192.168.100.150;... (1 Reply)
Discussion started by: keliy1
1 Replies

9. UNIX for Advanced & Expert Users

dhcpd

(GNU/Linux) Ain't it possible to force dhcpd to NOT send any DHCP Offers on a specific interface? I dont want dhcpd to answer on eth0 but do answer on eth1. best regards /Esaia (2 Replies)
Discussion started by: Esaia
2 Replies
Login or Register to Ask a Question