From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 16:11:09 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 022F71065670 for ; Mon, 4 Jul 2011 16:11:09 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from nm17.bullet.mail.bf1.yahoo.com (nm17.bullet.mail.bf1.yahoo.com [98.139.212.176]) by mx1.freebsd.org (Postfix) with SMTP id 8BD378FC13 for ; Mon, 4 Jul 2011 16:11:08 +0000 (UTC) Received: from [98.139.212.144] by nm17.bullet.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 16:11:07 -0000 Received: from [98.139.212.203] by tm1.bullet.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 16:11:07 -0000 Received: from [127.0.0.1] by omp1012.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 16:11:07 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 906266.8422.bm@omp1012.mail.bf1.yahoo.com Received: (qmail 33377 invoked by uid 60001); 4 Jul 2011 16:11:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309795867; bh=tr4Q4uR2/HUlyx2vLnU2C/2jYFWyuGkGNCtB/cUSAvo=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=D/jYIaNOnbHChLKbzrWZV9RuThWVHT5xZEBSb+j5n9js/BIdH19/YcGZ1ff95QDXC+soVkq/Zz9FssWU6F1qyctL/XwE2sO2V+uHYpb4Sa43GA3CQjpZn0V/tU/TIGsaF+vgGTaoD3b5iJJcs9b23bX38nHxGTGXUj0qTbknhCM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tQ9g0TfVIgJ+4AxEs6MO2mSp3PSaa3rWoDwZeJlRbUXo0sCl7Kk8jnJjLowT4xcwA8/CtR2o7W6+/7g6f2oKfkPwMeR50aD5HSOyobDNS5VMqEKFcp7pQ5teOQ+JRqKyUsK39WI1+92Y7Gq4KPCAwovv12syGjtikHhFUK+/o08=; X-YMail-OSG: yl9AWp8VM1lTZK4y.gwCjPi9Xq_SM8shBmzpf5YbfEQq6c3 VwtNPl0Qro1BDxkaDpZr9JLOEe.4ZDNjHGgT6a.qA8WLIi3keHrmioUzysPv YaJ1dEJNdTflfO9nTNDc.G3j1NqzPUYZLz0OZqNqwxtgb3dONzDl.RXb9cPb O7ZiWw.H2EzGd0pcrioMV0_CF8BHRiXD2fQRIHN2HAzAqtQiV40QEDsB.8eg X8hTf5Oy3Vs1s_hSgC87gH8wleBZG1kSpwlVxtf_75ds0QOS.zYNNg7FzzIm huvkKs4No4Z8jXvIFbksgEwBQd_i8Z2ZFmSVKMVijXKN0MuTppME_Q8ZJ.WB l5PKqGqVMVuH4amkU_9ToDuUlsxJe9Wqj2v12Kvpud5jxt7fD9Hg5C5Y_31m s3KBpuPQZaH1Ns5ZefAO0LbCh40nfMbr.Knwf.dFhrUxaSj6t_7OPXHeKArk MMflGAIdaWIhOrSg- Received: from [112.134.101.160] by web160114.mail.bf1.yahoo.com via HTTP; Mon, 04 Jul 2011 09:11:07 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740 Message-ID: <1309795867.32790.YahooMailClassic@web160114.mail.bf1.yahoo.com> Date: Mon, 4 Jul 2011 09:11:07 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org In-Reply-To: <1309751312.63288.YahooMailClassic@web160111.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2011 16:11:09 -0000 --- On Mon, 7/4/11, Unga wrote:=0A=0A> From: Unga =0A> Subject: ipfw: getsockopt(IP_FW_ADD): Invalid argument= =0A> To: freebsd-questions@freebsd.org=0A> Date: Monday, July 4, 2011, 11:4= 8 AM=0A> Hi all=0A> =0A> Following ipfw rule develop error indicated in the= subject=0A> line:=0A> ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any = 1234=0A> out via wlan0=0A> =0A> What I want to do is forward any packet goi= ng to port 1234=0A> to 127.0.0.1:1234.=0A> =0A> I have built the kernel wit= h "options=A0 =A0 =A0=0A> =A0=A0=A0IPFIREWALL_FORWARD".=0A> =0A> What's the= error here? Is the rule incorrect?=0A> =0A> This is FreeBSD 8.1.=0A> =0A> = Many thanks in advance.=0A> =0A> Unga=0A> =0A=0ADoes anybody successfully u= se the "ipfw fwd"? If so in which FreeBSD version?=0A=0AUnga=0A=0A