From mboxrd@z Thu Jan 1 00:00:00 1970 From: /dev/rob0 Subject: Re: macro & iptables Date: Wed, 31 Aug 2005 09:23:17 -0500 Message-ID: <200508310923.17998.rob0@gmx.co.uk> References: <20050831141346.53535.qmail@web53301.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050831141346.53535.qmail@web53301.mail.yahoo.com> Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org 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 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