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 sign-ups from twelve different countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 7/14, 8/25, 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8.
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 > ISP Redundancy
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-11-01
Porter Porter is offline
Senior Member
 
Join Date: 2006-07-10
Posts: 163
Rep Power: 2
Porter has an average reputation (10+)
Default Force one ISP with ISP REDUNDANCY

In the meantime I found a way with splat to force a host or a network to be reachable over on iSP while ISP RED. is active in loadsharing or primary/backup mode. If you want to make shure that only ISP A is used for that host or network you can simply do this with source or policy routing. In that case don't use the "NAT the behind the GW", just use a public adress from ISP A or NAT it manually to that IP. Routing is done after the packets went through CP, what ever which mode you've definded for ISP RED. packets will go always that way you definded in the routing policy, now an example how this could look like:

First of all create table(s) in /etc/iproute2/rt_tables:
echo 200 ISP A >> /etc/iproute2/rt_tables

Afterwards add rules to the table(s):
ip rule add from 10.0.0.10 table ISP A

Verify that information has been set:
ip rule ls

You should now see something like this:
0: from all lookup local
32765: from 10.0.0.10 lookup ISP A
32766: from all lookup main
32767: from all lookup default

Now add the routes to the table:
ip route add default via 194.162.56.1 dev ethx table ISP A

194.162.56.1 means the router from ISP A
ethx is the interface attached to that ISP

Note: All other networks that have to be reached behind the FW need to be added to the policy, also if you have already a existing route to that network, just add them to the table ISP A

Finally flush the routing table:
ip route flush cache

To have this policy available after a reboot add this to /etc./rc.d/rc.local
In our example here this would look like this:

ip rule add from 10.0.0.10 table ISP A
ip route add default via 194.162.56.1 dev eth2 table ISP A
ip route flush cache


Hope that helps some of you who have such requests or needs to the environment!
__________________
misery is optional

Last edited by Porter; 2006-11-01 at 06:38.
Reply With Quote
  #2 (permalink)  
Old 2006-11-01
betski betski is offline
Member
 
Join Date: 2006-07-05
Location: Yorkshire, UK
Posts: 42
Rep Power: 0
betski has an average reputation (10+)
Default Re: Force one ISP with ISP REDUNDANCY

Thanks for the info porter.

I had the same NAT issue with 'Force One' for Cisco Concentrator's and Firewall's.
Reply With Quote
  #3 (permalink)  
Old 2007-04-04
MBreve MBreve is offline
Junior Member
 
Join Date: 2006-01-19
Location: Amsterdam
Posts: 11
Rep Power: 0
MBreve has an average reputation (10+)
Default Re: Force one ISP with ISP REDUNDANCY

I think I understand most of it but the following line isn't clear to me.

"ip rule add from 10.0.0.10 table ISP A"

Could you explain this one?
Reply With Quote
  #4 (permalink)  
Old 2007-04-04
Reaper Reaper is offline
Member
 
Join Date: 2006-11-15
Location: Tallinn, Estonia
Posts: 82
Rep Power: 2
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Re: Force one ISP with ISP REDUNDANCY

Those are linux ip rule commands:

"ip rule add from 10.0.0.10 table ISP A"

stands for:

for all traffic originating from 10.0.0.10, use routing table named ISP A.

then there is added routing entry into ISP A routing table:
ip route add default via 194.162.56.1 dev eth2 table ISP A

You can view the ISP A routing table:
ip route ls table ISP A

Btw, with "ip rule ls" you can view the order of routing tables:
0: from all lookup local
32765: from 10.0.0.10 lookup ISP A
32766: from all lookup main
32767: from all lookup default

if traffic sould not be matched in table "ISP A" then the next rule is taken... One can set up quite complicated linux routings that way.
__________________
CCNA certified
Reply With Quote
  #5 (permalink)  
Old 2007-04-05
MBreve MBreve is offline
Junior Member
 
Join Date: 2006-01-19
Location: Amsterdam
Posts: 11
Rep Power: 0
MBreve has an average reputation (10+)
Default Re: Force one ISP with ISP REDUNDANCY

Okay, I understand.

In this case, all traffic from 10.0.0.10 will nerver route over the ISP B.

But where does NAT come in?

You wrote that Routing is done after the packets went through CP. I have now client side NAT which would mean that the packet is already translated before it goes to routing. And the Source 10.0.0.10 is already translated to the Public IP adres.
Reply With Quote
  #6 (permalink)  
Old 2007-04-09
Reaper Reaper is offline
Member
 
Join Date: 2006-11-15
Location: Tallinn, Estonia
Posts: 82
Rep Power: 2
Reaper has an average reputation (10+)
Send a message via Skype™ to Reaper
Default Re: Force one ISP with ISP REDUNDANCY

This is just routing, no NAT.

Now, it depends what is doing NAT for you. If it is Linux only, then use iptables firewall for doing NAT. But since it is CP forum i guess its CP thats doing NAT for you. Now I can't help you with that - I don't know CP well enough, I don't even like it. I just have to work with it :(
__________________
CCNA certified
Reply With Quote
  #7 (permalink)  
Old 2007-04-11
Porter Porter is offline
Senior Member
 
Join Date: 2006-07-10
Posts: 163
Rep Power: 2
Porter has an average reputation (10+)
Default Re: Force one ISP with ISP REDUNDANCY

in your case use the public adress of the gw instead of 10.0.0.10 for routing, never tried but should work
__________________
misery is optional
Reply With Quote
  #8 (permalink)  
Old 2007-05-16
mohankumar mohankumar is offline
Junior Member
 
Join Date: 2007-03-08
Posts: 3
Rep Power: 0
mohankumar has an average reputation (10+)
Default Re: Force one ISP with ISP REDUNDANCY

In case ISP A is down will it route the traffic to ISP B
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 06:22.


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