All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ozgur AKAN <akan@aiqa.com>
To: Grace Li <zheyinli@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Can iptables REDIRECT traffic to a range of ports in one command?
Date: Tue, 20 Apr 2004 15:29:47 +0300	[thread overview]
Message-ID: <408517BB.7030703@aiqa.com> (raw)
In-Reply-To: <BAY7-F619fiD0yzNrUD0005c8b5@hotmail.com>

this is what you look for;

10.0.0.1 is the ip of destination machine

iptables -t nat -A PREROUTING -p tcp -d 10.0.0.1 --dport 2000:3000 -j 
DNAT --to 10.0.0.1:3333

-- 
Ozgur Akan

      parent reply	other threads:[~2004-04-20 12:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19 21:25 Can iptables REDIRECT traffic to a range of ports in one command? Grace Li
2004-04-20  8:53 ` Henrik Nordstrom
2004-04-20 12:29 ` Ozgur AKAN [this message]

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=408517BB.7030703@aiqa.com \
    --to=akan@aiqa.com \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=zheyinli@hotmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.