From owner-freebsd-ipfw@FreeBSD.ORG Mon Oct 13 18:59:55 2003 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C04516A4B3 for ; Mon, 13 Oct 2003 18:59:55 -0700 (PDT) Received: from mta3.adelphia.net (mta3.adelphia.net [68.168.78.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79A2A43FA3 for ; Mon, 13 Oct 2003 18:59:54 -0700 (PDT) (envelope-from tscrum@1wisp.com) Received: from wolf ([68.235.82.98]) by mta3.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20031014015953.MKLY24177.mta3.adelphia.net@wolf> for ; Mon, 13 Oct 2003 21:59:53 -0400 From: "Thomas S. Crum" To: Date: Mon, 13 Oct 2003 21:59:46 -0400 Organization: 1WISP, Inc. Message-ID: <001a01c391f6$db089160$6252eb44@wolf> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 Subject: ipfw size mismatch? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2003 01:59:55 -0000 Hello all, I recently installed FreeBSD 4.8 release and am having problems getting a dummynet bridge working. Not that dummynet is the problem, I cannot get the bridge itself working. I keep getting an error at start: ipfw: size mismatch (have 176 want 36) and when I enter: sh /etc/rc.firewall I get the mismatch along with getsockopt(IP_FW_ADD): Invalid argument. I have no ip addresses assigned to either of my two interfaces. The kernel was rebuilt with the added options: options BRIDGE options IPFIREWALL options IPDIVERT (tried with and without this option) options IPFIREWALL_VERBOSE options IPFW2 options DUMMYNET I built the kernel with: cd /usr/src make buildkernel KERNCONF=MYKERNEL make installkernel KERNCONF=MYKERNEL I put these lines in /etc/rc.conf: firewall_enable="YES" firewall_type="OPEN" firewall_quiet="YES" firewall_logging="YES" Put these lines in /etc/sysctl.conf (where rl0 and rl1 are my NIC's): net.link.ether.bridge_cfg=rl0:0,rl1:0 net.link.ether.bridge_ipfw=1 net.link.ether.bridge=1 I have used this same setup w/ 4.4 with no problem (of course lacking the ipfw2 option). Tried google with the errors I'm getting to no avail. Any help getting this bridge up will be appreciated. Best, Tom