Networking Forums

Networking Forums > Computer Networking > Linux Networking > Filtering DHCP Requests so that ICS DHCPD don't get them

Reply
Thread Tools Display Modes

Filtering DHCP Requests so that ICS DHCPD don't get them

 
 
stokkeland@gmail.com
Guest
Posts: n/a

 
      06-30-2006, 06:27 PM
Scenario:
Mobile System with two nic's,
firewall and NAT serving DHCP and some services to internal network
Getting external IP with dhcp client.

Issue:
dhcpd replies "DHCPNAK" to external interface

Config:
ICS dhcpd requires all available nic subnets to be configured, but when
a range does not have any options, the server sends a DHCPNAK, which is
bad when I hook this system up on network which already have dhcp
servers serving that range..
I have tried various things with IP tables blocking udp 67/68, but I
can not seem to find a way to allow my system to be a dhcp client on
the outside network while blocking traffic or not responding at all as
a dhcp server on that side...

Anyone solved this before?
My tests are a bit bozarre as it looks like when I drop all udp 67/68
packets are still reaching dhcpd..

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      06-30-2006, 06:56 PM
(E-Mail Removed) wrote:
> Scenario:
> Mobile System with two nic's,
> firewall and NAT serving DHCP and some services to internal network
> Getting external IP with dhcp client.
>
> Issue:
> dhcpd replies "DHCPNAK" to external interface
>
> Config:
> ICS dhcpd requires all available nic subnets to be configured, but when
> a range does not have any options, the server sends a DHCPNAK, which is
> bad when I hook this system up on network which already have dhcp
> servers serving that range..
> I have tried various things with IP tables blocking udp 67/68, but I
> can not seem to find a way to allow my system to be a dhcp client on
> the outside network while blocking traffic or not responding at all as
> a dhcp server on that side...
>
> Anyone solved this before?
> My tests are a bit bozarre as it looks like when I drop all udp 67/68
> packets are still reaching dhcpd..
>


Tell the daemon at start which interfaces to handle, so
thet it does not attemp to handle the external network
interface.

For details, see the daemon documentation.

My dhcpd3 is started:

/usr/sbin/dhcpd3 -q eth1

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
Stoker
Guest
Posts: n/a

 
      06-30-2006, 08:02 PM
> > Scenario:
> > Mobile System with two nic's,
> > firewall and NAT serving DHCP and some services to internal network
> > Getting external IP with dhcp client.
> >
> > Issue:
> > dhcpd replies "DHCPNAK" to external interface
> >
> > Config:
> > ICS dhcpd requires all available nic subnets to be configured, but when
> > a range does not have any options, the server sends a DHCPNAK, which is
> > bad when I hook this system up on network which already have dhcp
> > servers serving that range..
> > I have tried various things with IP tables blocking udp 67/68, but I
> > can not seem to find a way to allow my system to be a dhcp client on
> > the outside network while blocking traffic or not responding at all as
> > a dhcp server on that side...
> >
> > Anyone solved this before?
> > My tests are a bit bozarre as it looks like when I drop all udp 67/68
> > packets are still reaching dhcpd..

>
> Tell the daemon at start which interfaces to handle, so
> thet it does not attemp to handle the external network
> interface.
>
> /usr/sbin/dhcpd3 -q eth1


Actually, that doesn't help, it looks like dhcpd looks at all local
configured if's anyway and requires an emptry config...

But I think I got it solved so it don't reply at all to those
inqueries, a bit of my own rtfm fault here; some of the global options
in the default (debian) config needed to be moved to inside the active
scope, after doing that dhcpd logs that it didnt have any address to
give out and simply ignbores it (instead of sending a NAK like
before)..

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP requests for renew roshak31 Windows Networking 2 03-10-2008 08:31 AM
W2K3 DHCP Server Ignores Requests Nolan Windows Networking 1 10-11-2006 07:36 AM
DNS requests filtering Augustus SFX van Dusen Linux Networking 6 07-28-2006 08:35 AM
Ignore DHCP requests from Cisco IP phones Surety Windows Networking 3 07-20-2006 01:01 AM
WAP11 + BEFSX41 + DHCP server requests Phil Schuman Wireless Internet 11 02-22-2004 02:51 PM



1 2 3 4 5 6 7 8 9 10 11