Visit Our UNIX and Linux User Community


dhcpd-related questions


 
Thread Tools Search this Thread
Special Forums IP Networking dhcpd-related questions
# 1  
Old 09-12-2009
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: DHCPREQUEST for 24.229.xxx.xxx from 00:50:8b:XX:XX:XX via eth1: unknown lease 24.229.xxx.xxx.


this repeats over and over, wasting space with pointless logs. I don't want dhcpd listening to eth1 at all. I tried using iptables to block port 67 on eth1, but I'm guessing this isn't working because the requests are being generated and (unwantedly) answered by the same box. Can I somehow tell dhcpd to only bind to eth0? I'm sure I must be overlooking something simple here; maybe I just haven't searched the right terms to find an answer.

My other issue is, I want to be notified whenever dhcpd gives out a dynamic IP. I have swatch running, and it matches perfectly when a DHCPOFFER of one of an address from the dynamic range is made, but the mail swatch sends out only shows up much later... as long as an hour after the unknown client connected to my network. The idea is, if a friend is using my network or I am testing a new device that I haven't yet assigned a static IP to, I will ignore the notification (a SMS sent to my cell), but if I am not expecting it, I want to know because someone might have broken my wifi encryption (or broken into my garage and plugged into the LAN outside or whatever). It's technically functioning as-is, but not hearing about possible intrusions for up to an hour gives the bad guys a lot of time to download kiddie porn or pirated software under my identity. Anyone have a better solution or know a way to tweak swatch to text me instantly? I know it's not a delay in the mail, because I have other warnings sent to me (ssh from outside the LAN, for example) that have warned me of intruders within 30 seconds and had them banned and passwords changed before any real damage could be done.
# 2  
Old 09-18-2009
Quote:
Can I somehow tell dhcpd to only bind to eth0
Yes, you can. You can pass the interfaces that you want dhcpd to listen on as an argument on the dhcpd command line. Read the dhcpd man page for more information.

Check you dhcpd.conf file for a line like
Code:
DHCPDARGS="eth0 eth1"

# 3  
Old 09-21-2009
aha. it's actually in /etc/sysconfig/dhcpd that it goes. I knew there had to be something, but the manpages weren't making it clear what I needed to do. No more trying to respond to its own dhcp requests for the external interface. Thanks!

Previous Thread | Next Thread
Test Your Knowledge in Computers #274
Difficulty: Easy
OpenSolaris is a descendant of the UNIX System V Release 4 (SVR4) code base developed by Sun and AT&T in the late 1980s.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Questions related to if in awk context and if without awk context

I wrote this code, questions follow #! /bin/bash -f # Purpose - to show how if syntax is used within an awk clear; ls -l; echo "This will print out the first two columns of the inputted file in this directory"; echo "Enter filename found in this directory"; read input; ... (11 Replies)
Discussion started by: Seth
11 Replies

2. Red Hat

General questions related to patching and servers

Hi, Can you answer the following ? How to identify server is physical or virtual server ? Why often patching is done in servers ?What is the purpose of doing OS patching in servers. ? Regards, Maddy (5 Replies)
Discussion started by: Maddy123
5 Replies

3. Shell Programming and Scripting

need downloading related help...but its not related to unix

Hi All, I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file See the below link- http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs- Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies

4. UNIX for Dummies Questions & Answers

Access file ownership related questions

I have two issues; any help regarding this would be highly appreciated. We deployed a file abc using pqr id. So the owner is of abc file (shell script) is pqr'. However, abc file is executed by ESP event and uses the id xyz'. When the file abc is executed the owner of... (9 Replies)
Discussion started by: clearC
9 Replies

5. Solaris

Questions related to ndd commands

Hello Gurus I would like to know more about ndd commands related to ethernet(NIC) like how to set link_status, link_speed & link_mode as I know how to check these value. And I also would like to know how to make these setting permanents after reboot as I know that these setting will vanish... (5 Replies)
Discussion started by: amity
5 Replies

6. 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

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. UNIX for Dummies Questions & Answers

few new bie questions related to gdb , telnet

Hi All, 1. how to what is the current line we are executing. List command will display the 10 lines by default. 2. how to put a pointer to the current excuting line when executing the list. 2. if i have set one break point and i want to set 2nd break point do i need to delete the first break... (1 Reply)
Discussion started by: gauri
1 Replies

9. 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

10. 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

Featured Tech Videos