From owner-freebsd-pf@FreeBSD.ORG Sat Mar 31 23:20:43 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86F4D16A403 for ; Sat, 31 Mar 2007 23:20:43 +0000 (UTC) (envelope-from vchepkov@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by mx1.freebsd.org (Postfix) with ESMTP id 2A88A13C45B for ; Sat, 31 Mar 2007 23:20:43 +0000 (UTC) (envelope-from vchepkov@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so812925wxc for ; Sat, 31 Mar 2007 16:20:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=KqVxQXUmPqsPPFiMFbHMT8BD4inkcLJCOE72gdQdR6n86M5K/nUtVIV7GMcsCmFLV50AW7GRNmOLrcq31czI0RP2IWLiCHRBCHPQ39G2k1AAKZqVe643ue9ZhvVbUaUn31ZHm3lHqZT4CBHM32B43BkfRRckgEjxdKRszox9lPA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:subject:date:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=Pv8bK6pW7sMbuZ7+7A0KmqGssChUCMTm56S8cyW0YGow78OoNB/nSuy8Y9FNSd0Q9rlfjrNwn3ATFNw/0TIVLUg29um88mgQr4ztWNMpF3o5yv0RHSy/9JDBT0vKp+5OlmL8zPq9EPXdT3hbV+JjnKFcZsA5x2nTLzEl2Xu+Uqs= Received: by 10.70.131.19 with SMTP id e19mr6281722wxd.1175381745008; Sat, 31 Mar 2007 15:55:45 -0700 (PDT) Received: from d600 ( [72.73.17.59]) by mx.google.com with ESMTP id i35sm1797812wxd.2007.03.31.15.55.44; Sat, 31 Mar 2007 15:55:44 -0700 (PDT) Message-ID: <00d901c773e7$b20218f0$0610a8c0@chepkov.lan> From: "Vadym Chepkov" To: Date: Sat, 31 Mar 2007 18:55:35 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Subject: packet filter and amanda 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: Sat, 31 Mar 2007 23:20:43 -0000 Hello everybody, I finally gave up, maybe somebody can help me. I have a router with FreeBSD 6.2-RELEASE-p1 with custom buld kernel: device pf # PF OpenBSD packet-filter firewall device pflog # logging support interface for PF I am using amanda to backup a client which is behind router with pf running amanda server - FreeBSD pf - amanda client I compiled amanda with tcp/udp port ranges but I can get that far. I expect this rule to allow amanda server to connect to amanda client: pass out quick on $dmz_if proto udp from $amanda_server to any port 10080 keep state Unfortunately, not all packets match this rule. When I added this rule below, it works fine,, but it's too permissive pass out log quick on $dmz_if from $amanda_server to any These are packets that I can see in the log and I can't understand, why it doesn't match my rule. 18:27:38.740741 IP (tos 0x0, ttl 63, id 61548, offset 0, flags [+], proto: UDP (17), length: 1500) 192.168.17.2.859 > 192.168.16.2.10080: UDP, length 1892 18:27:38.740752 IP (tos 0x0, ttl 63, id 61548, offset 1480, flags [none], proto: UDP (17), length: 440) 192.168.17.2 > 192.168.160.2: udp Could you tell me, what I am doing wrong, please. Thank you, Vadym Chepkov