From owner-freebsd-pf@FreeBSD.ORG Wed Aug 30 08:19:56 2006 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 23C5C16A4F0 for ; Wed, 30 Aug 2006 08:19:56 +0000 (UTC) (envelope-from prvs=astraserg/03974b54b8@proc.ru) Received: from mail.proc.ru (mail.proc.ru [217.117.112.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3076C43D73 for ; Wed, 30 Aug 2006 08:18:29 +0000 (GMT) (envelope-from prvs=astraserg/03974b54b8@proc.ru) Received: from uranium.proc.ru ([217.117.127.77]) by mail.proc.ru with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (envelope-from ) id 1GILHF-000Kmj-B8 for freebsd-pf@freebsd.org; Wed, 30 Aug 2006 12:18:27 +0400 From: AstraSerg Organization: Proc.ru To: freebsd-pf@freebsd.org Date: Wed, 30 Aug 2006 12:18:24 +0400 User-Agent: KMail/1.9.3 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608301218.24674.astraserg@proc.ru> Subject: Migrating from ipfw to pf X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: astraserg@proc.ru 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: Wed, 30 Aug 2006 08:19:56 -0000 Good day How can I configure pf in case with 2 external interfaces? There is no binding to interface at all in ipfw. I just divert 42345 ip from 192.168.0.0/16 to any fwd 194.185.178.126 ip from 194.185.178.125 to any divert 42345 ip from any to 194.185.178.125 In pf I have to set external interface, like this nat on sk0 inet from 192.168.0.0/16 to any -> 194.185.178.125 But traffic by default go to another interface - em1 -- Wed Aug 30 11:40:23 MSD 2006