CPUG

The Check Point User Group

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

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Check Point SecurePlatform (SPLAT)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-06-24
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default SFTP to SPLAT Server

For the love of GOD, can someone please list out the steps for what needs to be done in order to enable SFTP to a SPLAT MGMT server? I don't know why this is such an "hidden" setup... it seems Checkpoint's SK is even confused.

Thanks for the help!
Reply With Quote
  #2 (permalink)  
Old 2006-06-25
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Which SK do you mean?
Reply With Quote
  #3 (permalink)  
Old 2006-06-25
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

I can't even find the SK now on Checkpoint's KB site, but I did find it listed on another site:

Check SecureKnowledge!

Solution ID: sk26258
In HFA 04 the SSH package was hardened to prevent users with regular
permissions from copying files to SecurePlatform from the outside

Procedure:
In expert mode on SecurePlatform:

1) create /etc/scpusers file

"[EMAIL PROTECTED] touch /etc/scpusers"

2) Open "scpusers" with a text editor such as vi.

"[EMAIL PROTECTED] vi /etc/scpusers"

3) Add authorized users, list 1 per line.

NOTE:
Only users listed in this file will be allowed to use scp.

4) Restart ssh with 'service sshd restart' on command line


I've done this before without any luck. I've also been to training where the instructor said to just add a new user, change the users shell to BASH in \etc\passwd and also chaneg the Users DIR. I've done this and still no luck. I 've also been told that you DO NOT need to create a scpusers file and add users to it.
Reply With Quote
  #4 (permalink)  
Old 2006-06-25
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Your instructor is right. You need only to change shell in /etc/passwd file from /bin/cpshell to /bin/bash. I usually use this method. Also access to SCP is controlled by file /etc/scpusers. You can find this in SecurePlatform UserGuide. So you can use two methods to allow scp.
Now about your problem. What client do you use? Do you see anything about your ssh connection in Tracker? Can you see packets on server from client by tcpdump (for example)?

Last edited by kva.kva; 2006-06-25 at 11:27.
Reply With Quote
  #5 (permalink)  
Old 2006-06-25
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Ahhh...maybe I'm on to something here. I took a look at the SPLAT User Guide and I didn't find any reference to "etc/scpusers" in it. Now I'm running R55, so I took a look at the R60 SPLAT User Guide and it DOES have reference to "etc/scpusers", so does this apply to R55? And if not, do you know a work around in R55?

I did look in Tracker and the SSH traffic is logged and is passing. I haven't checked a TCPDUMP yet.

Thanks for your help!
Reply With Quote
  #6 (permalink)  
Old 2006-06-25
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

I found SK26258 about scpusers, it applies to R55 HFA-04 or newer. I didn't use this feature on R55, so i'm not sure at 100%.
But changing shell to /bin/bash is working at R55, i used it.
What do you see in /var/log/secure on SPLAT?
Reply With Quote
  #7 (permalink)  
Old 2006-06-25
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

And don't confuse - SFTP isn't equal SCP (I read header of your post :) ).
Reply With Quote
  #8 (permalink)  
Old 2006-06-25
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Good to know... i thought they were the same for some reason.
Reply With Quote
  #9 (permalink)  
Old 2006-06-25
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

regarding /var/log/secure, it shows:

"User test3 not allowed because non of the user's groups are listed in AllowGroups"

then below that is:

"Failed password for illegal user test3 from 192.168.1.2 port 2762 ssh2"

This is using WinSCP3 as a client and it set to use SCP.
Reply With Quote
  #10 (permalink)  
Old 2006-06-26
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Try to find AllowGroups in /etc/ssh/ssd_config. What does it have?
Reply With Quote
  #11 (permalink)  
Old 2006-06-26
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: SFTP to SPLAT Server

On my server I have "AllowGroups root". So I think, group root should includes your user login test3. Or you can edit string to "AllowGroups root, test3".
Reply With Quote
  #12 (permalink)  
Old 2006-06-26
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,681
Rep Power: 5
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: SFTP to SPLAT Server

Quote:
Originally Posted by kva.kva
And don't confuse - SFTP isn't equal SCP (I read header of your post :) ).
Check Point does not, for reasons unknown, support SFTP. Much to my dismay, VanDyke, who's ssh tools I've been using for years, doesn't support SCP :(
Reply With Quote
  #13 (permalink)  
Old 2006-06-30
Junior Member
 
Join Date: 2005-10-13
Posts: 14
Rep Power: 0
tty35 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

I ended up using OpenSSH and SCP'ing the file from the Mgmt Server to the SSH box. Thanks for your help.
Reply With Quote
  #14 (permalink)  
Old 2006-07-27
Junior Member
 
Join Date: 2005-09-05
Posts: 1
Rep Power: 0
rjdriscoll has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Changing our shell from cpshell to bash allowed us to SCP files off of SPLAT in R61, but not in R55. For R55 we use /etc/scpusers.

Last edited by rjdriscoll; 2006-07-27 at 13:59.
Reply With Quote
  #15 (permalink)  
Old 2006-07-31
Junior Member
 
Join Date: 2006-04-26
Posts: 21
Rep Power: 0
BruceR has an average reputation (10+)
Default Re: SFTP to SPLAT Server

I use OpenSSH for Windows on my PC http://sshwindows.sourceforge.net/
C:\temp>scp filename user@hostname:/~
user@hostname's password:
filename 100% 3402 3.3KB/s 00:00
I also mourn the lack of compatible protocols between SPLAT and VanDyke.

This is on R55 and user is in /etc/scpusers. That's all I changed.

hth
Bruce
Reply With Quote
  #16 (permalink)  
Old 2007-02-16
Junior Member
 
Join Date: 2006-12-04
Location: Lausanne, Switzerland
Posts: 3
Rep Power: 0
colliardr has an average reputation (10+)
Default Re: SFTP to SPLAT Server

I was trying to use SFTP but finally it is not needed... let me explain :

In fact Checkpoint doesn't support sftp in SPLAT.
To see by yourself have a look at /etc/ssh/sshd_config... at the end of the file sftp-subsystem is commented out, telling path of executable is /usr/libexec/openssh/sftp-server and there (in the given path) is NO such file... (so uncommenting it won't help).

BUT scp (securecopy) is supported, see SK26258.

And SK (secureknowledge) is telling that since NGX HFA04 SCP access through /etc/scpusers authorization will be mandatory :

Symptoms

* Error: "Lost connection" using scp with SecurePlatform, user is prompted for password. After entering password, connection drops with "lost connection" error message.
* Error occurred after applying HFA-04 or newer to SecurePlatform.

Cause
In HFA 04 the SSH package was hardened to prevent users with regular permissions from copying files to SecurePlatform from the outside
Solution
The Secure Copy Protocol, scp is an SSH protocol extension allowing for secure, encrypted connections to copy and or ftp files to or from a system that allows remote connections.


So after having added user "admin" in file /etc/scpusers, you will be able to SCP'ing to the SPLAT box with a gui client WinSCP like my old favorite Norton Commander which is supporting SCP connection (though sftp is default method, don't forget to change it on session options).

Another (cool) way to do it is through Cygwin linux on windows framework (see www.cygwin.com) also for free.

WinSCP homepage (free and opensource) :
http://winscp.net/eng/download.php
Reply With Quote
  #17 (permalink)  
Old 2007-06-01
Member
 
Join Date: 2007-03-09
Location: Singapore
Posts: 31
Rep Power: 0
wicked has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Here are some simple instructions for anyone to follow:
Attached Files
File Type: txt Enable SCP for SPLAT NGX r62.txt (558 Bytes, 384 views)
__________________
CEH, CCSE, CISSP
Reply With Quote
  #18 (permalink)  
Old 2007-06-02
Member
 
Join Date: 2006-06-27
Location: United Kingdom
Posts: 73
Rep Power: 3
munrog has an average reputation (10+)
Send a message via MSN to munrog Send a message via Skype™ to munrog
Default Re: SFTP to SPLAT Server

Wicked,

Your instructions are correct, however there are "more correct" ways of implementing this ie without the reboot.

1) Login with the admin account
2) Enter Expert mode
3) Type
adduser username -g root
4) Enter the password when prompted
5) Type
chsh -s /bin/bash username
Note that if you want tcsh replace "/bin/bash" with "/bin/tcsh" or if you wish to return the user back to using the Check Point shell "/bin/cpshell"

6) Type vi /etc/scpusers
7) Add the username on one line within this file
8) Type
service sshd restart
Reply With Quote
  #19 (permalink)  
Old 2007-06-08
Junior Member
 
Join Date: 2007-04-19
Posts: 2
Rep Power: 0
jmhill1976 has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Quote:
Originally Posted by BruceR View Post
I use OpenSSH for Windows on my PC sshwindows.sf.net: OpenSSH for Windows
C:\temp>scp filename user@hostname:/~
user@hostname's password:
filename 100% 3402 3.3KB/s 00:00
I also mourn the lack of compatible protocols between SPLAT and VanDyke.

This is on R55 and user is in /etc/scpusers. That's all I changed.

hth
Bruce
Good stuff. I burned a couple of hours yesterday afternoon attempting to SCP some debug files over from my new UTM-1, using "vcp.exe" - VanDyke's SCP executable for Windows.

After reading this post I installed OpenSSH, edited the scpusers file, and was rolling in no time.
Reply With Quote
  #20 (permalink)  
Old 2008-07-29
Junior Member
 
Join Date: 2006-06-21
Posts: 14
Rep Power: 0
rtfmoz has an average reputation (10+)
Default Re: SFTP to SPLAT Server

Well,

Actually you can get sftp working but that involves getting a RHEL3 sftp-server binary and copy it into the correct location on your splat system. Then uncomment the sftp-subsystem option in sshd_config. It works and I use it but of course this means Checkpoint have every right to say they wont support your platform because you modified it. I figure the access control is managed by SSH so I don't see the problem but then I am no expert in this area. Like the original poster, I use Vandyke products and sftp is very useful.

Regards

rtfmoz
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 23:00.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0