From: Ajith Adapa <adapa.ajith@gmail.com>
To: netfilter@vger.kernel.org
Subject: Fwd: IPtables and SNAT
Date: Tue, 27 Oct 2009 16:25:10 +0530 [thread overview]
Message-ID: <5f765be60910270355v420513d6mf3cdce0ed820600@mail.gmail.com> (raw)
In-Reply-To: <5f765be60910270345w5ec689f5r8cdddb0b34b5e9e0@mail.gmail.com>
> First thing to bear in mind: The mangle table is purely for packet
> manipulation actions and should not be used for filtering. Move the
> two accept rules into the filter table (just omit the -t mangle
> parameter).
>
> Port 21 is only the ftp control port - data uses port 20.
>
> If you have the ftp helper try
> $IPTABLES -t nat -A POSTROUTING -s 192.x.y.a -m helper --helper ftp -j SNAT --to-source 194.160.1.1
Sorry I made the corrections accordinly by placing in FILTER table
moving from MANGLE table. Added POSTROUTING nat rule for ftp helper.
But there is no change in the situation as I still see no packets
leaving from BOX1 to FTPServer. Still I see counters for respective
iptable rules getting incremented nothing more than that.
--
Thanks & Regards
www.codingfreak.blogspot.com
prev parent reply other threads:[~2009-10-27 10:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <95ac437a-3f19-490a-80d0-3ce0a20850ed@y10g2000prg.googlegroups.com>
[not found] ` <46ee7b1c0910212155pd99519cw9831d4bb7d7f3064@mail.gmail.com>
[not found] ` <b8dec168-132d-4fba-9d09-fbb5554c339d@m7g2000prd.googlegroups.com>
2009-10-27 5:08 ` IPtables and SNAT codingfreak
2009-10-27 9:03 ` Richard Horton
[not found] ` <5f765be60910270345w5ec689f5r8cdddb0b34b5e9e0@mail.gmail.com>
2009-10-27 10:55 ` Ajith Adapa [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=5f765be60910270355v420513d6mf3cdce0ed820600@mail.gmail.com \
--to=adapa.ajith@gmail.com \
--cc=netfilter@vger.kernel.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