Cisco Systems PIX 501 Multiple Outside Ports to Single Inside Port

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
PIX 501 Multiple Outside Ports to Single Inside Port Paul Smedshammer 05-01-08
Posted by Paul Smedshammer on May 1, 2008, 8:15 pm
Please log in for more thread options
PIX 501 Multiple Outside Ports to Single Inside Port.

I'm trying to fix our remote e-mail folks. I have no problem forwarding a
single port from the outside to the inside. So say Outside port 25 is
forwarded to our internal e-mail server on port 25.

What I'm trying to do is forward two outside port 25 and port 587 to our
inside server listening on port 25. Is this possible with a PIX 501?

We are currently using:

static (inside,outside) tcp interface smtp 10.0.0.2 smtp netmask
255.255.255.255 0 0

if I add another line in say:

static (inside,outside) tcp interface 587 10.0.0.2 smtp netmask
255.255.255.255 0 0

I get an error about overlapping. This has to be possible, I'm just going
about it wrong. I have scoured the web and I can see how it can be done in
a Linux environment with IP Tables, but I have not found a reference to do
this in a CISCO PIX.

Posted by flamer die.spam@hotmail.com on May 1, 2008, 9:20 pm
Please log in for more thread options
try this:

object-group service MyMail tcp
port-object eq smtp
port-object eq 587
exit

static (inside,outside) tcp interface MyMail 10.0.0.2 smtp netmask
255.255.255.255 0 0


havent got anything here to test it with but should put you on the
right track at least. Now if the port forward command doesnt like the
service name in there you just need to use an access-list in your nat
statement instead. Lots of examples on cisco.com

Flamer.



Posted by Brian V on May 1, 2008, 10:08 pm
Please log in for more thread options

> PIX 501 Multiple Outside Ports to Single Inside Port.
>
> I'm trying to fix our remote e-mail folks. I have no problem forwarding a
> single port from the outside to the inside. So say Outside port 25 is
> forwarded to our internal e-mail server on port 25.
>
> What I'm trying to do is forward two outside port 25 and port 587 to our
> inside server listening on port 25. Is this possible with a PIX 501?
>
> We are currently using:
>
> static (inside,outside) tcp interface smtp 10.0.0.2 smtp netmask
> 255.255.255.255 0 0
>
> if I add another line in say:
>
> static (inside,outside) tcp interface 587 10.0.0.2 smtp netmask
> 255.255.255.255 0 0
>
> I get an error about overlapping. This has to be possible, I'm just going
> about it wrong. I have scoured the web and I can see how it can be done
> in
> a Linux environment with IP Tables, but I have not found a reference to do
> this in a CISCO PIX.

No, you cannot do that. While logically it would work inbound it would break
going out. How would the smtp packet know which port to pat to on the way
out. This is the same reason why you cannot have multiple publics nat'd to a
single private.


Posted by Paul Smedshammer on May 2, 2008, 12:05 am
Please log in for more thread options

>> PIX 501 Multiple Outside Ports to Single Inside Port.
>> What I'm trying to do is forward two outside port 25 and port 587 to
>> our inside server listening on port 25. Is this possible with a PIX
>> 501?
>> We are currently using:
>>
>> static (inside,outside) tcp interface smtp 10.0.0.2 smtp netmask
>> 255.255.255.255 0 0
>>
>> if I add another line in say:
>>
>> static (inside,outside) tcp interface 587 10.0.0.2 smtp netmask
>> 255.255.255.255 0 0
>>
>> I get an error about overlapping. This has to be possible, I'm just
>> going about it wrong. I have scoured the web and I can see how it
>> can be done in
>> a Linux environment with IP Tables, but I have not found a reference
>> to do this in a CISCO PIX.
>
> No, you cannot do that. While logically it would work inbound it would
> break going out. How would the smtp packet know which port to pat to
> on the way out. This is the same reason why you cannot have multiple
> publics nat'd to a single private.
>

I was worried about that. So, this is really something I can't do. I
need to find another way to have our e-mail server listen on two
different ports and then forward both those ports from the PIX. Thanks,
I have been beating my head at this for a while and was thinking that
maybe it can't be done.

Posted by Morph on May 2, 2008, 4:21 am
Please log in for more thread options
Paul Smedshammer wrote:

|
| >> PIX 501 Multiple Outside Ports to Single Inside Port.
| >> What I'm trying to do is forward two outside port 25 and port 587 to
| >> our inside server listening on port 25. Is this possible with a PIX
| >> 501?
| >> We are currently using:
| >>
| >> static (inside,outside) tcp interface smtp 10.0.0.2 smtp netmask
| >> 255.255.255.255 0 0
| >>
| >> if I add another line in say:
| >>
| >> static (inside,outside) tcp interface 587 10.0.0.2 smtp netmask
| >> 255.255.255.255 0 0
| >>
| >> I get an error about overlapping. This has to be possible, I'm just
| >> going about it wrong. I have scoured the web and I can see how it
| >> can be done in
| >> a Linux environment with IP Tables, but I have not found a reference
| >> to do this in a CISCO PIX.
| >
| > No, you cannot do that. While logically it would work inbound it would
| > break going out. How would the smtp packet know which port to pat to
| > on the way out. This is the same reason why you cannot have multiple
| > publics nat'd to a single private.
| >
|
| I was worried about that. So, this is really something I can't do. I
| need to find another way to have our e-mail server listen on two
| different ports and then forward both those ports from the PIX. Thanks,
| I have been beating my head at this for a while and was thinking that
| maybe it can't be done.

How about putting a second IP address on your server and then set it to
listen on that address using the second port you need. Then you wont
have a problem forwarding the port on the PIX since you will be
forwarding the port to another address.

Similar ThreadsPosted
PIX 501 Multiple Outside Ports to Single Inside Port May 1, 2008, 8:15 pm
Multiple public IPs statically NAT'd to a single inside host May 15, 2006, 7:39 pm
Detecting multiple hosts behind a single managed switch port August 22, 2006, 4:08 pm
How to route multiple ports to one port (NAT/PAT) March 1, 2008, 4:21 am
Multiple VLANs on Single NIC January 19, 2006, 8:08 am
PIX DCHPD handing out multiple IPs to single MAC March 1, 2006, 3:49 pm
Multiple Websites on Single 2k BOX Which router please!? October 30, 2006, 2:44 pm
A question about Multiple Routers with a Single MLS Catalyst May 2, 2007, 6:24 am
Cisco 871 Multiple Vlans on single SSID July 17, 2007, 11:38 am
Cisco 877 - Possible to assign multiple dialers to a single PVC? November 12, 2007, 7:43 am
single BRI Port calls May 11, 2006, 3:11 pm
Who i can Disabiling STP on a single Port? January 18, 2007, 7:33 pm
Multiple Cisco 3500-XL and Protected ports. June 17, 2006, 1:33 am
Catalyst 3560 single port collision problem June 27, 2006, 9:28 am
Cisco 2924 switch commands for multiple ports August 22, 2006, 5:36 pm