From owner-freebsd-security Tue Oct 16 1:15:51 2001 Delivered-To: freebsd-security@freebsd.org Received: from internethelp.ru (wh.internethelp.ru [212.113.112.145]) by hub.freebsd.org (Postfix) with ESMTP id 34C4E37B408 for ; Tue, 16 Oct 2001 01:15:43 -0700 (PDT) Received: from IBMKA (ibmka.internethelp.ru. [192.168.0.6]) by internethelp.ru (8.9.3/8.9.3) with ESMTP id MAA06786; Tue, 16 Oct 2001 12:15:36 +0400 (MSD) Date: Tue, 16 Oct 2001 12:14:58 +0400 From: "Nickolay A.Kritsky" X-Mailer: The Bat! (v1.49) Personal Reply-To: "Nickolay A.Kritsky" X-Priority: 3 (Normal) Message-ID: <4263631096.20011016121458@internethelp.ru> To: "Yuri Muhitov" Cc: freebsd-security@FreeBSD.ORG Subject: Re: Using IPFW with dynamic IP In-reply-To: <2E8E747BA4D4994CB49D56AF57F1728208B28B@adv.KOSTASOFT.kostasoft.spb.ru> References: <2E8E747BA4D4994CB49D56AF57F1728208B28B@adv.KOSTASOFT.kostasoft.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hello Yuri, Tuesday, October 16, 2001, 11:51:43 AM, you wrote: YM> Hi all! YM> I use dial-up and my ISP assigns IP addresses dynamically. YM> How can I compose IPFW rules? YM> 1. Which variable can I use in IPFW configuration script to designate my YM> dynamic IP? YM> 2. Can I call my IPFW configuration script automatically when dynamic IP is YM> assigned? YM> All manuals which I have describe IPFW configuration using static IP. YM> Any help is highly appreciated. YM> Yuri. add following lines in your /etc/rc.firewall script: if [ "x$external_ip" != "x" ] #here come all Internet-related rules fi after establishing dial-up connection and aquiring dynamic ip, call `external_ip = dynamic_ip ; export external_ip ; /bin/sh /etc/rc.firewall' Hope that helps ;------------------------------------------- ; NKritsky ; SysAdmin InternetHelp.Ru ; http://www.internethelp.ru ; mailto:nkritsky@internethelp.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message