From owner-freebsd-pf@FreeBSD.ORG Fri May 17 18:47:26 2013 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3EF616E0 for ; Fri, 17 May 2013 18:47:26 +0000 (UTC) (envelope-from manoj.ganesan@gmail.com) Received: from mail-la0-x233.google.com (mail-la0-x233.google.com [IPv6:2a00:1450:4010:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id C1F9CF81 for ; Fri, 17 May 2013 18:47:25 +0000 (UTC) Received: by mail-la0-f51.google.com with SMTP id lx15so2678446lab.38 for ; Fri, 17 May 2013 11:47:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=WhdFMZtil0/IstaEFZAkE3azuCHQ43Tqju4nwW7XYKk=; b=KJ2qIzh0yXRodYmWyWux5QPfrxfT14VnitMVXzl50IE9gh/QPl0Z8x5aS92kW7+pb4 /aW8oAA9xD2VVQV/dXWqO8xdOcTTkwiUSfJ/pqExqsUCmTnI5BiJY/F1/Tz24eGG+ifU RauPT7k+RzmtsPnzKUX6KbaiJQfjacz3uF1BMBgaljkfHLwmFL5ljY5mxE7Fq6Xul+M5 CIH1Mn9RpEgJAYE7qKwFHvJM85c95rrcHXl2l7GwNC/n3ZPlGDTn3WJBKxjfQy/nQ0ye SpThib62KtmiUB08vn2utl583cudHJ34zWOpNtBYfjl+KaXev8fc3VTnGcyL3mnVHjpp e1DA== X-Received: by 10.152.87.116 with SMTP id w20mr23599587laz.0.1368816444341; Fri, 17 May 2013 11:47:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.22.39 with HTTP; Fri, 17 May 2013 11:47:04 -0700 (PDT) From: Manoj Ganesan Date: Fri, 17 May 2013 13:47:04 -0500 Message-ID: Subject: Anchor evaluation To: "freebsd-pf@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.14 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: Fri, 17 May 2013 18:47:26 -0000 I'm probably doing something very silly here, which I can't figure out. I'm trying to get an anchor to be evaluated, but I can't seem to get traffic to go through. My /etc/pf.conf looks like: rdr pass log on ix0 proto udp from 10.0.111.61 to any port 1234 -> 10.0.211.62 port 4321 nat pass log on ix0 from 10.0.211.62 port 4321 to 10.0.111.61 -> 10.0.111.71 port 1234 pass out all I want to replace these by an anchor like so (my /etc/pf.conf looks like): anchor my_anchor load anchor gamenode from "/usr/home/my_user/my_anchor" where the /usr/home/my_user/my_anchor looks like: rdr pass log on ix0 proto udp from 10.0.111.61 to any port 1234 -> 10.0.211.62 port 4321 nat pass log on ix0 from 10.0.211.62 port 4321 to 10.0.111.61 -> 10.0.111.71 port 1234 pass out all But while the anchor-less case lets packets through, the anchor case doesn't. Am I doing something wrong here? Thanks! Manoj