Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jul 2011 20:48:32 -0700 (PDT)
From:      Unga <unga888@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   ipfw: getsockopt(IP_FW_ADD): Invalid argument
Message-ID:  <1309751312.63288.YahooMailClassic@web160111.mail.bf1.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi all

Following ipfw rule develop error indicated in the subject line:
ipfw add 100 fwd 127.0.0.1,1234 tcp from any to any 1234 out via wlan0

What I want to do is forward any packet going to port 1234 to 127.0.0.1:1234.

I have built the kernel with "options         IPFIREWALL_FORWARD".

What's the error here? Is the rule incorrect?

This is FreeBSD 8.1.

Many thanks in advance.

Unga



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1309751312.63288.YahooMailClassic>