From owner-freebsd-questions@FreeBSD.ORG Fri Jul 22 00:02:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E544B16A422 for ; Fri, 22 Jul 2005 00:02:55 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 752F543D45 for ; Fri, 22 Jul 2005 00:02:55 +0000 (GMT) (envelope-from khaled.abu@gmail.com) Received: by wproxy.gmail.com with SMTP id i32so164222wra for ; Thu, 21 Jul 2005 17:02:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ipE0HksLoGXoPfGEYQ6ZZw5QtXYzBjnB3Y0SMLtvglQNpIT250JOzjNN4UH5/y+LLcLpQUNdIcqQw/RuIotrrtr3wBCg/zt060yTzf7Vn24YWat5kzcn/RcmxL04AIQTIracHKqyL1lCPWyWaLnJm5VLs7pg2zUn8HHJjrYfqbs= Received: by 10.54.13.38 with SMTP id 38mr839391wrm; Thu, 21 Jul 2005 17:02:26 -0700 (PDT) Received: by 10.54.66.16 with HTTP; Thu, 21 Jul 2005 17:02:26 -0700 (PDT) Message-ID: Date: Fri, 22 Jul 2005 03:02:26 +0300 From: Abu Khaled To: Jon Falconer In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: freebsd-questions@freebsd.org Subject: Re: ipfw loads with forwarding disabled X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Abu Khaled List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 00:02:56 -0000 On 7/22/05, Jon Falconer wrote: > I'm running FreeBSD 5.4-RELEASE. When I load ipfw.ko I get: >=20 > ipfw2 initialized, divert disabled, rule-based forwarding disabled, > default to deny, logging disabled >=20 > I want to use the forward action in the rule set, logging would be nice > too. When I try to add a rule which uses the forward action, I get: >=20 > Line 2: getsockopt(IP_FW_ADD): Invalid argument >=20 > and line 2 looks similar to: >=20 > add 1200 forward ##.##.##.1 src-ip ##.##.##.0/23 in recv dc1 >=20 > At this point I'm guessing that "rule-based forwarding disabled" has > something to do with it no liking my rule. I tried adding "options > IPFIREWALL_FORWARD" to the kernel config and rebuilt the kernel. But I > still get the same message as above when loading ipfw (kernel module). > I've perused all the relevant sections of the handbook that I could find > without finding any more clues. What does it take to change the default > feature set of the ipfw kernel module? Or do I have to compile it into th= e > kernel to alter this? >=20 > Thanks for your suggestions, >=20 > Jon >=20 What value does sysctl net.inet.ip.forwarding has? #sysctl net.inet.ip.forwarding --=20 Regards. Abu Khaled