[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter
Subject:    Fwd: macro & iptables
From:       Edmundo Carmona <eantoranz () gmail ! com>
Date:       2005-08-31 14:35:57
Message-ID: 65aa6af9050831073513cd91a4 () mail ! gmail ! com
[Download RAW message or body]

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
>
>
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic