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 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.
2. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
3. 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 2008-01-06
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Auto NAT vs Manual NAT vs port mapping problem

I am probably missing something obvious here...

I am running NGX R65 on SPLAT and have one external
(dynamic) IP address.

I have one internal LAN object defined with Automatic NAT,
Hide behind Gateway configured. No problems there.

I have "Translate destination on client side" checked for
both Automatic and Manual NAT in Global Properties.

I have a client in the LAN that requires inbound port
9940 mapped to it, so I have defined two manual NAT rules:

outbound: [client - Any - 9940 | external IP object(hide) - Original - 9940]

inbound: [Any - external IP object - 9940 | Original - client - Original]


and then have the two required Security rules:

outbound: [client - Any - 9940 - Accept]

inbound: [Any - external IP object - 9940 - Accept]


So the problem is when I fire up the application on the client
that requires inbound 9940, the application reports to it's
external connection server that the return port on my external
IP is a high NATed port instead of the required 9940 that I
think I have manually defined.

Any ideas what I am missing? Thanks..
Reply With Quote
  #2 (permalink)  
Old 2008-01-06
Thorpuse Thorpuse is offline
Senior Member
 
Join Date: 2007-07-16
Posts: 495
Rep Power: 2
Thorpuse has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

Use Static rather than Hide-Nat.
Reply With Quote
  #3 (permalink)  
Old 2008-01-06
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

On which, my LAN object, manual rule, or both?
Reply With Quote
  #4 (permalink)  
Old 2008-01-06
chillyjim chillyjim is offline
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,648
Rep Power: 5
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: Auto NAT vs Manual NAT vs port mapping problem

Manual rule.
Reply With Quote
  #5 (permalink)  
Old 2008-01-07
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

When I change this manual rule to static:

outbound: [client - Any - 9940 | external IP object(hide) - Original - 9940]

and try to save or push policy this is what I get
Attached Images
File Type: jpg untitled.JPG (9.3 KB, 100 views)
Reply With Quote
  #6 (permalink)  
Old 2008-01-07
RayPesek RayPesek is offline
Senior Member
 
Join Date: 2006-03-19
Location: Northern Ohio
Posts: 894
Rep Power: 3
RayPesek has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

"object(hide)"

You need to use Static NAT, not Hide NAT. Hide NAT uses random high TCP ports.

Ray
Reply With Quote
  #7 (permalink)  
Old 2008-01-08
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

I only have one external IP address.

When I try to save or push this policy, I get the error I posted
above. If I change rule 9 to Hide, it installs. Any idea why?
Attached Images
File Type: jpg untitled.JPG (34.6 KB, 55 views)
Reply With Quote
  #8 (permalink)  
Old 2008-01-08
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

After rebooting both the enforcement module and the smartcenter
server, I have now pushed this NAT policy, but the client application
still reports to the connection server a high NATed port instead of 9940.
Any ideas? Thanks
Attached Images
File Type: jpg untitled.JPG (34.8 KB, 50 views)
Reply With Quote
  #9 (permalink)  
Old 2008-01-09
MarioL MarioL is offline
Senior Member
 
Join Date: 2007-01-18
Location: London
Posts: 375
Rep Power: 2
MarioL has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

You need to move the static rules above the Hide rules.

Edited to add this:
I usually create a group with all "my" networks (assuming I don't want to NAT between my own networks), then I configure a rule to avoid NAT like this (it's my first rule):
All my networks | All my networks | any | = | = | =

After that one I have all the static NAT rules. I always create them automatically when possible, because I think that is "cleaner".

In the end I add a manual hide NAT rule which goes something like this:
All internal nets | any | any | Hide fw | = | =

I don't like the automatic Hide, because of all the extra rules it creates.

Last edited by MarioL; 2008-01-09 at 03:17.
Reply With Quote
  #10 (permalink)  
Old 2008-01-09
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

I pushed the following policy but no luck. The app still reports a high
NATed port to the connection server instead of 9940.
Do you think client side NAT translation has anything to do with it?
Attached Images
File Type: jpg untitled.JPG (40.6 KB, 35 views)
Reply With Quote
  #11 (permalink)  
Old 2008-01-09
RayPesek RayPesek is offline
Senior Member
 
Join Date: 2006-03-19
Location: Northern Ohio
Posts: 894
Rep Power: 3
RayPesek has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

I'm getting a little confused here. Is this all correct?

Your client is on your LAN and needs to accept connections from the Internet on UDP 9940.

Your client on the LAN needs to be able to go outbound anywhere on the internet using UDP 9940.

This application is located somewhere on the Internet.

Ray
Reply With Quote
  #12 (permalink)  
Old 2008-01-10
MarioL MarioL is offline
Senior Member
 
Join Date: 2007-01-18
Location: London
Posts: 375
Rep Power: 2
MarioL has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

As Ray says, can you please clarify... please detail exactly how the communication between client/server works and where each is, who initiates the connection, etc.

PS Translation on the client side only changes when the NAT happens, it doesn't affect the end result "on the packets".
Reply With Quote
  #13 (permalink)  
Old 2008-01-10
mcnallym mcnallym is offline
Senior Member
 
Join Date: 2007-06-04
Posts: 1,030
Rep Power: 3
mcnallym has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

If I understand you correctly then the Server is on your network behind a R65 box with one external dynamic IP address. Do you actually need to initate a connection from the server to the client, other then reply traffic to the clients request.

I would look at the SRV_REDIRECT function (look at http_mapped) for how to use this. That way rather than NATting the traffic it just redirects essentially port mapping the traffic rather then NAT as such.

VPN-1/FireWall-1 can perform Port Address Translation (PAT), and includes predefined Port Mapping Services. Connections are directed to the firewall module, accepted on a given port and translated to another, then routed to an internal server, when Port Mapping Services are defined and configured. This occurs transparently to users.

Procedure:

Configuring predefined TCP Port Mapping Services


Log into SmartDashboard.


Click 'Manage > Services'.


On the Services dialog box Click the drop down menu next to 'Show:', select 'User defined services' and choose the desired Port Mapping Service (e.g. http_mapped).


Click the 'Advanced' button.


In the 'Match' section configure the IP address of the internal server utilizing port mapping, and the mapped ports.

Example:

Default
SRV_REDIRECT(80,0.0.0.0,80)


Modified
SRV_REDIRECT(80,10.20.1.5,8080)


Click 'OK' and close all screens.


Configure the rule (see Rule Base configuration).

Rule Base Configuration

Source: Any
Destination: firewall_object
Service: Port Mapping Service (e.g. http_mapped)
Action: accept


Install the Security Policy.
Reply With Quote
  #14 (permalink)  
Old 2008-01-10
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

RayPesek and MarioL

The app I'm trying to use is iVisit video conferencing. The client app is
on a PC behind my R65 firewall. You load the client app and then login to the
iVisit connection server on the Internet. It tells that server what external
port other iVisit clients can directly connect to you on. There's a network
stats window you can open in the app to show what it is reporting for
example: "external 10.1.1.1 (10654) : internal 192 168.1.1 (9940)"

I can't figure out what R65 NAT rules will allow the client app to detect
that 9940 is mapped in to it. Instead it always reports to the server that it
can be reached on a random high NATed port.

I know the client app correctly reports the outside port because if I login
to the internet connection server through a cheap NetGear router, it
reports 9940 as the external reachable port. Can't get it to do the same
through R65.

mcnallym

I thought SRV_REDIRECT only worked for TCP and not UDP..
Reply With Quote
  #15 (permalink)  
Old 2008-01-15
Snowbird Snowbird is offline
Junior Member
 
Join Date: 2006-07-27
Posts: 16
Rep Power: 0
Snowbird has an average reputation (10+)
Default Re: Auto NAT vs Manual NAT vs port mapping problem

So far I haven't found any manual NAT rules or SRV_REDIRECT
combinations that have solved this problem. Could it be something
to do with the fact that I have a dynamic external address?

Thanks
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 15:51.


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