If you're using dhclient, then put the commands you want executed in '/etc/dhclient-exit-hooks'. This script is automatically executed by dhclient after it's done it's other processing.
'man dhclient-script' will give you more info. Ken On Sat, 2003-06-14 at 02:00, BSmith wrote: > I'm currently running Debian and I'm in the process of setting up iptables. > I seem to have run into a little problem, however. I would like to be able > to use my IP address in my rule set, but since my IP address is dished out > by a DHCP server every time I receive a new lease my old rule set is moot. > I was searching around for a bit and noticed that there is an option with > the pump DHCP client to execute a script anytime the client receives a new > DHCP lease. Is there a way to do something similar with dhclient or is > there another possible work around? > > Thanks for the help. > > _______________________________________________ > TriLUG mailing list > http://www.trilug.org/mailman/listinfo/trilug > TriLUG Organizational FAQ: > http://www.trilug.org/faq/TriLUG-faq.html -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."--Benjamin Franklin " 'Necessity' is the plea for every infringement of human liberty; it is the argument of tyrants; it is the creed of slaves."--William Pitt
signature.asc
Description: This is a digitally signed message part
