Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jul 2011 09:04:12 -0700 (PDT)
From:      Unga <unga888@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   ipfw: getsockopt(IP_FW_ADD): Invalid argument
Message-ID:  <1309622652.12815.YahooMailClassic@web160117.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 ath0

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?

Many thanks in advance.

Unga



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