From owner-freebsd-questions@FreeBSD.ORG Tue Jul 5 10:10:14 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 10CCB106564A for ; Tue, 5 Jul 2011 10:10:14 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from nm26-vm0.bullet.mail.bf1.yahoo.com (nm26-vm0.bullet.mail.bf1.yahoo.com [98.139.213.74]) by mx1.freebsd.org (Postfix) with SMTP id AFBAC8FC08 for ; Tue, 5 Jul 2011 10:10:13 +0000 (UTC) Received: from [98.139.212.152] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jul 2011 10:10:12 -0000 Received: from [98.139.212.240] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 05 Jul 2011 10:10:12 -0000 Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP; 05 Jul 2011 10:10:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 683914.61473.bm@omp1049.mail.bf1.yahoo.com Received: (qmail 12228 invoked by uid 60001); 5 Jul 2011 10:10:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309860612; bh=6di94mdV3QNnrRBs8HdXUbSUChAaVqX05AWpd6xh/cM=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LnjFO/uI6HnKIdxFn4Kb1QnqWGMTRihVzRAxnnUdRBy45umA35T8Sj3Ikkm3D2a0J+36Gg9G3fGg5e0ZdKvtSZPKIxhRq0kxxw+5MH22HTRuz13GGvAC+SoVgSGEYIWpaqMWazHah15FedJGKctC8Q6AhvTwBgLB2LLZCqNvN3g= 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:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rl3Cur1Fo3+/phsb3F43E6hCYMjvwBxB7Uq0wn7kQzHQq3rXM4Sf6aYj4Qj77/PPDElQ1d6/2cK5Kao05qr9g1HB8+aCusnhl6+O0JEBFeecii4s8EMNElAcwdutPYKVtb6xwP4r1cZOVHSBupEn5rD8FgTrKY1/FBZ2tq5qqYs=; X-YMail-OSG: ptwV1R8VM1lgqi2l31o9sdGhNNdY.MENu_vsy8BWHlpC4b0 Q6875rfQtHE8F2fP8m7pTW0Rj4.4HU6QqxNec3Wq19nqB_WlzwGVJuVLPG3l FyixPoi22I_i3vg5ImUuQ5HZqZtVm8xn50IhcIt.jZBLx.71zDmppGUtMAp3 bfd0oOCesOleZ0MDdRnof7i1mURXPTy3C1Ul7DyAGkj.ZgNyYBz0ryKFoK2l XZeF88ttk6T1lFDWoVbOpOg7CfEWvK.DTVpnThA0iG82abJ_rI2p867l9Zod z_J6x61Df3amCd1tMIOwSCmsCGW9z38IT7M95k.fvk0r56f0ZHwyN.1Z0Tir YVSdix3AVHYX1zmKMmzBnIqRMovnr_bvIc.do2AcUN0NPTZ.AHg2wu5BlcRL .Ul0uE7tn7SCUHqMilikSZm2YVqg0d32_HDpVtfGqSBOtCeNN13t6X9qN3yh ZXZVizYK9HFUVLlI- Received: from [112.134.99.185] by web160117.mail.bf1.yahoo.com via HTTP; Tue, 05 Jul 2011 03:10:12 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740 Message-ID: <1309860612.6391.YahooMailClassic@web160117.mail.bf1.yahoo.com> Date: Tue, 5 Jul 2011 03:10:12 -0700 (PDT) From: Unga To: Ian Smith In-Reply-To: <20110705184236.U84785@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org 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: Tue, 05 Jul 2011 10:10:14 -0000 --- On Tue, 7/5/11, Ian Smith wrote:=0A=0A> From: Ia= n Smith =0A> Subject: Re: ipfw: getsockopt(IP_FW_ADD)= : Invalid argument=0A> To: "Unga" =0A> Cc: freebsd-quest= ions@freebsd.org=0A> Date: Tuesday, July 5, 2011, 5:14 PM=0A> In freebsd-qu= estions Digest, Vol 370,=0A> Issue 2, Message: 14=0A> On Mon, 4 Jul 2011 09= :11:07 -0700 (PDT) Unga =0A> wrote:=0A> > --- On Mon, 7= /4/11, Unga =0A> wrote:=0A> > =0A> > > From: Unga =0A> > > Subject: ipfw: getsockopt(IP_FW_ADD): Invalid=0A> = argument=0A> > > To: freebsd-questions@freebsd.org=0A> > > Date: Monday, = July 4, 2011, 11:48 AM=0A> > > Hi all=0A> > > =0A> > > Following ipfw ru= le develop error indicated in=0A> the subject=0A> > > line:=0A> > > ipfw = add 100 fwd 127.0.0.1,1234 tcp from any to=0A> any 1234=0A> > > out via wl= an0=0A> > > =0A> > > What I want to do is forward any packet going to=0A>= port 1234=0A> > > to 127.0.0.1:1234.=0A> > > =0A> > > I have built the = kernel with "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> > =0A> > Does anybody successfully use th= e "ipfw fwd"? If so=0A> in which FreeBSD version?=0A> =0A> Not I, but many = do.=A0 On the face of it the rule looks=0A> correct.=A0 Do you =0A> have a = TCP service running on localhost:1234 ?=A0 Does=0A> wlan0 exist?=A0 You =0A= > may do better posting to the freebsd-ipfw list, with more=0A> information= .=0A> =0A> cheers, Ian=0A=0AHi Ian=0A=0AThanks for the reply.=0A=0AI do hav= e a daemon listening to the port 1234 on the local machine.=0A=0AThe wlan0 = exists and ip number 192.168.1.3 assigned.=0A=0AI'll write the freebsd-ipfw= .=0A=0AThank you.=0A=0AUnga=0A=0A=0A=0A