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 1JESDt-0005yC-Ib for garchives@archives.gentoo.org; Mon, 14 Jan 2008 16:31:41 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 039DEE0592; Mon, 14 Jan 2008 16:31:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5F39EE04F1 for ; Mon, 14 Jan 2008 16:31:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id DABDA64F0D for ; Mon, 14 Jan 2008 16:31:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -0.903 X-Spam-Level: X-Spam-Status: No, score=-0.903 required=5.5 tests=[AWL=-0.163, BAYES_20=-0.74] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rBGmgeOhsIEG for ; Mon, 14 Jan 2008 16:31:04 +0000 (UTC) Received: from rumba.agouros.de (mail.agouros.de [194.77.40.242]) by smtp.gentoo.org (Postfix) with ESMTP id D216E647BC for ; Mon, 14 Jan 2008 16:31:02 +0000 (UTC) Received: by rumba.agouros.de (Postfix, from userid 9) id 7C0B814B958; Mon, 14 Jan 2008 17:31:00 +0100 (CET) To: gentoo-user@lists.gentoo.org Path: elwood From: Konstantinos Agouros Newsgroups: gentoo.user Subject: Re: [gentoo-user] DNAT not working Date: Mon, 14 Jan 2008 16:31:00 +0000 (UTC) Organization: Ye 'Ol Disorganized NNTPCache groupie Message-ID: <1200328260.94105@rumba> References: <1200254464.237318@rumba> <20080114011831.5289a466@ilievnet.com> NNTP-Posting-Host: localhost.agouros.de X-Trace: rumba.localnet. 1200328260 18473 127.0.0.1 (14 Jan 2008 16:31:00 GMT) X-Complaints-To: elwood@agouros.de NNTP-Posting-Date: Mon, 14 Jan 2008 16:31:00 +0000 (UTC) User-Agent: nn/6.6.4 Cache-Post-Path: rumba!unknown@rumba X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) 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 X-Archives-Salt: c79c0ee0-bfe7-4e68-9111-a893eb7bc306 X-Archives-Hash: 89dce1f76dc536bd7294e358892d32ed In <20080114011831.5289a466@ilievnet.com> daniel.iliev@gmail.com (Daniel Iliev) writes: >On Sun, 13 Jan 2008 20:01:04 +0000 (UTC) >Konstantinos Agouros wrote: >> Hi, >>=20 >> 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 >>=20 >> gives me: >>=20 >> iptables: No chain/target/match by that name >>=20 >> Also I had to manually modprobe iptable_nat since iptables -L didn't >> initialize everything. I rebuilt iptables to match the current kernel >> (2.6.23-gentoo-r3) no luck. Strace on the command showed me >> setsockopt(3, SOL_IP, 0x40 /* IP_??? */, >> "nat\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., >> 920) =3D -1 ENOENT (No such file or directory) >>=20 >> Anybody got an idea what I am doing from? >>=20 >> Regards, >>=20 >> Konstantin >I believe you've forgotten to build support for NAT in your kernel: Nope that's not it grep IP_NF_IPTABLES .config CONFIG_IP_NF_IPTABLES=m And it's not that I can't insert anything in the chain. It's --dport that gets me the error message. I played around and started with inserting a blank rule. >=E2=94=82 Symbol: IP_NF_IPTABLES [=3Dm] >=E2=94=82 Prompt: IP tables support (required for filtering/masq/NAT) >=E2=94=82 Defined at net/ipv4/netfilter/Kconfig:45=20 >=E2=94=82 Depends on: NET && INET && NETFILTER=20 >=E2=94=82 Location: >=E2=94=82 -> Networking >=E2=94=82 -> Networking support (NET [=3Dy])=20 >=E2=94=82 -> Networking options >=E2=94=82 -> Network packet filtering framework (Netfilter) (NETFILTER [=3D= >y])=20 >=E2=94=82 -> IP: Netfilter Configuration=20 >=E2=94=82 Selects: NETFILTER_XTABLES >--=20 >Best regards, >Daniel >-- >gentoo-user@lists.gentoo.org mailing list -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185 ---------------------------------------------------------------------------- "Captain, this ship will not survive the forming of the cosmos." B'Elana Torres -- gentoo-user@lists.gentoo.org mailing list