From owner-freebsd-questions@FreeBSD.ORG Sat Sep 15 21:18:18 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A29216A417 for ; Sat, 15 Sep 2007 21:18:18 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id 4689113C461 for ; Sat, 15 Sep 2007 21:18:18 +0000 (UTC) (envelope-from agus.262@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2398289pyb for ; Sat, 15 Sep 2007 14:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=CSvTT41+SH7sxg6SbD2+wtnojUplCQ6qNXnKnoFLH38=; b=Mqju2btwFWPv1tQWeWsOPTT4lB3Z/7leJT4xotHhP15SaqLpLf1hLn1gy2yv0nOrUvFEzWRXJ533xbAPnuwMzU683iHx5B6nEmyssnUaHkRi5GxfF7UWGTSex/f8UnIJVPQ4Q+q8I7mtbO27fnjtCt66GgVRUEiZNscp7cqTJwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oM6Zz8Utc4pfBAVRT21WO+rW8sBuZYlBEND85IJxi4caYHOcU9eqQkwwKq5FAY2Y2yHQLQaSWZTqmCHgl5k4T3kFcAmxXuzFpCHvmGBPbt3+sICH2qr8RChBFEzUSRDUnIxyWQdshoqPxO1JBaOk4iyq8GjjXS23SeI4Y/rhOlQ= Received: by 10.35.47.10 with SMTP id z10mr4065536pyj.1189891097504; Sat, 15 Sep 2007 14:18:17 -0700 (PDT) Received: by 10.35.83.16 with HTTP; Sat, 15 Sep 2007 14:18:17 -0700 (PDT) Message-ID: Date: Sat, 15 Sep 2007 18:18:17 -0300 From: Agus To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to add rule with pfctl... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2007 21:18:18 -0000 Hi list, I am trying to figure out how to add a firewall rule with pfctl... This is what i'm trying to do... I've got SEC that matches certain pattern and takes the IP from that and want to trigger a firewall rule to block that IP.... Then after a couple of hours SEC will trigger the command to un-block the IP... So what i need is the command to block an IP address from command line, not touching any pf.conf.... I've done it with iptables but i can't get it with pf.....Hope u understand what i am trying to say... Thanks and have a nice weekend... Agustin