From owner-freebsd-questions@FreeBSD.ORG Mon Jul 4 03:48:34 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 18C10106566C for ; Mon, 4 Jul 2011 03:48:34 +0000 (UTC) (envelope-from unga888@yahoo.com) Received: from nm8.bullet.mail.bf1.yahoo.com (nm8.bullet.mail.bf1.yahoo.com [98.139.212.167]) by mx1.freebsd.org (Postfix) with SMTP id 963A68FC13 for ; Mon, 4 Jul 2011 03:48:33 +0000 (UTC) Received: from [98.139.212.151] by nm8.bullet.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 03:48:32 -0000 Received: from [98.139.212.241] by tm8.bullet.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 03:48:32 -0000 Received: from [127.0.0.1] by omp1050.mail.bf1.yahoo.com with NNFMP; 04 Jul 2011 03:48:32 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 874765.5161.bm@omp1050.mail.bf1.yahoo.com Received: (qmail 65039 invoked by uid 60001); 4 Jul 2011 03:48:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309751312; bh=ToKcqQxVAKL+9aN6CFuujabQvfaI+KXpMiMWbGHmkSQ=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=pU/30J9UwvR9+RqpS4Brn2w3wVe2s3jlqN0ro+bjfkejAzaIL7B3R3OWXKVbdbWtANGxcWKY9yzv4gLEiK+7zMm9vwtb1qqE9/4qNb82UY3pAfdQzGRzVEcFfNnoGFNf2MjK/2ESIV2E/UIIw24D799OOi0TqmtclZGaNO0C+Rg= 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=i5yChjK5dkZp/SfZXsMB4Lp75BOTsf8Zm2i+7MQ5MesowqOiTm9sMz/DO+CkU//KX6b11igFhuJFtdH9pGcgApb6NYkxVup/LssR0r42Rg1W7zLAA/m7LinYkDYFXMQdNPviUUxcbt70MlsNJbyrDxqBcj1lphejjtPegY3LoF4=; X-YMail-OSG: lcqHxhEVM1m2oZspIHDrw3eAihohjnfEBsZ_bjza7jq5k08 B0PICjlSIlYnsGmFREPkXqA.DiICLza.yOB42XSA6JR7_pnGAsrJrlBapkif x4zJiLeNN4zCx5MoUV.DAMOhFxQlKKourUP7YnD0Wj9swdqWtjej7kIMpP1j D8oPyXPa2qunGqpI2LH2gZ7lfsAp3oWGBEXf5hl5bL07Z06k4rnk7TUo_oWW 5gc4hWaBUfNxbFV4eEtvWcofHzce4IG3.8SH.mhx_MTLNgQeGSUaCYUkziEC aacdlk_emJ_DT9VBZ8AjDx3EFNHZKpwv1eRQ2nbVEeGZUvmJOFbTOqrNh.V1 q_SXtSsDqUQHziMrik8t7H1lyLLHU0lgFa9IytlT0aKxbCZfw_jX3JQr9oJe UE1irLvJBp4RU1fyzSmo63pIXfmKeYwun2bDkdZhGkacIeLnjgPWq Received: from [112.134.98.156] by web160111.mail.bf1.yahoo.com via HTTP; Sun, 03 Jul 2011 20:48:32 PDT X-Mailer: YahooMailClassic/14.0.3 YahooMailWebService/0.8.112.307740 Message-ID: <1309751312.63288.YahooMailClassic@web160111.mail.bf1.yahoo.com> Date: Sun, 3 Jul 2011 20:48:32 -0700 (PDT) From: Unga To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Mon, 04 Jul 2011 03:48:34 -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 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