From owner-freebsd-questions@FreeBSD.ORG Sat Jul 2 16:04:13 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 EE1BA106564A for ; Sat, 2 Jul 2011 16:04:13 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from nm19.bullet.mail.bf1.yahoo.com (nm19.bullet.mail.bf1.yahoo.com [98.139.212.178]) by mx1.freebsd.org (Postfix) with SMTP id 84BAD8FC0C for ; Sat, 2 Jul 2011 16:04:13 +0000 (UTC) Received: from [98.139.212.149] by nm19.bullet.mail.bf1.yahoo.com with NNFMP; 02 Jul 2011 16:04:12 -0000 Received: from [98.139.212.209] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 02 Jul 2011 16:04:12 -0000 Received: from [127.0.0.1] by omp1018.mail.bf1.yahoo.com with NNFMP; 02 Jul 2011 16:04:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 837807.79979.bm@omp1018.mail.bf1.yahoo.com Received: (qmail 21018 invoked by uid 60001); 2 Jul 2011 16:04:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309622652; bh=HM0zyLO9eEA4XNKXME/F+LF3Ktk8n6uLPDzvIRIBZVg=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=TwYkptM+bbXK6sTGv9ksBrnmK2iDTVa7OtZM1MrRUzjdFFyWFFU2h7+szlWWKi6pOWUJir9xGAsfelgaGvvwEbm+d8PyW9ytazClj+jGMbnncFzHvxkuOeqWKRsQmHylH+PiDaP07QG2csxuH7PLvX9nrxfrkPEYJvz1LRvYoKQ= 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:MIME-Version:Content-Type; b=GyFmmf5XpI9jaX1T9UZz21ofsjmiuU6I+uRzDLefCbpRgDx+ECTYp190ao6+b5kQYco9LsymgrqUmw1D5ivyhZ7Y1vE5HY9V3S+1k6HUmRewqMdtR+iXR1/LCrC8fk6WTP+pm9lp8c5FooVgahIHa7LpME3GDUc8BxUROyRvrmo=; X-YMail-OSG: e9ohGMIVM1ntN8wl28NqI7dAMVK1VdHt4UHPhZ7g0WKsQFb EoZuLPbM8jZjEmQ8Vf4_elvG0vCQMcKDjXUsn_xWPdRkgvD7PWpOEN1VsKWj PUawAJOwOR7ueQZ1Y1tKLUKHQmM.7Hl39LtOhS8kAkUrQbZ8hRR9NWMXY7yL lSkB9yprqk0Z3mvJehl.x_J9oG01eG.rcu0iRxekzyga1ZiRgKrzI287FpU2 wVo8ocvfAtnNfp_v9M3e20AT..zWcEuxS7E9uO0E_rtwphfNCuEBUNbZ11hv IgCQrhQknXI8ZdIILh9QGLLLfZRFwwmHMFnzWXIecNAOB6EORtmqEJNpUSLX czUh5ENfCSn15LumKdW_Ot8d5WaSSpibaNI1LR1W_J0eL2biuFbOfXmod5zX DWCqgW5hWPLBA4gaRektIvaeo5QOI10CHqlEXl7JPUWKrYT3KwhDj Received: from [112.134.100.178] by web160117.mail.bf1.yahoo.com via HTTP; Sat, 02 Jul 2011 09:04:12 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740 Message-ID: <1309622652.12815.YahooMailClassic@web160117.mail.bf1.yahoo.com> Date: Sat, 2 Jul 2011 09:04:12 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 04 Jul 2011 13:14:47 +0000 Subject: 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: Sat, 02 Jul 2011 16:04:14 -0000 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