From owner-freebsd-isp@FreeBSD.ORG Sat Dec 20 12:57:16 2003 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8656316A4CE for ; Sat, 20 Dec 2003 12:57:16 -0800 (PST) Received: from smtp-ft4.fr.colt.net (smtp-ft4.fr.colt.net [213.41.78.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id D709043D49 for ; Sat, 20 Dec 2003 12:57:14 -0800 (PST) (envelope-from nanard@crystunix.com) Received: from thot (adm.crystunix.com [195.68.88.114]) by smtp-ft4.fr.colt.net with SMTP id hBKIHXu24885; Sat, 20 Dec 2003 19:17:33 +0100 Message-ID: <003101c3c725$8375aaf0$0201a8c0@thot> From: "nanard" To: "Arie J. Gerszt" , References: Date: Sat, 20 Dec 2003 19:17:11 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: Re: /etc/ipf.conf - ipfilter X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2003 20:57:16 -0000 Hi, I use IPF with Snort, and Guardian. Snort detects when there are port scan and Guardian adds the ip attacker to IPF. Snort is in ports tree. Guardian is free on http://www.chaotic.org/guardian/ To works with IPF, i had to change my IPF configuration: At the beginning on my rules, i put this: pass in from any to any keep state head 10 Then i ve my rules which block by default. For instance, #---------------- IN ICMP (30) - tl0 ---------- # block in log proto icmp all head 30 pass in quick proto icmp from any to X.Y.Z.W icmp-type 11 group 30 pass in quick proto icmp from A.B.C.D to X.Y.Z.W group 30 #----------------------------------# idem for OUT, and for IN/TCP, OUT/TCP, etc Then guardian, when it added an ip, it calls a script that i modified to be in group 10: echo "block in log $options on $interface from $source to any group 10" | /sbin/ipf -f - You can say to Guardian the time for a deny ip and the trusted ip. It s useful in the case of the attacker spoof your gateway for instance (it wont block it). I hope it can help you. Regards, ----- Original Message ----- From: "Arie J. Gerszt" To: Sent: Friday, December 19, 2003 10:17 PM Subject: /etc/ipf.conf - ipfilter > hi, > > i was just about to configure and fine tune mit /etc/ipf.conf and wondered, > what kind of settings you use on your servers. > > is anybody interested in exchanging about this topic? > > > thanks, > arie > > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" >