From owner-freebsd-pf@FreeBSD.ORG Fri Mar 31 16:13:46 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 4894316A401 for ; Fri, 31 Mar 2006 16:13:46 +0000 (UTC) (envelope-from gofdp-freebsd-pf@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC10543D45 for ; Fri, 31 Mar 2006 16:13:45 +0000 (GMT) (envelope-from gofdp-freebsd-pf@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FPMFZ-0007Sz-Mt for freebsd-pf@freebsd.org; Fri, 31 Mar 2006 18:13:25 +0200 Received: from gw205.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Mar 2006 18:13:25 +0200 Received: from atkin901 by gw205.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Mar 2006 18:13:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-pf@freebsd.org From: othermark Date: Fri, 31 Mar 2006 07:52:49 -0800 Lines: 20 Message-ID: References: <3681.192.168.0.13.1143747208.squirrel@uno.mnl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gw205.f5.com User-Agent: KNode/0.10.1 Sender: news Subject: Re: include files 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: Fri, 31 Mar 2006 16:13:46 -0000 Bradley W. Dutton wrote: > I have 2 routers/firewalls setup with carp/pfsync that keep the network > going with the same pf.conf. Unfortunately the hardware in these boxes is > slightly different so the NICs have different names (em/sis/dc/etc). Do like I do and rename the interfaces in /etc/rc.early $ cat /etc/rc.early /sbin/ifconfig fxp0 name admin /sbin/ifconfig em0 name external /sbin/ifconfig em1 name internal Then, just use those names everywhere (/etc/rc.conf, /etc/pf.conf, etc..) Interface renaming makes your life much much easier. -- othermark atkin901 at nospam dot yahoo dot com (!wired)?(coffee++):(wired);