public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] DNAT not working
Date: Wed, 16 Jan 2008 14:23:38 +0200	[thread overview]
Message-ID: <200801161423.38386.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <200801161201.11328.michaelkintzios@gmail.com>

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



  reply	other threads:[~2008-01-16 12:30 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
2008-01-14 16:31   ` Konstantinos Agouros
2008-01-16 12:01 ` Mick
2008-01-16 12:23   ` Alan McKinnon [this message]
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=200801161423.38386.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@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