In <[EMAIL PROTECTED]> [EMAIL PROTECTED] (Daniel Iliev) writes:

>On Sun, 13 Jan 2008 20:01:04 +0000 (UTC)
>Konstantinos Agouros <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
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

Reply via email to