Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2001 12:13:06 -0500
From:      "mario" <admin@tecdigital.net>
To:        <scott@smnolde.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: dhcp & cable, @home (help me fight the MS monopoly)
Message-ID:  <010c01c146ae$82867bf0$1ea5190a@Compilar>
References:  <20010926125951.E19847-100000@bsd.smnolde.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Read /sbin/dhclient-script (its a text file)

You can add this to /etc/dhclient-exit-hooks:
#!/bin/sh
<whatever you need>

and then chmod +x /etc/dhclient-exit-hooks

Mario


----- Original Message ----- 
From: <scott@smnolde.com>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Wednesday, September 26, 2001 12:04 PM
Subject: Re: dhcp & cable, @home (help me fight the MS monopoly)


> >This seems the hard way.  I am in the process (a long one,
>  >unfortunately) of switching from a RH6.2 system to a FreeBSD system on
>  >my cable modem with AT&T Broadband.  The DHCP thing is one of my
>  >holdups.  I know that with dhcpcd distributed with Linux (not pump)
>  >it is easy to get a script executed every time you get a lease/renewal
>  >from the server.  Why wouldn't the FreeBSD dhcp client do the same
>  >thing?   This would allow you to reset your firewall automatically.
>  >
>  >If I care to, I can get my Linux box to play a sound file, send an
>  >email, or ping another system, or whatever, anytime I get a lease or
>  >renewal from the dhcp server.  Of course, I really only have the
>  >firewall reset and a modification to the /etc/hosts file so I can just
>  >look there for my IP.
>  >
>  >Any other behavior kinda rubs against the 'dynamic' in dhcp :)  You
>  >shouldn't have to do anything.  That's the point.  And saying that
>  >this service or that one doesn't work with FreeBSD, or Linux, or
>  >Joe's_Favorite_OS, is bull.  The DHCP protocol is pretty well defined,
>  >and it is unlikely they are running a server that doesn't comply.  So
>  >as long as the FreeBSD client complies, it is *only* a matter of
>  >configuration.
>  >
>  >My only issue is finding the mechanism to reset the firewall when I
>  >get a lease and fix the IP in /etc/hosts.  Once I do that, the Linux
>  >box gets retired.
>  >
>  >Just my $0.02.
> 
> I've been using FreeBSD as a router and firewall with mediaone.net for
> nearly 100 days without any problems.  My IP hasn't changed once yet.
> natd handles dynamic IP addresses and any firewall can be scripted to
> determine its own interface IP address.
> 
> My ipfw firewall script uses the following line to determine its IP
> address: oip=`/sbin/ifconfig dc0 | grep inet | awk '{print $2}'`
> 
> If you have a problem when your IP address changes often, you can always
> cron the firewall script.
> 
> Nothin' to it.
> 
> - Scott
> 
>  >
>  >Lou
>  >--
>  >Louis LeBlanc       leblanc@acadia.ne.mediaone.net
>  >Fully Funded Hobbyist, KeySlapper Extrordinaire :)
>  >http://acadia.ne.mediaone.net
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?010c01c146ae$82867bf0$1ea5190a>