Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Breno Cardoso Perucchi" <breno@omegatec.net>
To: netfilter@lists.netfilter.org
Subject: SNAT FTP - HELP ME
Date: Tue, 8 Apr 2003 13:26:35 -0300	[thread overview]
Message-ID: <08ff01c2fdeb$a1d35a00$1c01010a@PERUCCHI> (raw)

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

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

This is my network  
Firewall
eth0:200.100.100.100  (NAT to 192.168.2.0/24)
eth1:200.200.200.200  (Another Class the IP)
eth2:192.168.2.50    (LAN)

Server1 in Network  192.168.2.1  
My firewall have this rule in the NAT   
iptables -t nat -A POSTROUTING -s 192.168.2.0/24 -j SNAT --to 200.100.100.100

This is my problem. I transport all ports of the ip 200.200.200.201 to the 192.168.2.1  
iptables -t nat -A PREROUTING -p tcp -d 200.200.200.201 -j DNAT --to 192.168.2.1  
  
But all the ports don't get out with IP 200.200.200.201 and yes with IP of Masquerade 200.100.100.100  
My I need to resolved this . 

Breno Cardoso Perucchi
breno@omegatec.net
Consultor - Omega Tecnologia
http://www.omegatec.net/

[-- Attachment #2: Type: text/html, Size: 1813 bytes --]

             reply	other threads:[~2003-04-08 16:26 UTC|newest]

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

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='08ff01c2fdeb$a1d35a00$1c01010a@PERUCCHI' \
    --to=breno@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