Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Tim Evans" <tkevans@tkevans.com>
To: Antony Stone <Antony@Soft-Solutions.co.uk>,
	"Netfilter lista (iptables)" <netfilter@lists.netfilter.org>
Subject: Re: iptables for ADSL
Date: Fri, 21 Nov 2003 15:40:08 -0400	[thread overview]
Message-ID: <20031121194008.M88686@tkevans.com> (raw)
In-Reply-To: <200311211929.hALJTXj29569@agate.rockstone.co.uk>

On Fri, 21 Nov 2003 19:29:28 +0000, Antony Stone wrote
> On Friday 21 November 2003 7:25 pm, Alejandro Cabrera Obed wrote:
> 
> > Hi people !!!
> >
> > I have a basic doubt: I want to connect my Linux with iptables to Intrenet
> > via ADSL. Just one question:
> >
> > Do I have to set
> > echo "1" > /proc/sys/net/ipv4/ip_dynadrr
> > in order to work with dynamic addresses asigned by my ISP ????

You just need to capture your dynamically assigned IP address at iptables
startup time and use it in your rules.  I have the following variable
assignment in my RH 7.3 startup sdript (all one line):

INET_IP=`ifconfig eth1 | grep 'inet addr' | awk -F":" '{print $2}' | sed 's/ 
Bcast//'`

Then just use $INET_IP in your rules.
--
Tim Evans, TKEvans.com, Inc.    |    5 Chestnut Court
tkevans@tkevans.com             |    Owings Mills, MD 21117
http://www.tkevans.com/         |    443-394-3864
http://www.come-here.com/News/  |    



  reply	other threads:[~2003-11-21 19:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 19:25 iptables for ADSL Alejandro Cabrera Obed
2003-11-21 19:29 ` Antony Stone
2003-11-21 19:40   ` Tim Evans [this message]
2003-11-21 20:47 ` Ramin Dousti

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=20031121194008.M88686@tkevans.com \
    --to=tkevans@tkevans.com \
    --cc=Antony@Soft-Solutions.co.uk \
    --cc=netfilter@lists.netfilter.org \
    /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