CPUG

The Check Point User Group

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

1. CCSA or CCSE One-Week Certification Training Courses with CPUG in Beautiful San Francisco!
    R70 CCSA Courses Starting (2010) 6/7, 7/12, 8/9, 10/11, 11/8, 12/6.  R70 CCSE Courses Starting (2010) 8/16.
2. CPUG CON 2010 EUROPE, the User Conference in Switzerland, September 20th-22nd, 2010!
3. Join Our CPUG Groups On LinkedIn and Facebook.  See Our Channel on YouTube.


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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 2006-11-01
Member
 
Join Date: 2006-07-21
Posts: 34
Rep Power: 0
Kubann has an average reputation (10+)
Default Policy Based Routing

Hi there

How does one configure the checkpoint firewall to route for eg smtp traffic out to a certain interface only.

I know Checkpoint on the rule base has only permit , deny , traffic classification.

But there is no where, to specify on what interface the traffic should go out or come in

Please help
Reply With Quote
  #2 (permalink)  
Old 2006-11-01
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 1,872
Rep Power: 6
northlandboy has an average reputation (10+)
Default Re: Policy Based Routing

Check Point doesn't do (or really care about) routing.

That's up to the OS. Check Point enforces policy in terms of what is allowed, not how to route it.

You'll need to look into what's possible with whatever OS your firewall is running on.
Reply With Quote
  #3 (permalink)  
Old 2006-12-11
Junior Member
 
Join Date: 2006-05-01
Location: Halifax, Nova Scotia, Canada
Posts: 7
Rep Power: 0
membree has an average reputation (10+)
Default Re: Policy Based Routing

Policy routing based on source IP can be done on SmartPlatform, however, Check Point provide no support for doing this so you need to figure out how from Linux documentation and manually issue the appropriate commands in rc.local.

Any policy routing that would require tagged packets is not possible on SPLAT because NetFilter is not installed.
Reply With Quote
  #4 (permalink)  
Old 2007-01-04
Junior Member
 
Join Date: 2006-08-30
Posts: 5
Rep Power: 0
packnet has an average reputation (10+)
Default Re: Policy Based Routing

I've asked about this on Nokia IPSO and was told that it wasn't supported - by IP address, so I would assume that it certainly wouldn't do so based on protocol.

If you're trying to get SMTP to route one direction, you might put a relay server in a DMZ and have your internal SMTP servers point to it. Just a thought, this might not cover what you're trying to do.
Reply With Quote
  #5 (permalink)  
Old 2007-01-07
Member
 
Join Date: 2006-01-25
Posts: 33
Rep Power: 0
linuxsrc has an average reputation (10+)
Default Re: Policy Based Routing

If your platform is Linux (including Crossbeam/Resilience/SecurePlatform/Redhat...), you can do whatever you want, for Linux support advaned routing, so you can configure the Policy-Based routing using 'ip rule' and 'ip route', good luck!
Reply With Quote
  #6 (permalink)  
Old 2007-01-11
Junior Member
 
Join Date: 2006-09-18
Posts: 19
Rep Power: 0
rayden69 has an average reputation (10+)
Default Re: Policy Based Routing

The way to do this is with the use of all of the policy including NAT and a little bit of what is called in the Cisco world PAT. Since you are only asking tcp port 25 (SMTP) to go out the other interface you will need to set up a NAT rule before you overload traffic.

on the Original Packet Side:

Source: the network, group or host
Destination: you can set as any (if you do this you may need to build a no nat between your own networks rule prior to this)
Service: SMTP (TCP 25)

Translated Packet Side:

Source: the ip nat ip you want all smtp traffic coming from (has to be on the inteface side you want traffic to go out)
Destination: any
Service: SMTP

After that you will need a rule allowing traffic outbound

you will then most likely want to reverse this for incoming traffic and set your mx to the nat ip you specified above.

If you this isn't clear enough please let me know and I can give examples!
Reply With Quote
  #7 (permalink)  
Old 2007-01-11
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 1,872
Rep Power: 6
northlandboy has an average reputation (10+)
Default Re: Policy Based Routing

Quote:
Originally Posted by rayden69 View Post
The way to do this is with the use of all of the policy including NAT and a little bit of what is called in the Cisco world PAT. Since you are only asking tcp port 25 (SMTP) to go out the other interface you will need to set up a NAT rule before you overload traffic.

on the Original Packet Side:

Source: the network, group or host
Destination: you can set as any (if you do this you may need to build a no nat between your own networks rule prior to this)
Service: SMTP (TCP 25)

Translated Packet Side:

Source: the ip nat ip you want all smtp traffic coming from (has to be on the inteface side you want traffic to go out)
Destination: any
Service: SMTP

After that you will need a rule allowing traffic outbound

you will then most likely want to reverse this for incoming traffic and set your mx to the nat ip you specified above.

If you this isn't clear enough please let me know and I can give examples!
Can you explain how this will work? I can source NAT something to anything I want to, but that isn't going to control how the OS will route it. If you implement that NAT, it will still get routed out whatever interface is the default. This will only change the behaviour of where reply packets go to. You are then in an asymmetric routing situation, which will probably work if they are simple routers outside the firewall, but it becomes a pain after a while, especially for troubleshooting.
Reply With Quote
  #8 (permalink)  
Old 2007-01-11
Junior Member
 
Join Date: 2006-09-18
Posts: 19
Rep Power: 0
rayden69 has an average reputation (10+)
Default Re: Policy Based Routing

you are correct, you will either need to at a static route for the host (mail server) or add 2 equal cost default routes out if you are hiding networks.
Through use of NAT you can get the traffic to route back correctly.

In our case we use dynamic routing (OSPF) between the border routers and the nokia firewalls in area 2 and OSPF internal as well internal in backbone area 0

Although your internal routing table can either be static as well.
Reply With Quote
  #9 (permalink)  
Old 2007-01-11
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 1,872
Rep Power: 6
northlandboy has an average reputation (10+)
Default Re: Policy Based Routing

equal cost default routes is going to do load sharing for all traffic - it's not going to achieve the stated goal of routing SMTP traffic via one interface only.

If you want to ensure certain traffic doesn't swamp other traffic, it's probably better to achieve it with a traffic management solution - e.g Packeteer, Floodgate.
Reply With Quote
  #10 (permalink)  
Old 2007-01-11
Junior Member
 
Join Date: 2006-09-18
Posts: 19
Rep Power: 0
rayden69 has an average reputation (10+)
Default Re: Policy Based Routing

I should add we also use floodgate as well however depending on your licenses this may/may not already be available to you.
Reply With Quote
  #11 (permalink)  
Old 2009-10-05
Junior Member
 
Join Date: 2005-08-19
Location: NL
Posts: 3
Rep Power: 0
hansen68 has an average reputation (10+)
Default Re: Policy Based Routing

U need source based routing either on the firewall or u can use a router between Firewall and internet that can deal with that.
If u use linux/SPLAT/UTM heres a way to get it done.
Not written by me, but i tested it and it works.

RouterA || RouterB
1.1.1.2 || 1.1.1.3
||
Fw-ext-ip(1.1.1.1)
Firewall==================DMZ(192.168.0.0/24)
Fw-int-ip(10.0.0.1/24)

We assume that the default gw to RouterA.
route add default gw 1.1.1.2

Now we will define policy based routing. We need to define a Table ID and an alias for it.

Defining Alias:
=================
Edit /etc/iproute2/rt_tables file. As you see below we have added ID 23 to alias adsl.

#more rt_tables
#
# reserved values
#
#255 local
#254 main
#253 default
#0 unspec
#
# local
#
#1 inr.ruhep
23 adsl


You may use below command for this:
#echo 23 adsl >> /etc/iproute2/rt_tables

Then we will specify which source ip address will be use this table:
#ip rule add from 10.0.0.5/24 table adsl (all lan IPs will use this table)

Lets specify this adsl table's default gateway to RouterB
#ip route add default via 1.1.1.3 dev eth0 table adsl

We have to add following rule in order to give access from 10.0.0.x to the dmz
#ip route add 192.168.0.0/24 dev eth2 table adsl

To activate changes type following
#ip route flush cache

After reboot things we made will not be remain. We have to add all the commands to rc.local file to make changes permenant after reboot.


ip rule add from 10.0.0.0/24 table adsl
ip route add default via 1.1.1.3 dev eth0 table adsl
ip route add 192.168.0.0/24 dev eth2 table adsl
ip route flush cache
Reply With Quote
  #12 (permalink)  
Old 2009-10-05
Senior Member
 
Join Date: 2009-04-14
Location: Ottawa, Ontario, Canada
Posts: 257
Rep Power: 2
plamy has an average reputation (10+)
Default Re: Policy Based Routing

Quote:
Originally Posted by packnet View Post
I've asked about this on Nokia IPSO and was told that it wasn't supported - by IP address, so I would assume that it certainly wouldn't do so based on protocol.

If you're trying to get SMTP to route one direction, you might put a relay server in a DMZ and have your internal SMTP servers point to it. Just a thought, this might not cover what you're trying to do.
Policy based routing on IPSO was introduced in IPSO 4.2 b 69. You would be able to send all SMTP traffic out a particular interface if you wanted to. It is always recommended to run the latest version of IPSO, for example there is a PBR/SXL fix in IPSO 4.2 b 105.

-Pierre
Reply With Quote
  #13 (permalink)  
Old 2009-11-08
Junior Member
 
Join Date: 2009-10-15
Location: GVA
Posts: 1
Rep Power: 0
alain_B72 has an average reputation (10+)
Default Re: Policy Based Routing

Hello,

as anyone a good pointer where to find doc to start configuring PBR ? we are thinking of on a ip390 4.2 flash box.

Thx
Reply With Quote
  #14 (permalink)  
Old 2009-11-24
Senior Member
 
Join Date: 2007-06-05
Location: Earth
Posts: 448
Rep Power: 4
hotice_ has an average reputation (10+)
Default Re: Policy Based Routing

Has anyone been able to implement this with R70?

Seems simple but was unable to make this work
Reply With Quote
  #15 (permalink)  
Old 2010-01-14
Junior Member
 
Join Date: 2006-12-11
Posts: 11
Rep Power: 0
accesslimiter has an average reputation (10+)
Default Re: Policy Based Routing

I have this working on R70.2, I do know ISP redundancy, url filtering, antivirus and performance pack break it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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:18.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.1