All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgi Alexandrov <georgi.alexandrov@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: Port DNATting
Date: Sat, 26 Nov 2005 12:20:09 +0200	[thread overview]
Message-ID: <438836D9.5050204@gmail.com> (raw)
In-Reply-To: <814141710.20051126124425@progtech.ru>

Oleg A. Arkhangelsky wrote:

>Hello All,
>
>  When I'm trying to do something like this:
>
>  iptables -t nat -I POSTROUTING -p tcp --dport 8080 -j DNAT --to :80
>
>  I get: "iptables: Invalid argument".
>
>  What I want is only to translate destination port of all TCP-packets
>  going to some_ip:8080 into some_ip:80. I don't want to change IP. It
>  seems that syntax of this command is corrent, but... What is wrong?
>
>  Thanks!
>
>  P.S.: Kernel 2.4.31, iptables v1.3.2
>
>  
>
If you want to do that you should read the 
iptables-tutorial.frozentux.net, then use the REDIRECT target:
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to 80

regards,
Georgi Alexandrov


  reply	other threads:[~2005-11-26 10:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-26  9:44 Port DNATting Oleg A. Arkhangelsky
2005-11-26 10:20 ` Georgi Alexandrov [this message]
2005-11-26 10:28   ` Re[2]: " Oleg A. Arkhangelsky
  -- strict thread matches above, loose matches on Subject: below --
2005-11-26  9:42 Oleg A. Arkhangelsky

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=438836D9.5050204@gmail.com \
    --to=georgi.alexandrov@gmail.com \
    --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 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.