From: Alistair Tonner Subject: Re: Why would these rules cause errors only sometimes? Date: Thu, 24 Oct 2002 18:00:39 -0400 Sender: netfilter-admin@lists.netfilter.org Message-ID: <20021024220039.GA1068@Ajftl1.ajfthome.on.ca> References: <20021024074429.90347.qmail@web40708.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <20021024074429.90347.qmail@web40708.mail.yahoo.com>; from natasha3641@yahoo.com on Thu, Oct 24, 2002 at 03:44:29 -0400 Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; format="flowed"; charset="us-ascii" To: Tasha Smith Cc: netfilter@lists.netfilter.org This line will grab your current IP off the ppp0 link -- INET_IP=`ifconfig ppp0|grep P-t-P|awk -F : '{ print $2 }'|cut -d \ -f 1`; this line will grab your current IP off any ethx link INET_IP=`ifconfig eth[x]|grep "inet addr"|awk -F : '{ print $2 }'|cut -d \ -f 1`; change the above to suit your needs ... Alistair On 2002.10.24 03:44 Tasha Smith wrote: > > ---OK...but the only problem is i have a DYNAMIC ip adress. Soo it > changes and > soo if i put an Ip adress i have right now in my script where eth0 is > it will > change and then it will block me from the net? How can i get it to > update my ip > adress in script when it changes! > > > __________________________________________________ > Do you Yahoo!? > Y! Web Hosting - Let the expert host your web site > http://webhosting.yahoo.com/ > >