[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-client
Subject:    weirdness with dhclient 2.0-
From:       jason <jason () welsh ! dynip ! com>
Date:       2000-04-04 19:17:53
[Download RAW message or body]

   *** From dhcp-client -- To unsubscribe, see the end of this message. ***

here is my /etc/dhclient.conf
# $FreeBSD: src/etc/dhclient.conf,v 1.2 1999/08/27 23:23:41 peter Exp $
#
#       This file is required by the ISC DHCP client.
#       See ``man 5 dhclient.conf'' for details.
#
#       In most cases an empty file is suffient for most people as the
#       defaults are usually fine.
#                                     

and here is (some of) my /etc/dhclient-exit-hooks
fwcmd="/sbin/ipfw"
ISP_IP=`ifconfig xl0 |grep 'inet'| awk '{print $2}' | grep -v :`
#natd -unregistered_only -alias_address $ISP_IP
#echo $ISP_IP
###########
# Flush out the list before we begin.
$fwcmd -f flush
$fwcmd add divert natd all from any to any via xl0
$fwcmd add allow ip from any to any via lo0  
..More firewall commands....
$fwcmd add allow icmp   from any              to any
$fwcmd add deny log ip  from any              to $ISP_IP  

regards,
Jason


--
=======================================================================
|  Jason Welsh   jason@welsh.dynip.com   |   If you think there's     |
|                                        |   good in everybody, you   |
|      http://welsh.dynip.com/           |   haven't met everybody.   |
=======================================================================



-----------------------------------------------------------------------
To unsubscribe from this list, visit http://www.isc.org/dhcp-lists.html
or send mail to dhcp-client-request@isc.org with the subject line of
'unsubscribe'.
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic