Solved

ASA PAT rule

Posted on 2011-09-19
10
861 Views
Last Modified: 2012-08-13
I have a cisco ASA. A vendor has asked me to setup a PAT rule from an outisde IP to the DMZ IP of a server. IP info is:

Outside IP: 173.219.37.x
DMZ IP: 192.168.10.x

The Vendor has asked for this:
Internet to DMZ server
48622 Public IP ---> 48622 DMZ IP
443 Public IP ---> 8443 DMZ IP

I have assigned a NAT rule from the DMZ IP to the Public IP.
I have created the access rule allowing any from the outside to the public IP on port 48622 and 443

What I am not sure about is the rule changing the port from 443 to 8443. I want to be sure that not all 443 traffic hitting the firewall is directed to the one server as I have other web based servers using https.

I am learning cisco ASA setup as I go, so I apologize if this is an odd question.

Thanks for any help and insite.
0
Comment
Question by:jamesddavis
  • 4
  • 3
  • 3
10 Comments
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36560835
Well, if you only have one public ip you can only forward port 443 once.....

So if you want to forward port 443 to multiple servers, you will need multiple public ip's as well (one 443 port per ip address only).
0
 
LVL 33

Accepted Solution

by:
MikeKane earned 250 total points
ID: 36560879
Technically, this is a port-forwarding request, not a PAT request.    

You want to take a public IP and have those ports redirected inside to a server on the DMZ.    Then you create the access list to allow the traffic.   It would looklike this:


static (dmz,outside) tcp 173.219.37.x 48622 192.168.10.x 48622 netmask 255.255.255.255
static (dmz,outside) tcp 173.219.37.x 443 192.168.10.x 443 netmask 255.255.255.255

access-list outside_in extended permit tcp any host 173.219.37.x eq 48622
access-list outside_in extended permit tcp any host 173.219.37.x eq 48622

access-group outside_in in interface outside


Now this would have to fit into your config, so the acl name may be different, etc.   Plus, you can only forward the 443 to one internal host, so if you have 443 already going to another internal host, this won't fly.  
0
 
LVL 33

Expert Comment

by:MikeKane
ID: 36560889
Oops , this:
access-list outside_in extended permit tcp any host 173.219.37.x eq 48622
access-list outside_in extended permit tcp any host 173.219.37.x eq 48622

should be this:
access-list outside_in extended permit tcp any host 173.219.37.x eq 48622
access-list outside_in extended permit tcp any host 173.219.37.x eq 443
0
 

Author Comment

by:jamesddavis
ID: 36561063
Sorry, I have multiple outside IP addresses provided by my ISP. I am using one of those IP addresses, 173.219.37.x, for the DMZ host 192.168.10.x with a static NAT.

Sorry for the incorrect wording, I am looking to port forward not PAT.

So if I only want traffic coming to IP 173.219.37.x on port 443 to be changed to port 8443 to the DMZ server mentioned, would the config above be correct?

Thanks,



0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36561088
Yes it would. To forward a second port 443, you'll need a second public, etc.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:jamesddavis
ID: 36561114
OK, now where in the above statement is it changing from 443 to 8443? Just making sure I understand. This is a learning exercise as much as it is getting this setup.

Thanks,
0
 
LVL 35

Assisted Solution

by:Ernie Beek
Ernie Beek earned 250 total points
ID: 36561281
Good catch, it isn't. It should be:
static (dmz,outside) tcp 173.219.37.x 443 192.168.10.x 8443 netmask 255.255.255.255
0
 
LVL 33

Expert Comment

by:MikeKane
ID: 36561559
Thank you ernie... I missed that...  
443 Public IP ---> 8443 DMZ IP


0
 
LVL 35

Expert Comment

by:Ernie Beek
ID: 36561720
My pleasure ;)
0
 

Author Closing Comment

by:jamesddavis
ID: 36562271
Thanks for the help, I thought that was the case, but wanted to be sure. Didn't want to break all of my other https web servers.

Thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now