[TriLUG] dhclient and iptables

Ken Mink kmtrilug at nc.rr.com
Mon Jun 16 10:48:39 EDT 2003


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 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20030616/ffbc2833/attachment.pgp>


More information about the TriLUG mailing list