From: Michael Gale <michael.gale@utilitran.com>
To: netfilter@lists.netfilter.org
Subject: FTP passive not working
Date: Tue, 13 Apr 2004 11:41:25 -0600 [thread overview]
Message-ID: <20040413114125.6d159e42@mgalepc.utilitran.com> (raw)
Hello,
I am having trouble getting a FTP connection to work in passive mode from
behind a firewall.
I on the FTP server I have two IP's one used for internal connections and one
used for external connections. The external one is .36 .. so in the proftpd.conf
file I used the following:
<VirtualHost IP.36>
ServerName "ftp.domain.com"
MasqueradeAddress extip.36
IdentLookups off
AllowOverwrite on
ExtendedLog /var/log/proftpdvh1.log read,write
TransferLog /var/log/proftpdvh1-trans.log
</VirtualHost>
So when I try passive my client tried to connect to the external IP of the
firewall on a port > 1024.
On the firewall ( where I believe the problem is) I have some strange settings.
Since I have a large amount of IP's externally and internally I have done this:
All external IP's are mapped to the corrasponding internal IP. So if externally
I had 192.168.7.36 and internally I had 10.10.1.36
I have: (EXTRANGE.$i is the external IP)
$IPT -N tablerule-$i
$IPT -A INPUT -i $EXT_FACE -d $EXTRANGE.$i -j tablerule-$i
$IPT -A OUTPUT -o $EXT_FACE -s $EXTRANGE.$i -j tablerule-$i
$IPT -A FORWARD -i $EXT_FACE -o $INT_FACE -d $INTRANGE.$i -j tablerule-$i
$IPT -A FORWARD -i $INT_FACE -o $EXT_FACE -s $INTRANGE.$i -j tablerule-$i
So all rules with regards to this IP / PC are under one rule.
This setup is working fine for all connections accept passive FTP -- it seems
the firewall is not forwarding the related data connection to the internal
server.
Oh, I also have PREROUTING rules allowing all connections to .36 to be DNAT to
internal .36 well testing.
--
Michael Gale
Network Administrator
Utilitran Corporation
next reply other threads:[~2004-04-13 17:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-13 17:41 Michael Gale [this message]
2004-04-13 17:59 ` FTP passive not working Rob Sterenborg
2004-04-13 19:13 ` Michael Gale
2004-04-13 19:43 ` Michael Gale
2004-04-13 20:08 ` Michael Gale
2004-04-13 20:20 ` Michael Gale
2004-04-13 19:37 ` Antony Stone
2004-04-13 19:47 ` Michael Gale
2004-04-13 20:00 ` 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=20040413114125.6d159e42@mgalepc.utilitran.com \
--to=michael.gale@utilitran.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