From: Daniel Iliev <daniel.iliev@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] DNAT not working
Date: Mon, 14 Jan 2008 01:18:31 +0200 [thread overview]
Message-ID: <20080114011831.5289a466@ilievnet.com> (raw)
In-Reply-To: <1200254464.237318@rumba>
On Sun, 13 Jan 2008 20:01:04 +0000 (UTC)
Konstantinos Agouros <elwood@agouros.de> 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
>
> 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) = -1 ENOENT (No such file or directory)
>
> Anybody got an idea what I am doing from?
>
> Regards,
>
> Konstantin
I believe you've forgotten to build support for NAT in your kernel:
│ Symbol: IP_NF_IPTABLES [=m]
│ Prompt: IP tables support (required for filtering/masq/NAT)
│ Defined at net/ipv4/netfilter/Kconfig:45
│ Depends on: NET && INET && NETFILTER
│ Location:
│ -> Networking
│ -> Networking support (NET [=y])
│ -> Networking options
│ -> Network packet filtering framework (Netfilter) (NETFILTER [=y])
│ -> IP: Netfilter Configuration
│ Selects: NETFILTER_XTABLES
--
Best regards,
Daniel
--
gentoo-user@lists.gentoo.org mailing list
next prev parent reply other threads:[~2008-01-13 23:19 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-13 20:01 [gentoo-user] DNAT not working Konstantinos Agouros
2008-01-13 23:18 ` Daniel Iliev [this message]
2008-01-14 16:31 ` Konstantinos Agouros
2008-01-16 12:01 ` Mick
2008-01-16 12:23 ` Alan McKinnon
2008-01-16 16:49 ` Konstantinos Agouros
2008-01-16 18:13 ` Alan McKinnon
2008-01-16 19:19 ` Etaoin Shrdlu
2008-01-17 17:23 ` Konstantinos Agouros
2008-01-17 17:23 ` Konstantinos Agouros
2008-01-18 16:29 ` Konstantinos Agouros
2008-01-18 17:36 ` Alan McKinnon
2008-01-19 9:29 ` Konstantinos Agouros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080114011831.5289a466@ilievnet.com \
--to=daniel.iliev@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox