Date: Tue, 5 Jul 2011 03:10:12 -0700 (PDT) From: Unga <unga888@yahoo.com> To: Ian Smith <smithi@nimnet.asn.au> Cc: freebsd-questions@freebsd.org Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument Message-ID: <1309860612.6391.YahooMailClassic@web160117.mail.bf1.yahoo.com> In-Reply-To: <20110705184236.U84785@sola.nimnet.asn.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Tue, 7/5/11, Ian Smith <smithi@nimnet.asn.au> wrote:=0A=0A> From: Ia= n Smith <smithi@nimnet.asn.au>=0A> Subject: Re: ipfw: getsockopt(IP_FW_ADD)= : Invalid argument=0A> To: "Unga" <unga888@yahoo.com>=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 <unga888@yahoo.com>=0A> wrote:=0A> > --- On Mon, 7= /4/11, Unga <unga888@yahoo.com>=0A> wrote:=0A> > =0A> > > From: Unga <ung= a888@yahoo.com>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1309860612.6391.YahooMailClassic>