From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: FTP +SLL + PortForwarding
Date: Wed, 15 Sep 2004 13:57:18 -0400 [thread overview]
Message-ID: <1095271038.3718.80.camel@wolfpack.ljm.dom> (raw)
In-Reply-To: <20040915164437.83457.qmail@web20928.mail.yahoo.com>
On Wed, 2004-09-15 at 12:44, yann Conan wrote:
> Hi all,
>
> I'm trying to configure a iptables firewall in a
> structure in double bastion mode.
>
> this is the configuration:
> internet
> :
> :
> :
> FW (RH/iptables)
> :
> :
> :
> DMZ/w2k/FTPS server
> :
> :
> :
> FW(w2k/Isa server)
> :
> :
> :
> LAN
>
> the tranfer of the data from the FTP server must be
> protected with SSL (no SSH)
>
> for the FTP transfer I make a portForwarding with
> ip_conntrack_ftp and it works.
>
> but now I would like to know how I have to do to
> PortForward ftp data with SSL.
> There is a problem because iptables must find during
> the FTP connect the random client port in active FTP
> or the random server port in passive FTP. And if it's
> encrypted with SSL it's impossible for iptables to
> find the right ports.
correct.
> Then I would like to know if it is possible for
> iptables to read SSL or if there is a possibility to
> unencrypt in input, read the FTP connect with
> ip_conntrack_ftp and re-encrypt in output.
no. connection tracking an SSL-encrypted FTP session is impossible for
the exact reasons you describe. i once came across an FTP over SSL
client/server that used something called "Clear Control Channel" that
after the user was authenticated, switched the control channel from SSL
to clear text to allow firewalls to read the responses to PASV
requests. it was proprietary and closed, though.
setup the FTP to respond with a fixed range of ports for passive mode
requests and allow all those ports through to the FTP server--it's your
only option.
-j
--
Jason Opperisano <opie@817west.com>
prev parent reply other threads:[~2004-09-15 17:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-15 16:44 FTP +SLL + PortForwarding yann Conan
2004-09-15 17:57 ` Jason Opperisano [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=1095271038.3718.80.camel@wolfpack.ljm.dom \
--to=opie@817west.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