From owner-freebsd-pf@FreeBSD.ORG Thu Jul 21 23:21:14 2005 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D887A16A420 for ; Thu, 21 Jul 2005 23:21:14 +0000 (GMT) (envelope-from richardtector@thekeelecentre.com) Received: from mx0.thekeelecentre.com (mx0.thekeelecentre.com [217.206.238.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43E8543D46 for ; Thu, 21 Jul 2005 23:21:05 +0000 (GMT) (envelope-from richardtector@thekeelecentre.com) Received: from av.mx0.thekeelecentre.com (av.mx0.thekeelecentre.com [217.206.238.166]) by mx0.thekeelecentre.com (Postfix) with ESMTP id A7047430F; Fri, 22 Jul 2005 00:21:04 +0100 (BST) Received: from mx0.thekeelecentre.com ([217.206.238.167]) by av.mx0.thekeelecentre.com (av.mx0.thekeelecentre.com [217.206.238.166]) (amavisd-new, port 10024) with ESMTP id 74755-05; Fri, 22 Jul 2005 00:21:04 +0100 (BST) Received: from webmail.thekeelecentre.com (webmail.thekeelecentre.com [217.206.238.169]) by mx0.thekeelecentre.com (Postfix) with ESMTP id 679424076; Fri, 22 Jul 2005 00:21:04 +0100 (BST) Received: from r-laptop.home.tector.org.uk (r-laptop.home.tector.org.uk [82.69.226.133]) by webmail.thekeelecentre.com (Horde MIME library) with HTTP for ; Fri, 22 Jul 2005 00:21:03 +0100 Message-ID: <20050722002103.gzbjkro5wso8kscc@webmail.thekeelecentre.com> Date: Fri, 22 Jul 2005 00:21:03 +0100 From: Richard Tector To: Aguiar Magalhaes References: <20050721204837.52343.qmail@web31611.mail.mud.yahoo.com> In-Reply-To: <20050721204837.52343.qmail@web31611.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-5.4 X-Virus-Scanned: by amavisd-new at mx0.thekeelecentre.com Cc: freebsd-pf@freebsd.org Subject: Re: Bypass squid with transparent proxy X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 23:21:15 -0000 Quoting Aguiar Magalhaes : > Can the host 192.168.10.100 bypass the squid using > transparent proxy ? > > I have a rule in my pf.conf: > > rdr on $dmz_if proto tcp from any to any port > $web_ports -> 127.0.0.1 port 3128 > You could try something like: table { 192.168.10.100 } rdr on $dmz_if proto tcp from ! to any port $web_ports -> 127.0.0.1 port 3128 Or without using tables, just: rdr on $dmz_if proto tcp from !192.168.10.100 to any port $web_ports -> 127.0.0.1 port 3128 Regards, Richard