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 12/8, (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 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 2007-11-01
Member
 
Join Date: 2006-11-16
Location: Tallinn, Estonia
Posts: 82
Rep Power: 3
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Firewall changes FTP filename?

I am using CP NG AI R55 firewall and have following problem: When transfering files from inside network to outside, some of the file names chane. The last symbol in filename is replaced with underscore "_".

With tcpdump i have found out that the filename does change inside firewall, but i wonder why. Has anyone had such kind of problems?
__________________
CCNA certified
Reply With Quote
  #2 (permalink)  
Old 2007-11-01
Senior Member
 
Join Date: 2006-05-24
Location: India
Posts: 151
Rep Power: 3
vijayant has an average reputation (10+)
Default Re: Firewall changes FTP filename?

pl check if the rule allowing the FTP access is matching some URI Resource ? In URI is there something in the "replace"
Reply With Quote
  #3 (permalink)  
Old 2007-11-01
Member
 
Join Date: 2006-11-16
Location: Tallinn, Estonia
Posts: 82
Rep Power: 3
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Re: Firewall changes FTP filename?

The rule only check source and destination address and matches ftp service...

227 is renamed into 22_
__________________
CCNA certified
Reply With Quote
  #4 (permalink)  
Old 2008-01-02
Junior Member
 
Join Date: 2006-10-27
Posts: 7
Rep Power: 0
Weaver has an average reputation (10+)
Default Re: Firewall changes FTP filename?

Quote:
Originally Posted by Reaper View Post
The rule only check source and destination address and matches ftp service...

227 is renamed into 22_
Guess this answer is a little to late, anyhow, this behaviour is caused by SmartDefense. Also for example an "mkdir test227" will result in a new dir "test22_".

Smartdefense changest the string and reports a possible "FTP Bounce attack". I'm not sure but I think it doesn't look _where_ the 227 appears, but it interprets it as the 227 code for entering passive mode. Not very smart imho.

The only way I found to fix it is to make a new service, tcp port 21 with no application defined, which implies that also no other ftp checks will work. Does anyone have a better workaround?
Reply With Quote
  #5 (permalink)  
Old 2008-01-04
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,670
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: Firewall changes FTP filename?

There is a HF available from TAC for this "227" attack.
Reply With Quote
  #6 (permalink)  
Old 2008-01-04
Member
 
Join Date: 2006-11-03
Posts: 34
Rep Power: 0
inetd has an average reputation (10+)
Default Re: Firewall changes FTP filename?

Does anybody know where it is?
Reply With Quote
  #7 (permalink)  
Old 2008-01-04
Member
 
Join Date: 2006-11-03
Posts: 34
Rep Power: 0
inetd has an average reputation (10+)
Default Re: Firewall changes FTP filename?

The fix appears only to be for R55. I have got a box I am seeing it on R60.

They have not updated Smart Defense in a well, wondering if this has been patched there or not.
Reply With Quote
  #8 (permalink)  
Old 2008-01-04
Senior Member
 
Join Date: 2006-03-19
Location: Northern Ohio
Posts: 909
Rep Power: 3
RayPesek has an average reputation (10+)
Default Re: Firewall changes FTP filename?

I see it occasionally on R61. Since we only accept files from known sources, I just set the SmartDefense bounce protection to "monitor only."

Ray
Reply With Quote
  #9 (permalink)  
Old 2008-01-16
Member
 
Join Date: 2006-11-16
Location: Tallinn, Estonia
Posts: 82
Rep Power: 3
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Re: Firewall changes FTP filename?

Quote:
Originally Posted by Weaver View Post
Guess this answer is a little to late, anyhow, this behaviour is caused by SmartDefense. Also for example an "mkdir test227" will result in a new dir "test22_".

Smartdefense changest the string and reports a possible "FTP Bounce attack". I'm not sure but I think it doesn't look _where_ the 227 appears, but it interprets it as the 227 code for entering passive mode. Not very smart imho.

The only way I found to fix it is to make a new service, tcp port 21 with no application defined, which implies that also no other ftp checks will work. Does anyone have a better workaround?
Ok, thank you, now I at least know what's the causing that problem. Unfortunately I cannot create blank FTP service, firewall configuration is too complicated and that would surely break something else in FTP transfers.

I found another forum where the same problem was described:
IT Resource Center forums - strange FTP behaviour through firewall

Replacing 227 with 22_ everywhere sounds more like DumbDefense.
__________________
CCNA certified
Reply With Quote
  #10 (permalink)  
Old 2008-01-21
Junior Member
 
Join Date: 2006-05-20
Posts: 28
Rep Power: 0
fdamstra has an average reputation (10+)
Default Re: Firewall changes FTP filename?

We ran into this on 12/27, as a number of vendors send us files that end in the date stamp.

This was supposedly fixed in R65 HFA2. I expect I won't know for sure until 02/27.
Reply With Quote
  #11 (permalink)  
Old 2008-01-21
Senior Member
 
Join Date: 2006-09-26
Posts: 821
Rep Power: 3
cciesec2006 has an average reputation (10+)
Default Re: Firewall changes FTP filename?

I am in the information security business and I work for a financial service
company.

Prior to me joining the company, people were using ftp for transferring
data across the network. What the hell were they thinking?

I started enforcing the company security policy, i.e. no more ftp or telnet
over the network, even internally. Everything has to be ssh version 2
with AES256-cbc/sha-1. Instead of using FTP, I force everyone to
use SecurerFTP. If SSH is available, then SFTP is also available because
SFTP is a sub-system.

This is 2008, not 1998. FTP should not be used anywhere.

my 2c
Reply With Quote
  #12 (permalink)  
Old 2008-01-21
Member
 
Join Date: 2008-01-10
Location: Orlando, FL
Posts: 75
Rep Power: 1
rokudan has an average reputation (10+)
Send a message via AIM to rokudan
Default Re: Firewall changes FTP filename?

Quote:
Originally Posted by cciesec2006 View Post
I am in the information security business and I work for a financial service
company.
Me too my friend!

Quote:
Originally Posted by cciesec2006 View Post
Prior to me joining the company, people were using ftp for transferring
data across the network. What the hell were they thinking?

I started enforcing the company security policy, i.e. no more ftp or telnet
over the network, even internally. Everything has to be ssh version 2
with AES256-cbc/sha-1. Instead of using FTP, I force everyone to
use SecurerFTP. If SSH is available, then SFTP is also available because
SFTP is a sub-system.

This is 2008, not 1998. FTP should not be used anywhere.

my 2c
We have actually put in place several methods for data transfer, since we are actually a datacenter that hosts over 130 different clietns, we had to come up with ways to accomodate them all..

Secure FTP, SSH as well... However we customized an open source app that works through an https interface. We have found that most of our clients prefer that because, well.... They are not so computer inclined and a web browser makes things easy for them.

But I agree... Out with FTP for anything you want to keep secure.
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 21:13.


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