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 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
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 > ISP Redundancy
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-11-29
Brian Brian is offline
Junior Member
 
Join Date: 2007-05-04
Posts: 4
Rep Power: 0
Brian has an average reputation (10+)
Default inbound DNS configuraton problem

I want to setup ISP redundancy on a 2nd circuit that has just been installed, and it has to work in primary/backup mode rather than load sharing. I would be pleased if anyone could suggest a way of getting this to work because I seem to have reached a stumbling block for inbound connections.

As far as I can see, this will only reliably work if there are only have two DNS servers, one on each circuit, so that DNS queries will than be handled by the Checkpoint module regardless of which circuit has failed. As soon as I have a secondary DNS server out on the Internet, there's a good possibility that this will be queried by remote clients and it will return an address on the primary circuit, which is useless when the primary circuit has failed.

Relying on just two name servers on my site is not an option since we have MX records for remote subdomains, and to cover the situation where our entire site is out of action we must have an offsite name server running.
Reply With Quote
  #2 (permalink)  
Old 2007-11-29
mcnallym mcnallym is online now
Senior Member
 
Join Date: 2007-06-04
Posts: 1,034
Rep Power: 3
mcnallym has an average reputation (10+)
Default Re: inbound DNS configuraton problem

I think slightly misunderstanding how the DNS would work. This is how I would set it up.

2 DNS Servers in the DMZ. 1 per ISP Link. This is not a HA DNS System. DNS1 will respond with IP from ISP1 and DNS2 will respond with IP from ISP2.

You NAT DNS1 behind ISP1, and DNS2 behind ISP2.

Out on the Internet under your domain details, then you list DNS1 as the primary DNS and DNS2 as the secondary DNS. You list an offisite DNS3 with an even lower priority.

These DNS Servers are not synched and would be maintained seperately of each other. They also should not be used as Internal DNS Servers but purely for responding to requests from the Internet for your domain.

DNS does not by default load balance or round robin etc, so all queries will goto DNS1 as you will configure that to have a higher priority. Only if they cannot get a response from DNS1 will it attempt to query DNS2, and DNS3 would only be requested if there is no response from DNS1 or DNS2.

DNS1 could be a High Availability Box so that in the event of a failure of the Server then DNS1 still responds. In this way unless the ISP1 link fails you should get a response from DNS1 so that the Internet will send traffic to ISP1addresses.

If and ONLY if DNS1 does not respond will the Internet access DNS2 and thus get an IP address in the ISP2 range.


Traffic Flow would be

Internet Client does DNS request.
Internet goes to DNS1 to get a response (as DNS1 is the primary DNS Server for your domain)
DNS1 responds back and the Internet Client gets a response with an address from ISP1.

Internet Client does DNS request
Internet goes to DNS1 to get a response (as DNS1 is the primary DNS Server for your domain)
Internet gets no response from DNS1, so attempts to access DNS2
DNS2 responds back and the Internet Client gets a response with an address from ISP2.

Internet Client does DNS request
Internet goes to DNS1 to get a response (as DNS1 is the primary DNS Server for your domain)
Internet gets no response from DNS1, so attempts to access DNS2
Internet gets no response from DNS2, so attempts to access DNS3
DNS3 responds back and the Internet Client gets a response with an offsite Disaster Recovery ISP address.

I hope this helps answer your stumbling block. You could potentially add another offsite DNS to make 4 DNS Servers, however you need to remember that they are not load balanced but will be accessed sequentially only if the higher priority DNS Server is not responding. If it responds but hasn't resolved then you won't attempt to access another DNS Server as you have had a response.
Reply With Quote
  #3 (permalink)  
Old 2007-11-29
Brian Brian is offline
Junior Member
 
Join Date: 2007-05-04
Posts: 4
Rep Power: 0
Brian has an average reputation (10+)
Default Re: inbound DNS configuraton problem

Thanks for the the very quick detailed response, but it all depends upon being able to prioritise the dns server lookup, dns1 - dns2 - dns3, so that dns3 will only be accessed if dns1 and dsn2 are unavailable.

I don't see how this is possible, I believe that selection of an authoritive name server is based purely on the RTT, which is uncontrolable?
Reply With Quote
  #4 (permalink)  
Old 2007-12-03
rhmeyering rhmeyering is offline
Junior Member
 
Join Date: 2007-01-09
Location: South East, Michigan
Posts: 18
Rep Power: 0
rhmeyering has an average reputation (10+)
Default Re: inbound DNS configuraton problem

What appears to be missing from this discussion is how CheckPoint ISP redundancy proxies the DNS querries for inbound connections...

This has to be configured in the SmartDashboard under your Gateway | Topology | ISP Redundancy | Enable DNS Proxy (see notes below).

Please read the Check Point Help pages in your ISP Redundancy tab [help]

The gateway will intercept inbound DNS querries and for the configured hosts and reply with the "A" record for the preferred ISP link (active/backup) regardless of the DNS Server Priority or TTL.

I typically recommend to clients that they do not try to host thier entire DNS structure. I recommend creating a subordinate zone (aka vdns.yourdomain.com) and have your ISP/DNS provider deligate this DNS zone to your DNS servers. Hosts in this domain would be denoted as www.vdns.yourdomain.com.

In this way you are not forced to be the SOA for your entire DNS domain, and only querries for the subordinate zone with be sent to your DNS and proxied by the CheckPoint Gateway.

To configure the DNS server for incoming connections:

In the DNS Proxy tab of the ISP Redundancy window, select Enable DNS proxy. VPN-1 responds to DNS queries with either one or two IP addresses, depending on the status of the ISP link and the redundancy mode. To configure this behavior, map each server name to an IP address pair by clicking Add... in the DNS Proxy tab.

Type a Host name (for example, www.vdns.yourdomain.com).
Add an IP address for ISP-1 (for example, 192.168.1.2) and an IP address for ISP-2 (for example, 172.16.2.2).

Each DNS reply has a Time To Live (TTL) field which indicates to the recipients of the reply how long the information in the reply may be cached. By default, VPN-1 replies with a TTL of 15 seconds. This can be changed in the DNS TTL field.

Hope this helps.
__________________
Robert Meyeing,CISSP,CCMA 0017,CCSI,CCSE+NGX CCSE,CCSA,NCSA,NCSP
Sr Info Security Consultant
Intelligent Connections
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 07:21.


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