Linux Netfilter discussions
 help / color / mirror / Atom feed
From: xchris <lyra@fastwebnet.it>
To: Breno Cardoso Perucchi <brenol@omegatec.net>,
	netfilter@lists.netfilter.org
Subject: Re: SNAT FTP - HELP ME
Date: Wed, 9 Apr 2003 16:18:56 +0200	[thread overview]
Message-ID: <200304091618.56344.lyra@fastwebnet.it> (raw)
In-Reply-To: <006801c2fe9c$ee27bc50$1c01010a@PERUCCHI>

On Wednesday 09 April 2003 03:35 pm, Breno Cardoso Perucchi wrote:
> Hello,
>
> This is my first mail to the list.
> I've been trying to transport tcp 20:21 to out of my network with SNAT
> iptables -t nat -A POSTROUTING -p tcp --dst 200.200.200.201 --dport 20:21
> -j SNAT --to-source 192.168.2.1

you cannot use DNAT with ftp protocol due to the multi connection protocol.
If you redirect port 21 you redirect only the control connection and not the 
data connection.

Consider using sftp.
bye

xchris


  reply	other threads:[~2003-04-09 14:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09 13:35 SNAT FTP - HELP ME Breno Cardoso Perucchi
2003-04-09 14:18 ` xchris [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-04-08 16:26 Breno Cardoso Perucchi

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=200304091618.56344.lyra@fastwebnet.it \
    --to=lyra@fastwebnet.it \
    --cc=brenol@omegatec.net \
    --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