Linux Netfilter discussions
 help / color / mirror / Atom feed
From: George Alexandru Dragoi <waruiinu@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: port translation on the same network
Date: Mon, 19 Jul 2004 06:39:20 +0300	[thread overview]
Message-ID: <3063e5040718203923f5edaf@mail.gmail.com> (raw)
In-Reply-To: <001701c46caa$6d99c290$d802d98a@smaug>

iptables -t nat -A PREROUTING -i eth0 -d <my ip> -p tcp --dport 10001
-j SNAT --to <my ip>:9100

On Sun, 18 Jul 2004 19:34:28 +1000, gene bene <phacoboy@hotpop.com> wrote:
> I have a print job in my network which comes in on port 10001 raw packets
> (from a citrix server)
> 
> I need to use iptables to translate the port number to 9100
> 
> I have tried to set up a virtual ip (eth0:0) and use DNAT and SNAT to
> translate the port with no success.
> 
> Can anyone help me with the correct settings?
> 
> Gene
> 
>


  reply	other threads:[~2004-07-19  3:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-18  9:34 port translation on the same network gene bene
2004-07-19  3:39 ` George Alexandru Dragoi [this message]
2004-07-19  8:55 ` Antony Stone

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=3063e5040718203923f5edaf@mail.gmail.com \
    --to=waruiinu@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox