From owner-freebsd-questions@FreeBSD.ORG Mon Mar 9 14:24:59 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BAF1F79 for ; Mon, 9 Mar 2015 14:24:59 +0000 (UTC) Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C9060F6F for ; Mon, 9 Mar 2015 14:24:58 +0000 (UTC) Received: by yhl29 with SMTP id 29so36188342yhl.0 for ; Mon, 09 Mar 2015 07:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GNcPep08zOyQjkVms655FVbX//Z7TqEvcEtM82glk74=; b=xhzlHXxhlXyOv8ZYUX7CU+pPpwBE7EUkDz0/mAYF+2377eUfuXSX6Z7yDDjT5QFQdT WvHcBZ3ED8QqRpli1dJkWJjbuRhEtHrl66UhqqDC4NqU0jLisFqduEL18heIlmHk/1GH kNXpdn+MfGtDHrPSaRNA8x9/SYNIG1PXCmgF/5eJAN1VccnwDRVEIBImcxm/1rIEgJOa tiIyltjoNmXO5B5VB8CMHccRoEg8btt5U7RET1QW2a8yXhzloCTF/TSzs44wCzfIYsbc PiO5cVfSkYm76NgJJYjldCLqU02SuJO6zmt2f9HF3tmAqE6OgXere9WA9Kbmj1Bv4n64 U4QQ== MIME-Version: 1.0 X-Received: by 10.236.105.227 with SMTP id k63mr27106004yhg.100.1425911097959; Mon, 09 Mar 2015 07:24:57 -0700 (PDT) Received: by 10.170.188.1 with HTTP; Mon, 9 Mar 2015 07:24:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 9 Mar 2015 14:24:57 +0000 Message-ID: Subject: Re: FreeBSD PF question From: krad To: Monah Baki Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 14:24:59 -0000 It sounds like your cisco isnt letting the squid web traffic out and redirecting it back to itself. You need to exclude the squid proxyies address from redirection On 9 March 2015 at 14:03, Monah Baki wrote: > Hi All, > > I have a freebsd 10.1 server with a single interface (bge0) running squid > in intercept mode. There is a Cisco device doing the policy routing. > > interface GigabitEthernet0/0/1.1 > > encapsulation dot1Q 1 native > > ip address 10.0.0.9 255.255.255.0 > > no ip redirects > > no ip unreachables > > ip nat inside > > standby 1 ip 10.0.0.10 > > standby 1 priority 120 > > standby 1 preempt > > standby 1 name HSRP > > ip policy route-map CFLOW > > > > ip access-list extended REDIRECT > > deny tcp host 10.0.0.24 any eq www > > permit tcp host 10.0.0.23 any eq www > > > > route-map CFLOW permit 10 > > match ip address REDIRECT > set ip next-hop 10.0.0.24 > > My squid.conf has the following: > http_port 3128 > http_port 3129 intercept > > > > My pf.conf has the following: > > rdr on bge0 inet proto tcp from 10.0.0.0/8 to any port 80 -> 10.0.0.24 > port > 3129 > # block in > pass in log quick on bge0 > pass out log quick on bge0 > pass out keep state > > > > User gets an access denied on browsing, and in my cache.log file, I see: > WARNING: Forwarding loop detected for: > > > > Any help/guidance is appreciated. > > > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >