All of lore.kernel.org
 help / color / mirror / Atom feed
* secure ftp with SSL
@ 2002-09-13  3:09 Rendy V
  2002-09-13  8:43 ` Roy Sigurd Karlsbakk
  2002-09-13 10:20 ` Thomas Lussnig
  0 siblings, 2 replies; 7+ messages in thread
From: Rendy V @ 2002-09-13  3:09 UTC (permalink / raw)
  To: 'netfilter@lists.samba.org'

[-- Attachment #1: Type: text/plain, Size: 2068 bytes --]

Hi All,
I have a strange problem, the problem is like this : 
I have an application that use secure ftp and for that reason I have opened
up the command port (990) with state NEW and allowed data port (20000:20049)
with state ESTABLISHED, RELATED on the firewall. It fails when it try to use
data port, for authentication it working just fine. Please see the log on
the below. 
If I open data port 2000:20049 with state NEW it working normally but I
don't want to make a big hole on my firewall. I suspect that the iptables
connection tracking cannot track the relation between command port and data
port because it is encrypted using SSL. Is it true or is there something I
miss here?? What should I do now?? 

Thank u 

Rendy

STATUS:>  	Getting listing ""...
STATUS:>  	Connecting to ftp server xx.xx.xx.xx:990 (ip =
xx.xx.xx.xx)...
STATUS:>  	Socket connected. Waiting for welcome message...
STATUS:>  	Enter Serial Number
STATUS:>  	Connected. Exchanging encryption keys...
STATUS:>  	SSL encrypted session established.
		220 Serv-U FTP Server v3.0 for WinSock ready...
STATUS:>  	Connected. Authenticating...
COMMAND:>	USER ftpadmin
		331 User name okay, need password.
COMMAND:>	PASS *****
		230 User logged in, proceed.
STATUS:>  	Login successful.
COMMAND:>	PWD
		257 "/" is current directory.
STATUS:>  	Home directory: /
COMMAND:>	FEAT
		500 'FEAT': command not understood.
STATUS:>  	This site doesn't support the 'features' command.
COMMAND:>	REST 100
		350 Restarting at 100 - send STORE or RETRIEVE to initiate
transfer.
STATUS:>  	This site can resume broken downloads.
COMMAND:>	TYPE A
		200 Type set to A.
COMMAND:>	REST 0
		350 Restarting at 0 - send STORE or RETRIEVE to initiate
transfer.
COMMAND:>	PBSZ 0
		500 'PBSZ': command not understood.
COMMAND:>	PROT P
		500 'PROT': command not understood.
COMMAND:>	PASV
		227 Entering Passive Mode (xx,xx,xx,xx,xx,xx)
COMMAND:>	LIST
STATUS:>  	Connecting ftp data socket xx.xx.xx.xx:20028...
ERROR:>   	Can't connect to remote server. Socket error = #10060.
ERROR:>   	Failed to establish data socket.


[-- Attachment #2: Type: text/html, Size: 6108 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: secure ftp with SSL
@ 2002-09-16  4:21 Rendy V
  2002-09-16  8:32 ` Roy Sigurd Karlsbakk
  2002-09-17 16:44 ` Alistair Tonner
  0 siblings, 2 replies; 7+ messages in thread
From: Rendy V @ 2002-09-16  4:21 UTC (permalink / raw)
  To: 'netfilter@lists.samba.org'; +Cc: 'Roy Sigurd Karlsbakk'

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

roy,
yes, i have loaded ip_conntrack_ftp.
Is there any better idea because if i change it i have to change all my
application..

regards,
rendy


On Friday 13 September 2002 05:09, Rendy V wrote:
> Hi All,
> I have a strange problem, the problem is like this :
> I have an application that use secure ftp and for that reason I have
opened
> up the command port (990) with state NEW and allowed data port
> (20000:20049) with state ESTABLISHED, RELATED on the firewall. It fails
> when it try to use data port, for authentication it working just fine.
> Please see the log on the below.
> If I open data port 2000:20049 with state NEW it working normally but I
> don't want to make a big hole on my firewall. I suspect that the iptables
> connection tracking cannot track the relation between command port and
data
> port because it is encrypted using SSL. Is it true or is there something I
> miss here?? What should I do now??

first - have you loaded ip_conntrack_ftp? 

second - I'm not sure the ip_conntrack_ftp module can understand encrypted 
traffic. Try using sftp from openssh instead. That only uses 22/tcp.

roy


[-- Attachment #2: Type: text/html, Size: 1996 bytes --]

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

end of thread, other threads:[~2002-09-17 16:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-13  3:09 secure ftp with SSL Rendy V
2002-09-13  8:43 ` Roy Sigurd Karlsbakk
2002-09-13 10:09   ` Alistair Tonner
2002-09-13 10:20 ` Thomas Lussnig
  -- strict thread matches above, loose matches on Subject: below --
2002-09-16  4:21 Rendy V
2002-09-16  8:32 ` Roy Sigurd Karlsbakk
2002-09-17 16:44 ` Alistair Tonner

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.