Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP security

Reply
Thread Tools Display Modes

DHCP security

 
 
danielv
Guest
Posts: n/a

 
      08-02-2006, 02:21 PM
Hello,
I currently admin a small network of about 12 clients, all with fixed
ip schemas. Since this network is only growing to include more and more
clients I was thinking of using a DHCP server to handle ip
configuration on new clients. Ive already got that working. But my main
concern is how do you stop a rogue DHCP server from getting on the
network and giving fake information to some clients? And how about
unauthorized clients?

Any ideas? thanks.

 
Reply With Quote
 
 
 
 
Ken Roberts
Guest
Posts: n/a

 
      08-02-2006, 03:26 PM

danielv wrote:
> Hello,
> I currently admin a small network of about 12 clients, all with fixed
> ip schemas. Since this network is only growing to include more and more
> clients I was thinking of using a DHCP server to handle ip
> configuration on new clients. Ive already got that working. But my main
> concern is how do you stop a rogue DHCP server from getting on the
> network and giving fake information to some clients? And how about
> unauthorized clients?
>
> Any ideas? thanks.



The later part is easy:

host me { hardware ethernet 00.11.22.33.44.55.66; }

subnet .... {
deny unknown-clients;
...
}

If you like, you can put in a fixed-address statement on each host
statement, so in that case you've made static networking configurations
and simply moved them all to the same computer.

The rogue DHCP server could be a problem for a small network, but at
least you won't have hundreds of machines to check over if it happens.

 
Reply With Quote
 
Skylar Thompson
Guest
Posts: n/a

 
      08-02-2006, 05:05 PM
On 2 Aug 2006 07:21:50 -0700, danielv <(E-Mail Removed)> wrote:
> Hello,
> I currently admin a small network of about 12 clients, all with fixed
> ip schemas. Since this network is only growing to include more and more
> clients I was thinking of using a DHCP server to handle ip
> configuration on new clients. Ive already got that working. But my main
> concern is how do you stop a rogue DHCP server from getting on the
> network and giving fake information to some clients? And how about
> unauthorized clients?
>
> Any ideas? thanks.


It's difficult, because DHCP is a broadcast protocol. The way I've done it
is to have the servers on one physically-protected network and everything
else on one or more other networks. This allows you to do DHCP forwarding
on the switches (assuming they're managed), which you can setup to only
point to a server in the protected network.

--
-- Skylar Thompson ((E-Mail Removed))
-- http://www.cs.earlham.edu/~skylar/
 
Reply With Quote
 
danielv
Guest
Posts: n/a

 
      08-03-2006, 10:41 PM
Thanks for the replies, I'll look into that.

Skylar Thompson wrote:
> On 2 Aug 2006 07:21:50 -0700, danielv <(E-Mail Removed)> wrote:
> > Hello,
> > I currently admin a small network of about 12 clients, all with fixed
> > ip schemas. Since this network is only growing to include more and more
> > clients I was thinking of using a DHCP server to handle ip
> > configuration on new clients. Ive already got that working. But my main
> > concern is how do you stop a rogue DHCP server from getting on the
> > network and giving fake information to some clients? And how about
> > unauthorized clients?
> >
> > Any ideas? thanks.

>
> It's difficult, because DHCP is a broadcast protocol. The way I've done it
> is to have the servers on one physically-protected network and everything
> else on one or more other networks. This allows you to do DHCP forwarding
> on the switches (assuming they're managed), which you can setup to only
> point to a server in the protected network.
>
> --
> -- Skylar Thompson ((E-Mail Removed))
> -- http://www.cs.earlham.edu/~skylar/


 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      08-04-2006, 12:29 AM
On 2 Aug 2006, in the Usenet newsgroup comp.os.linux.networking, in article
<(E-Mail Removed) .com>, danielv wrote:

>I currently admin a small network of about 12 clients, all with fixed
>ip schemas. Since this network is only growing to include more and more
>clients I was thinking of using a DHCP server to handle ip
>configuration on new clients.


Why? DHCP is OK if you have no one who knows how to set up computers
and you have computers coming and going, but it takes under a minute
to statically configure _any_ OS, and it only needs to be done once.

>Ive already got that working. But my main concern is how do you stop a
>rogue DHCP server from getting on the network and giving fake information
>to some clients?


Yeah, that's always been a weakness in DHCP since the BOOTP protocol
before it. You could set up a system to monitor for DHCP packets, and
alarm if anything other than your DHCP server responds, but setting
that up to work reliably isn't going to be simple.

>And how about unauthorized clients?


[compton ~]$ whatis arpwatch
arpwatch (8) - keep track of ethernet/ip address pairings
[compton ~]$

Again, not foolproof. We monitor that, as well as the ARP tables on
several servers, the routers, and the managed switches. We know the
MAC and IP address pairing of all systems as well as which network drop
they are supposed to be on. We also do NOT have 'live' network drops
unused. They are disabled at the switches when a computer is removed
from the drop. We also monitor packets on the network on a random basis
to detect someone running a NAT box (IP Masquerade).

You're in Brazil, and I'm not familiar with the legal climate there. Here
in USA, it behooves you to have written policies in place, approved by
your legal people, and acknowledged by ALL employees (signed copies in
the personnel files). There are large signs at all building entrances
reminding all of these policies.

Old guy
 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      08-04-2006, 12:03 PM
"danielv" <(E-Mail Removed)> said:
>I currently admin a small network of about 12 clients, all with fixed
>ip schemas. Since this network is only growing to include more and more
>clients I was thinking of using a DHCP server to handle ip
>configuration on new clients. Ive already got that working. But my main
>concern is how do you stop a rogue DHCP server from getting on the
>network and giving fake information to some clients? And how about
>unauthorized clients?


As "Old guy" wrote, you could monitor your network for DHCP responses
originated by other than your official server(s).

As for unauthorized clients, using DHCP doesn't actually change the
situation; there are a few things you could do (depending on your
hardware):
- keep switch ports disabled by default
- when opening switch ports, lock them to a single MAC address

.... but especially the latter of the two tends to be more nuisance than
help. However, a written, approved, and legally binding policy would
be one of the first things to have - just to make everyone in the
company aware that there are rules, and bending/breaking the rules will
not be tolerated. Of course, policy alone isn't enough - but without
a policy any technical obstacle is just an invitation to circumvent it.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
Baho Utot
Guest
Posts: n/a

 
      08-05-2006, 01:03 AM
Moe Trin wrote:

[putolin]

>
> We also monitor packets on the network on a random basis
> to detect someone running a NAT box (IP Masquerade).
>


Can you explain how this is done?

--
Dancin' in the ruins tonight
mail: echo onub-(E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
Tayo'y Mga Pinoy
 
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
Security on public network via DHCP sbnet ? Larrycoe Windows Networking 4 12-06-2006 04:26 AM
Network security, DHCP, and Linux jqpx37@iprive.com Linux Networking 13 07-08-2006 05:02 PM
Redhat 9.0 dhcp client & windows 2003 dhcp server: dynamic dns update Mads Ravn Linux Networking 0 06-29-2004 05:27 PM
routing security with DHCP Brian D Linux Networking 2 02-24-2004 01:08 AM



1 2 3 4 5 6 7 8 9 10 11