[prev in list] [next in list] [prev in thread] [next in thread]
List: netfilter
Subject: Re: macro & iptables
From: /dev/rob0 <rob0 () gmx ! co ! uk>
Date: 2005-08-31 14:23:17
Message-ID: 200508310923.17998.rob0 () gmx ! co ! uk
[Download RAW message or body]
On Wednesday 2005-August-31 09:13, Agung 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" ?
Not to my knowledge. I don't think that design is as robust. iptables
works entirely in the kernel memory. You can actually crash the OS, but
the netfilter code will continue passing packets.
> or i should use some bash scripting ?
Yes:
#OPTIONS and TARGET must be set
while read IP ; do
iptables $OPTIONS $IP $TARGET
done < /etc/iplist.txt
> thank you for your assistance :-)
np
--
mail to this address is discarded unless "/dev/rob0"
or "not-spam" is in Subject: header
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic