From owner-freebsd-questions Wed Sep 26 10:12: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.tecdigital.net (tecdigital.tol.itesm.mx [132.254.97.16]) by hub.freebsd.org (Postfix) with SMTP id ECA0A37B429 for ; Wed, 26 Sep 2001 10:11:58 -0700 (PDT) Received: (qmail 5553 invoked from network); 26 Sep 2001 17:11:38 -0000 Received: from localhost (HELO Compilar) (madd@127.0.0.1) by localhost with SMTP; 26 Sep 2001 17:11:38 -0000 Message-ID: <010c01c146ae$82867bf0$1ea5190a@Compilar> From: "mario" To: , References: <20010926125951.E19847-100000@bsd.smnolde.com> Subject: Re: dhcp & cable, @home (help me fight the MS monopoly) Date: Wed, 26 Sep 2001 12:13:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Read /sbin/dhclient-script (its a text file) You can add this to /etc/dhclient-exit-hooks: #!/bin/sh and then chmod +x /etc/dhclient-exit-hooks Mario ----- Original Message ----- From: To: 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