CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have 72 attendees signed up from 20 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-10-24
runcmd runcmd is offline
Member
 
Join Date: 2006-02-21
Location: 127.0.0.1
Posts: 56
Rep Power: 3
runcmd has an average reputation (10+)
Default Simple File Transfer Protocol (SFTP) and High Ports

A user of ours needs to transmit a file to a vendor on a regular basis and the vendor has requested the use of SFTP through the application "WS_FTP". Initially, the vendor indicated that only TCP port 115 would need to be opened outbound through our firewall, which we granted; however, the transfer is failing. The WS_FTP log indicates "425 Can't open data connection". When I watched the attempt in SmartView Tracker, I see traffic being passed on 115, but dropped on ports 1663, 1664, and 1665 at the same time as the failures. The vendor now says, "By-the-way, you also need to open ports 1025 through 65000."

I'm assuming that SFTP is attempting to operate similarly to a Passive FTP connection and is trying to establish a data connection on a higher port. I know that CheckPoint is intelligent enough to make the switch to higher ports when negotiating an FTP connection. Questions:

1. Is SFTP truly trying to negotiate to a higher port?
2. Is there a way around this, other than opening up the range 1025 through 65000?

Thanks!

(NG R55)
Reply With Quote
  #2 (permalink)  
Old 2006-10-24
northlandboy northlandboy is offline
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 786
Rep Power: 3
northlandboy has an average reputation (10+)
Default Re: Simple File Transfer Protocol (SFTP) and High Ports

Why not use scp (tcp/22 only)?
Reply With Quote
  #3 (permalink)  
Old 2006-10-24
runcmd runcmd is offline
Member
 
Join Date: 2006-02-21
Location: 127.0.0.1
Posts: 56
Rep Power: 3
runcmd has an average reputation (10+)
Default Re: Simple File Transfer Protocol (SFTP) and High Ports

Ya know, I did a search of the forums (and the internet) prior to posting and saw reference to SCP, but couldn't find much information on it otherwise. Please forgive my ignorance, but what are the differences between SFTP and SCP? (Any reference information, like an RFC, would be great!) Would a different hosting service need to be active on the external server side? (Like SSH vs. FTP) If they'd need to change services on the vendor's side, it probably isn't going to fly. Thanks for the speedy response!
Reply With Quote
  #4 (permalink)  
Old 2006-10-24
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: Simple File Transfer Protocol (SFTP) and High Ports

http://winscp.net/eng/docs/protocols

From http://forums.vandyke.com/showthread.php?t=435
"...As you have discovered, using scp to transfer file to/from a server actually uses SSH to remotely execute scp on the remote machine, then sends the files over through the pipe created by the remote execution. If the remote machine (e.g. a windows machine) does not have scp installed, scp will not work.

SFTP, the SSH file transfer protocol, does not execute some arbitrary program on the remote side. Rather, both the client and server speak SFTP to read and write files. SFTP requires SSH version 2 (a.k.a. SSH2)..."

About SFTP. Some servers can restrict range of high ports for connection, for example vsftpd.

Last edited by kva.kva; 2006-10-24 at 07:28.
Reply With Quote
  #5 (permalink)  
Old 2006-10-24
runcmd runcmd is offline
Member
 
Join Date: 2006-02-21
Location: 127.0.0.1
Posts: 56
Rep Power: 3
runcmd has an average reputation (10+)
Default Re: Simple File Transfer Protocol (SFTP) and High Ports

Thanks for the info! Hum... Now I'm really confused. It seems there's one acronym for two protocols: Does SFTP stand for "SSH File Transfer Protocol" or "Simple File Transfer Protocol?... Apparently, both! :-)

Based upon what I'm reading, Wikipedia indicates that the Simple File Transfer Protocol uses port 115, which matches up with the port number I was provided by our vendor. SSH File Transfer Protocol seems to function inside of an already established SSH connection, through port 22--closely matching what northlandboy mentioned.

Now, I see that there is also an FTPS (a.k.a. FTP Secure), which operates in conjunction with SSL. After establishing the initial connection on port 21, I'd assume FTPS would then switch to port 443 for the encrypted portion of the session (?)...

Quote:
The client connects to the server port 21 and starts an unencrypted FTP session as normal, but requests that TLS security be used and performs the appropriate handshake before sending any sensitive data.
http://en.wikipedia.org/wiki/FTPS
According to the article provided by kva.kva, it appears that, in order to use SCP, an SSH connection would also first need to be established. Therefore, in response to my number two question, the vendor would need to configure their server to accommodated SSH prior switching from Simple FTP on port 115 (not SSH FTP) to SCP. Correct?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:45.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0