Gentoo Archives: gentoo-user

From: Konstantinos Agouros <elwood@×××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] DNAT not working
Date: Sun, 13 Jan 2008 20:01:38
Message-Id: 1200254464.237318@rumba
1 Hi,
2
3 I have a box running vmware server where I need some DNAT rules to get
4 traffic from a vm to where it belongs. Inserting the rule
5 iptables -t nat -I PREROUTING -s ... -d ... -p tcp --dport ... -j DNAT --to-destination destaddr
6
7 gives me:
8
9 iptables: No chain/target/match by that name
10
11 Also I had to manually modprobe iptable_nat since iptables -L didn't
12 initialize everything. I rebuilt iptables to match the current kernel
13 (2.6.23-gentoo-r3) no luck. Strace on the command showed me
14 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)
15
16 Anybody got an idea what I am doing from?
17
18 Regards,
19
20 Konstantin
21 --
22 Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@×××××××.de
23 Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
24 ----------------------------------------------------------------------------
25 "Captain, this ship will not survive the forming of the cosmos." B'Elana Torres
26 --
27 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] DNAT not working Daniel Iliev <daniel.iliev@×××××.com>
Re: [gentoo-user] DNAT not working Mick <michaelkintzios@×××××.com>