Linux Netfilter discussions
 help / color / mirror / Atom feed
* FTP +SLL + PortForwarding
@ 2004-09-15 16:44 yann Conan
  2004-09-15 17:57 ` Jason Opperisano
  0 siblings, 1 reply; 2+ messages in thread
From: yann Conan @ 2004-09-15 16:44 UTC (permalink / raw)
  To: netfilter

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.

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.

sorry about my english...

Best regards,

Yann


	

	
		
Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: FTP +SLL + PortForwarding
  2004-09-15 16:44 FTP +SLL + PortForwarding yann Conan
@ 2004-09-15 17:57 ` Jason Opperisano
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Opperisano @ 2004-09-15 17:57 UTC (permalink / raw)
  To: netfilter

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>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-15 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 16:44 FTP +SLL + PortForwarding yann Conan
2004-09-15 17:57 ` Jason Opperisano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox