Port Translation based on Source Address

Port Translation based on Source Address

Secure Home | Search | About
 Networking Firewalls    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Port Translation based on Source Address Chuck 11-07-2004
Posted by Chuck on November 7, 2004, 11:09 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
I've heard that some firewalls / nat routers are capable of carrying
out port translation based on source address.

Example:

* The public address of my border firewall is 50.60.70.80
* I want to configure a nat/pat to forward port 22 from the public
source address 30.30.30.80 to my inside device 192.168.5.1, and
requests from all other public source addresses to be handled by the
router itself (ie not natted).

Apparently this is possible on Microsoft ISA & OpenBSD, but as far as
I know
Cisco can't do it, for example in cisco you would just type:
ip nat inside source static tcp 192.168.5.1 22 interface
<interfacename> 22

and that would nat ALL traffic directed at port 22 of it's public ip
address to the inside device 192.168.5.1, ie you can't differentiate
based on source address.

If anyone can write on their experience with this on Cisco, ISA,
Checkpoint, OpenBSD or anything else that would be great.

regards
KC


Posted by Leythos on November 8, 2004, 11:58 am
If you were  Registered and logged in, you could reply and use other advanced thread options
kris_chucky@hotmail.com says...
> * The public address of my border firewall is 50.60.70.80
> * I want to configure a nat/pat to forward port 22 from the public
> source address 30.30.30.80 to my inside device 192.168.5.1, and
> requests from all other public source addresses to be handled by the
> router itself (ie not natted).

WatchGuard has two methods - drop-in and routed mode. In drop-in mode
you map IP to IP (meaning public to public, but all internal public Ip
are protected), and you can do NAT. In routed mode you can do IP to NAT
or IP to public depending on how you setup your internal addresses.

--
--
spamfree999@rrohio.com
(Remove 999 to reply to me)


Posted by stephane nasdrovisky on November 10, 2004, 8:42 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Chuck wrote:
> I've heard that some firewalls / nat routers are capable of carrying
> out port translation based on source address.
>
> Example:
>
> * The public address of my border firewall is 50.60.70.80
> * I want to configure a nat/pat to forward port 22 from the public
> source address 30.30.30.80 to my inside device 192.168.5.1, and
> requests from all other public source addresses to be handled by the
> router itself (ie not natted).
>
> Apparently this is possible on Microsoft ISA & OpenBSD, but as far as
> I know
> Cisco can't do it, for example in cisco you would just type:
> ip nat inside source static tcp 192.168.5.1 22 interface
> <interfacename> 22

You could add an acl in order to accept only some addresses, the others
would be dropped, no ?

> and that would nat ALL traffic directed at port 22 of it's public ip
> address to the inside device 192.168.5.1, ie you can't differentiate
> based on source address.
>
> If anyone can write on their experience with this on Cisco, ISA,
> Checkpoint, OpenBSD or anything else that would be great.

With checkpoint, nat (as well as access/deny rules) is rules based, you
can define a rule which will nat src,dst,service to src2,dst2,service2.
src,dst & service can be 'any'.
You'll need a somewhat recent firewall-1 (ng fp 2?) in order to be able
to nat a single destination to various net segments (routing was done
before nat on older firewall-1, now routing is done after nat, the
packets are thus routed to the right segment).
On openbsd or linux, iptable seems very customisable.



Similar ThreadsPosted
PIX ACL based on user credentials instead of IP address July 28, 2004, 11:53 am
Multiple Source IP port numbers October 26, 2005, 3:51 am
Restricting source port across sites May 11, 2006, 4:56 pm
Using Port Based VLANs to isolate security zones February 29, 2008, 3:55 pm
Cisco Announces Industry's First Network-Based, Standards- Based Rapid Channel-Change..... December 26, 2006, 11:41 am
Translation Rule October 15, 2005, 2:31 pm
Using Cisco PIX without translation? November 8, 2005, 10:35 pm
How to Static Nat translation over IPSEC October 10, 2007, 5:15 pm
what are 'host -based' vs OS-based firewalls? May 25, 2005, 3:54 pm
outgoing mail on Watchguard iii 500 using external port IP address June 6, 2006, 2:28 pm

The site map in XML format XML site map

Contact Us | Privacy Policy