From: Rowan Reid <rreid@studio3arc.com>
To: seberino@spawar.navy.mil, netfilter@lists.netfilter.org
Subject: RE: How filter IP address if it *changes* often?? (think dhcp)
Date: Wed, 28 Mar 2001 08:51:59 -0800 [thread overview]
Message-ID: <001a01c0b7a7$6804a450$1001a8c0@s3ac> (raw)
In-Reply-To: <20030327200056.A18916@spawar.navy.mil>
> How do this if IP address changes uncontrollably
> like with DHCP??
The following sh script will extract the ip address of the external
interface. If the address changes forcable ie not just when you renew
your lease volentarily then run the script on cron
$IFCONFIG = /path/ifconfig
$EXTIF = ppp0 or whatever
$AWK=/patch/awk
EXTIP="`$IFCONFIG $EXTIF | $AWK \
/$EXTIF/'{next}//{split($0,a,":");split(a[2],a," ");print a[1];exit}'`"
next prev parent reply other threads:[~2001-03-28 16:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 4:00 How filter IP address if it *changes* often?? (think dhcp) seberino
2001-03-28 16:51 ` Rowan Reid [this message]
2003-03-28 4:16 ` Steve Mickeler
2003-03-28 6:26 ` seberino
2003-03-28 8:15 ` Michael K
2003-03-28 9:31 ` Kim Jensen
2003-03-28 15:11 ` Joel Newkirk
-- strict thread matches above, loose matches on Subject: below --
2003-03-28 19:06 Tomasz Korycki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001a01c0b7a7$6804a450$1001a8c0@s3ac' \
--to=rreid@studio3arc.com \
--cc=netfilter@lists.netfilter.org \
--cc=seberino@spawar.navy.mil \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox