All of lore.kernel.org
 help / color / mirror / Atom feed
* FTP/SSL
@ 2003-10-16 17:31 Sean E. Covel
  0 siblings, 0 replies; 4+ messages in thread
From: Sean E. Covel @ 2003-10-16 17:31 UTC (permalink / raw)
  To: NetFilter-List

Is there any way to do connection tracking for incoming connections to
an FTP/SSL server?  I'm using a Bering (leaf.sourceforge.net)
mini-distro that uses the Shorewall firewall (www.shorewall.net).  

My firewall has both ip_net_ftp and ip_conntack_ftp, but as we all know,
these don't work for FTP/SSL.

I am attempting to port-forward the FTP/SSL connection from the firewall
machine to a server in a service network.  The "command" connection on
port 21 works just great, but when I try to GET, PUT, or LS a file,
basically anything that uses the data connection, the firewall blocks
the connection.  It appears that FTP/SSL uses a high port -> high port
connection for the data connection.

One possible solution (which I don't like!) is to open a large range of
high ports in the firewall.  This seems a bit primitive.  There must be
a way to associate the initial port 21 connection with the subsequent
high-port connection.

Thanks for your help,

Sean



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

* RE: FTP/SSL
@ 2003-10-16 18:00 Daniel Chemko
  2003-10-16 18:39 ` FTP/SSL Sean E. Covel
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Chemko @ 2003-10-16 18:00 UTC (permalink / raw)
  To: Sean E. Covel, NetFilter-List

By design, these protocols cannot be conntracked.

-----Original Message-----
From: Sean E. Covel [mailto:seanecovel@comcast.net] 
Sent: Thursday, October 16, 2003 10:31 AM
To: NetFilter-List
Subject: FTP/SSL

Is there any way to do connection tracking for incoming connections to
an FTP/SSL server?  I'm using a Bering (leaf.sourceforge.net)
mini-distro that uses the Shorewall firewall (www.shorewall.net).  

My firewall has both ip_net_ftp and ip_conntack_ftp, but as we all know,
these don't work for FTP/SSL.

I am attempting to port-forward the FTP/SSL connection from the firewall
machine to a server in a service network.  The "command" connection on
port 21 works just great, but when I try to GET, PUT, or LS a file,
basically anything that uses the data connection, the firewall blocks
the connection.  It appears that FTP/SSL uses a high port -> high port
connection for the data connection.

One possible solution (which I don't like!) is to open a large range of
high ports in the firewall.  This seems a bit primitive.  There must be
a way to associate the initial port 21 connection with the subsequent
high-port connection.

Thanks for your help,

Sean




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

* RE: FTP/SSL
  2003-10-16 18:00 FTP/SSL Daniel Chemko
@ 2003-10-16 18:39 ` Sean E. Covel
  0 siblings, 0 replies; 4+ messages in thread
From: Sean E. Covel @ 2003-10-16 18:39 UTC (permalink / raw)
  To: Daniel Chemko; +Cc: NetFilter-List

So am I correct that the only option is to open a large chunk of ports
so that the data connection can be established?  This seems like 2 steps
forward and 1 step back!

On Thu, 2003-10-16 at 14:00, Daniel Chemko wrote:
> By design, these protocols cannot be conntracked.
> 
> -----Original Message-----
> From: Sean E. Covel [mailto:seanecovel@comcast.net] 
> Sent: Thursday, October 16, 2003 10:31 AM
> To: NetFilter-List
> Subject: FTP/SSL
> 
> Is there any way to do connection tracking for incoming connections to
> an FTP/SSL server?  I'm using a Bering (leaf.sourceforge.net)
> mini-distro that uses the Shorewall firewall (www.shorewall.net).  
> 
> My firewall has both ip_net_ftp and ip_conntack_ftp, but as we all know,
> these don't work for FTP/SSL.
> 
> I am attempting to port-forward the FTP/SSL connection from the firewall
> machine to a server in a service network.  The "command" connection on
> port 21 works just great, but when I try to GET, PUT, or LS a file,
> basically anything that uses the data connection, the firewall blocks
> the connection.  It appears that FTP/SSL uses a high port -> high port
> connection for the data connection.
> 
> One possible solution (which I don't like!) is to open a large range of
> high ports in the firewall.  This seems a bit primitive.  There must be
> a way to associate the initial port 21 connection with the subsequent
> high-port connection.
> 
> Thanks for your help,
> 
> Sean
> 
> 
> 



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

* RE: FTP/SSL
@ 2003-10-16 18:40 Daniel Chemko
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Chemko @ 2003-10-16 18:40 UTC (permalink / raw)
  To: Sean E. Covel; +Cc: NetFilter-List

SSL based protocols are designed to be resilient against
man-in-the-middle attacks. The firewall would be that man in the middle.

The only ways to solve your problems that I can see are:

1. Bite the bullet, open the ports
2. Force users to use Active mode FTP, so they open all those ports
instead of you
3. See if your SFTP server has an option to force users to use specific
ports. This may make opening the interfaces a little easier.
4. Put the SFTP server on your firewall. This is hardly ideal, but
better than the alternatives?
5. Offer regular FTP-through-VPN instead of SFTP

>So am I correct that the only option is to open a large chunk of ports
>so that the data connection can be established?  This seems like 2
steps
>forward and 1 step back!



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

end of thread, other threads:[~2003-10-16 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-16 18:00 FTP/SSL Daniel Chemko
2003-10-16 18:39 ` FTP/SSL Sean E. Covel
  -- strict thread matches above, loose matches on Subject: below --
2003-10-16 18:40 FTP/SSL Daniel Chemko
2003-10-16 17:31 FTP/SSL Sean E. Covel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.