From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JF7P8-0001Ga-2O for garchives@archives.gentoo.org; Wed, 16 Jan 2008 12:30:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8084FE082D; Wed, 16 Jan 2008 12:29:20 +0000 (UTC) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by pigeon.gentoo.org (Postfix) with ESMTP id E7840E0829 for ; Wed, 16 Jan 2008 12:29:19 +0000 (UTC) Received: by py-out-1112.google.com with SMTP id w53so320387pyg.25 for ; Wed, 16 Jan 2008 04:29:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=a/7mM6LIq2tjOq/R8Rz3Ugu/pmRjiVm92ETWoxrWQhI=; b=eM09y+eIVJzQyti81Y5YNQ4JuA87uRY8TgiCe59wT89a/bxCoQ/ZT58Yq7zt3V3rLnF5UoNmSZjPTf7jQyyhhEfZnjKzdkNLyE9OlXQROrlp6LcNt/NpTpKAqMWPmswVYk1K19WJcPXK+hO3ji/Yq37EV+LaZQAWcTwV/juFT6Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=YZNpfCRtfDnRiTM2skVyCkHmnxscbD4g+0O8jaqX2855qXeZBGKDCBdUe6aWlnM/4mfBd0LCQvosIT5emH+uhis8fO+M9X8ihLNgU5jpHWBEimHg/k4nAvjF8C9xETohbpvpPaFaB+KBQwhlyowjkwvhMVRCmGR19KI7Bqtc4+8= Received: by 10.141.27.16 with SMTP id e16mr495107rvj.259.1200486559211; Wed, 16 Jan 2008 04:29:19 -0800 (PST) Received: from ?192.168.200.112? ( [196.211.71.34]) by mx.google.com with ESMTPS id j13sm891473rne.9.2008.01.16.04.29.14 (version=SSLv3 cipher=OTHER); Wed, 16 Jan 2008 04:29:18 -0800 (PST) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] DNAT not working Date: Wed, 16 Jan 2008 14:23:38 +0200 User-Agent: KMail/1.9.7 References: <1200254464.237318@rumba> <200801161201.11328.michaelkintzios@gmail.com> In-Reply-To: <200801161201.11328.michaelkintzios@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801161423.38386.alan.mckinnon@gmail.com> X-Archives-Salt: 48008209-5914-44be-ab6b-234d6ae778fa X-Archives-Hash: c9cf4b0bb8851e49640a9456b8b660f4 On Wednesday 16 January 2008, Mick wrote: > On Sunday 13 January 2008, Konstantinos Agouros wrote: > > Hi, > > > > I have a box running vmware server where I need some DNAT rules to > > get traffic from a vm to where it belongs. Inserting the rule > > iptables -t nat -I PREROUTING -s ... -d ... -p tcp --dport ... -j > > DNAT --to-destination destaddr > > > > gives me: > > > > iptables: No chain/target/match by that name > > before --dport you may need the match option: -m --dport 1234 -j > DNAT .... no, his syntax is OK > You might also need to specify a policy for PREROUTING before > inserting the rule (but I'm not sure). Try these suggestions one at > a time and see what gives. That doesn't matter, a chain always has a policy (ACCEPT by default). Most likely he doesn't have the correct module loaded int he kernel -- Alan McKinnon alan dot mckinnon at gmail dot com -- gentoo-user@lists.gentoo.org mailing list