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 > NAT (Network Address Translation)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-10-02
admcleod admcleod is offline
Junior Member
 
Join Date: 2006-10-02
Posts: 1
Rep Power: 0
admcleod has an average reputation (10+)
Default Auto-NAT coexisting with Manual (P)NAT

Hello!

I have just taken over administration of a Checkpoint NGX R60 firewall, and have been given the task of enabling external access to an internal server hosting a web server on port 4443. (Due to a recent firewall migration not being entirely complete). This new host resolves to the same IP address as an existing web server.

Heres the scenario:

web.domain.com and newhost.domain.com both point to the public IP 80.0.0.1.

There is an automatic NAT for 80.0.0.1, to the internal IP, 192.168.0.10

This automatic NAT works fine (only necessary for TCP 80/443).

So, I want to add in a rule to redirect requests to 80.0.0.1 on port 4443 to the internal IP of the newhost, 192.168.0.20.

(There are three rules in the rulebase:
ANY to 192.168.0.10 on 80, LOG
ANY to 192.168.0.10 on 443, LOG
ANY to 192.168.0.20 on 4443, LOG)

I don't _really_ want to remove the existing automatic NAT to the web server, mainly to avoid any outages caused by misconfiguration...

These are the rules I have tried, separately, without success:

Original Packet ==> Translated Packet

Src, Dest, Svc ==> Src, Dest, Svc

any, 80.0.0.1, tcp_4443 ==> original, 192.168.0.20, original

and

any, 192.168.0.10, tcp_4443 ==>orig., 192.168.0.20, orig.

I have tried them both above and below the automatic NAT (although bi directional NAT is enabled, and I understand that checks all rules for best match before processing? - is matching 'ANY' service better than matching the service explicitly?)

Anyway. Any suggestions? Something blatantly silly/obvious?


Thanks!
Reply With Quote
  #2 (permalink)  
Old 2006-10-02
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: Auto-NAT coexisting with Manual (P)NAT

1'st check Tracker for number of NAT rule which is apllied.

NAT rules are checked one after another, like usual rules in Rule Base.
Bidirectional NAT applies only to automatic NAT rules

Good quote
"The detailed logic of Bidirectional NAT is as follows:
• If the first match on a connection is on a Manual NAT rule, no further checking
of NAT Rule Base is done.
• If the first match on a connection is on an Automatic NAT rule, then the rest of
the NAT Rule Base is checked, one rule at a time, to see if another Automatic
NAT Rule matches the connection. If it does, both rules are matched, and no
further checking is performed.

The operation of Bidirectional NAT can be tracked using the SmartView Tracker,
using the fields NAT Rule Number and NAT Additional Rule Number. The
“additional rule” is the rule that matches the automatic translation performed on
the second object in Bidirectional NAT."

Last edited by kva.kva; 2006-10-02 at 11:11.
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 20:57.


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