Date: Mon, 4 Jul 2011 09:11:07 -0700 (PDT) From: Unga <unga888@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: ipfw: getsockopt(IP_FW_ADD): Invalid argument Message-ID: <1309795867.32790.YahooMailClassic@web160114.mail.bf1.yahoo.com> In-Reply-To: <1309751312.63288.YahooMailClassic@web160111.mail.bf1.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- On Mon, 7/4/11, Unga <unga888@yahoo.com> wrote:=0A=0A> From: Unga <unga= 888@yahoo.com>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1309795867.32790.YahooMailClassic>