Skip to contentSkip to conversation

Hello New MAC / DHCP Request - How to spot the presents of

LARTC Don Gould 2 participants 2 messages Jul 7, 2006 – Jul 8, 2006

lore
Share & tools
lore

Don Gould

author
#0 lore raw

Hi All,

How do I find out about new new DHCP connections as they appear?

I want to write a script that will do some stuff based on a new ip request from a machine on my lan.

ie - new user connects to the lan, DHCP server on my Linux (debian) gateway gives them an IP, my script is run automatically to change the firewall rules and start recording their presents, or if it's an unknown user it will add their MAC to a list of unknown users.

More details of the application can be seen here:
http://www.tcn.bowenvale.co.nz/component/option,com_wrapper/Itemid,23/

Cheers Don

Signature · 5 lines
Don Gould
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz -
www.bowenvale.co.nz - SkypeMe:  ThinkDesignPrint
Upcoming events:  Software Freedom Day - 16 September 2006 -
www.softwarefreedomday.org

begin:vcard
fn:Don Gould
n:Gould;Don
org:Bowenvale Communications
adr:Riccarton;;2/59 Peverel Street;Christchurch;;8004;New Zealand email;internet:[email protected]
title:Director
tel;work:+64 3 348 7235
tel;home:+64 3 348 7235
tel;cell:+64 21 114 0699
url:http://www.bowenvale.co.nz
version:2.1
end:vcard

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

Re: [LARTC] Hello New MAC / DHCP Request - How to spot the presents

Quoted 4 lines · Don Gould

ie - new user connects to the lan, DHCP server on my Linux (debian) gateway gives them an IP, my script is run automatically to change the firewall rules and start recording their presents, or if it's an unknown user it will add their MAC to a list of unknown users.

I'm sure you could engineer something really impressive, but you could probably get away with a lot less effort by simply tailing whatever dhcpd logs to (possibly /var/log/messages).

Ciao,
Sheldon.

Signature · 9 lines
Sheldon Hearn
IT Director
Clue Technologies (PTY) Ltd

Web:		http://www.clue.co.za/
Mail:		[email protected]
Office:		+27-21-913-8840
Mobile:		+27-83-564-3276
Timezone:	SAST (+0200)

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc