Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Edmundo Carmona <eantoranz@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Fwd: macro & iptables
Date: Wed, 31 Aug 2005 10:35:57 -0400	[thread overview]
Message-ID: <65aa6af9050831073513cd91a4@mail.gmail.com> (raw)
In-Reply-To: <65aa6af905083107354ca663e0@mail.gmail.com>

you have a list of IPs? say, for example, you want to accept those IPs
for input (one IP per line). I guess this will work:

cat /etc/iplist.txt | while read anIP; do
    iptables -A INPUT -s $anIP -j ACCEPT
done;

On 8/31/05, Agung <duppeh@yahoo.com> wrote:
> let say... i have lists of ip in /etc/iplist.txt
> is it possible to call that list, like perhaps in pf
> table <ip> persist file "/etc/iplist.txt" ?
> or i should use some bash scripting ?
> thank you for your assistance :-)
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
>
>


  parent reply	other threads:[~2005-08-31 14:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-31  3:55 macro & iptables Agung
2005-08-31 11:29 ` /dev/rob0
2005-08-31 14:13   ` Agung
2005-08-31 14:23     ` /dev/rob0
     [not found]     ` <65aa6af905083107354ca663e0@mail.gmail.com>
2005-08-31 14:35       ` Edmundo Carmona [this message]
2005-09-01  3:13         ` Fwd: " Agung
2005-09-08 21:08 ` Kenneth Kalmer

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=65aa6af9050831073513cd91a4@mail.gmail.com \
    --to=eantoranz@gmail.com \
    --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