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 52 attendees signed up from 14 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 8/25, 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 > SmartDefense
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-11-23
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default SMTP: Blocking spoofed emails

Hi folks,
Can we block spoofed emails on Smartdefense. I didn't see major options on it. We are using NGX 6.0

Background: we've implement SPF records on our DNS server so that people who receives mails form our domainname can check for our SPF records. But our server receives spoofed email with ids emaild@ourdomain where ourdomain is our dnsdomain. Though Symantec brightmail is able to block this mails, but we would like the our sendmail does not receives any mail sent from emailid with our domainname.

any ideas?

Yogi
Reply With Quote
  #2 (permalink)  
Old 2006-11-26
Acidio Acidio is offline
Senior Member
 
Join Date: 2006-10-23
Location: Auckland, NZ
Posts: 110
Rep Power: 2
Acidio has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Hi Yogi,

This might not be exactly how you want to attack this problem, however here goes.

You could implement the SMTP security service on the firewall.
Note: This may require changes to your MX records - depends on your set up.

Create some mail resources which handle dropping and delivery of your mail.

The first resource will have a sender of *@yourdomain. All the other details don't matter for this resource. You'll be using it in your e-mail drop rule.

The second resource will be the one that handles delivery. This one will have a sender of *@*.* (this ensures you don't get e-mail with a null sender), the recipient will be *@yourdomain. All other fields depend on how you want to handle delivery (eg size). Add an IP address in the server field (this is where the mail will be delivered after the firewall has inspected it)

Once you have created these SMTP resources, add rules to the policy:
First mail rule (to drop *@yourdomain)......

src = any
dest = Mail server object (public IP)
service = smtp->antispoof-resource
action = drop

Second mail rule (to deliver mail).....
src = any
dest = Mail server object (public IP)
service = smtp->maildelivery-resource
action = accept

This will give you added visibility of mail passing through the firewall also, as it adds more detail to the information column in smart view tracker
Reply With Quote
  #3 (permalink)  
Old 2006-11-27
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Thanks dude.
will check how it goes.
but ur solution is good.
thx
yogi
Reply With Quote
  #4 (permalink)  
Old 2006-11-27
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

is there no issue from security side if we enable mail server on CP box?

Thanks
Yogi
Reply With Quote
  #5 (permalink)  
Old 2006-11-27
Acidio Acidio is offline
Senior Member
 
Join Date: 2006-10-23
Location: Auckland, NZ
Posts: 110
Rep Power: 2
Acidio has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Depends on your point of view really. I don't see too many issues with using the security service. The only issue you may find is additional load on the FW.

One thing I forgot to mention. Change the banner text for the security service in Policy, Global Properties, Firewall, Security Server. The default shows a Checkpoint banner.
Reply With Quote
  #6 (permalink)  
Old 2006-11-28
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Hi Dude,
One small doubt:
I will create following rules:-
Source Destinaiton Service Action
Any MailServersPublicIP smtp-->antispooef-resource Drop
Any MailServersPublicIP smtp--> maildelivery-resource Accept
I created two resource objects and specified *.@mydomain in first resource and nothing in second resource.

In my view i don't need to enable any mail server on CP box? right?
the rules will handle this.
if it works its gr8 logic. i remember using ftp resource object to block get/put.
Thanks again
Yogi
Reply With Quote
  #7 (permalink)  
Old 2006-11-28
abusharif abusharif is offline
Senior Member
 
Join Date: 2006-04-27
Location: Twillight zone
Posts: 442
Rep Power: 3
abusharif has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

personaly i would never recommend use of smtp security server in production enviroment. Like mentioned above, performance is questionable and most of all reliability of mdq process which in some cases work as it wants, dies, core dumps etc.
Reply With Quote
  #8 (permalink)  
Old 2006-11-28
Acidio Acidio is offline
Senior Member
 
Join Date: 2006-10-23
Location: Auckland, NZ
Posts: 110
Rep Power: 2
Acidio has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Hi Yogi,

The resource use for dropping the e-mail will have *@yourdomain in the sender and the delivery resource will have*@yourdomain in the recipient field.

As you mentioned, you could leave the delivery resource sender/recipient fields blank (or use *) if you want to.

If you have multiple domains you can specify all of these in the recipient field. Just put braces {} around them and separate each with a comma.

You shouldn't need to do anything else (unless you've edited files to disable the SMTP sec service)
Reply With Quote
  #9 (permalink)  
Old 2006-11-29
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

Thanks dude.
i m tempted to test it.

will update on test results, once my changes are apporved from long change approval cycle :)

Yogi
Reply With Quote
  #10 (permalink)  
Old 2006-12-12
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

guys i've implemented it and its working perfect.
thx Acidio for your help.


kudos to CPUG & Acidio.

Yogi
Reply With Quote
  #11 (permalink)  
Old 2006-12-18
yogi_ccse yogi_ccse is offline
Member
 
Join Date: 2006-11-08
Posts: 55
Rep Power: 2
yogi_ccse has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

hi acidio/guyd,

i implemented the solution but facing some issues:-

1. some spoofed emails are still making their way to internal server. even i cld see many many are getting blocked on CP.... is it due to high volume of mails ?

2. Firewall is querying internal dns server for so many dns queried why ?


needs reply/help asap/.
thx
Yogi
Reply With Quote
  #12 (permalink)  
Old 2006-12-20
Acidio Acidio is offline
Senior Member
 
Join Date: 2006-10-23
Location: Auckland, NZ
Posts: 110
Rep Power: 2
Acidio has an average reputation (10+)
Default Re: SMTP: Blocking spoofed emails

You could try debugging the in.smtpd and mdq processes. see the following kb article on how to do this.

https://secureknowledge.checkpoint.c....do?id=sk31990

When you say many are being blocked on CP, is the firewall dropping them or are there many mail files in the spool folder(s)?

Also, I haven't seen the security service deliver what is expected to be blocked.
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 17:45.


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