Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Leszek Żur" <lzur@record.com.pl>
To: netfilter@lists.netfilter.org
Subject: iptables -t nat -A OUTPUT - j DNAT
Date: Fri, 23 May 2003 16:41:18 +0200	[thread overview]
Message-ID: <MCBBLLHIIODBDKIGDHGAMEJHCCAA.lzur@record.com.pl> (raw)

Hello all.

Slackware 9.0
kernel 2.4.20
iptables 1.2.7a

iptables -t nat -A OUTPUT -d 1.1.1.1 -j DNAT --to-destination 2.2.2.2
iptables: Invalid argument

From iptables manual:
   DNAT
       This  target  is  only valid in the nat table, in the PREROUTING and
OUTPUT chains,
       and user-defined chains which are only called from those chains.  It
specifies that
       the destination address of the packet should be modified (and all
future packets in
       this connection will also be mangled), and rules should cease being
examined.   It
       takes one type of option:

       --to-destination ipaddr[-ipaddr][:port-port]
              which can specify a single new destination IP address, an
inclusive range of
              IP addresses, and optionally, a port range (which is only
valid if the  rule
              also  specifies  -p tcp or -p udp).  If no port range is
specified, then the
              destination port will never be modified.



anybody can help me ??



             reply	other threads:[~2003-05-23 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-23 14:41 Leszek Żur [this message]
2003-05-23 15:05 ` iptables -t nat -A OUTPUT - j DNAT Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2003-05-24  1:53 George Vieira

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=MCBBLLHIIODBDKIGDHGAMEJHCCAA.lzur@record.com.pl \
    --to=lzur@record.com.pl \
    --cc=netfilter@lists.netfilter.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