The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Access file ownership related questions clearC UNIX for Dummies Questions & Answers 9 04-16-2009 12:36 PM
Questions related to ndd commands amity SUN Solaris 5 01-11-2009 07:52 AM
few new bie questions related to gdb , telnet gauri UNIX for Dummies Questions & Answers 1 04-22-2006 10:59 AM
dhcpd.conf keliy1 Linux 1 11-17-2004 04:05 PM
dhcpd Esaia UNIX for Advanced & Expert Users 2 04-11-2003 03:41 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-12-2009
NESter NESter is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 6
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 (permalink)  
Old 09-18-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,921
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 (permalink)  
Old 09-21-2009
NESter NESter is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 6
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!
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0