We help IT Professionals succeed at work.

ASA 5510 NAT Access Rule help for RDP protocol

miconis asked
Hey all. New to the ASA 5510. I set these up on my PIX 515e for years. And I did this fine the first time on the 5510 before I went back to factory default and flashed the latest 8.03 software. I somehow figured it out fine in the 7.2 software before.

I am just setting up a new office location and its LAN. I have the PAT setup and internet up and running. I simply need to setup a static NAT from the Public IP to the internal for a particular server, then allow RDP traffic coming from the outside interface to port 3389.

On my PIX and old ASA software, it would have the Source Port then the Destination Port. I would set the Source as "= any" and the Destination as 3389 and everything worked fine. Anyone see what I am missing in my config below? Thanks and sorry for my stupidity.

And yes, there is a tunnel setup wth our current office in the config.

Thanks in advance!

User Access Verification

Type help or '?' for a list of available commands.
WZ-ASA1> en
Password: *********
WZ-ASA1# sh config
: Saved
: Written by enable_15 at 11:38:12.239 EST Mon Jan 28 2008
ASA Version 8.0(3)
hostname WZ-ASA1
domain-name ************.com
enable password I************************ encrypted
interface Ethernet0/0
 nameif Outside
 security-level 0
 ip address ************
interface Ethernet0/1
 nameif Inside
 security-level 99
 ip address
interface Ethernet0/2
 no nameif
 no security-level
 no ip address
interface Ethernet0/3
 no nameif
 no security-level
 no ip address
interface Management0/0
 nameif management
 security-level 100
 ip address
passwd I************ encrypted
boot system disk0:/asa803-k8.bin
ftp mode passive
clock timezone EST -5
clock summer-time EDT recurring
dns server-group DefaultDNS
 domain-name ************.com
object-group service RemoteDesktop tcp
 port-object eq 3389
access-list Outside_access_in extended permit icmp any any
access-list Outside_access_in extended permit icmp 10
access-list management_nat0_outbound extended permit ip 255.255.240.
access-list Outside_1_cryptomap extended permit ip 10.
access-list Inside_nat0_outbound extended permit ip 10
pager lines 24
logging enable
logging asdm informational
mtu Outside 1500
mtu Inside 1500
mtu management 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-603.bin
asdm location management
no asdm history enable
arp timeout 14400
global (Outside) 10 interface
nat (Inside) 0 access-list Inside_nat0_outbound
nat (Inside) 10
nat (management) 0 access-list management_nat0_outbound
static (Inside,Outside) tcp ************ 3389 3389 netmask 255.255
static (Outside,Inside) ************netmask
access-group Outside_access_in in interface Outside
route Outside 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout uauth 0:05:00 absolute
dynamic-access-policy-record DfltAccessPolicy
http server enable
http management
http Inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto map Outside_map 1 match address Outside_1_cryptomap
crypto map Outside_map 1 set peer ************
crypto map Outside_map 1 set transform-set ESP-3DES-SHA
crypto map Outside_map interface Outside
crypto isakmp enable Outside
crypto isakmp policy 10
 authentication pre-share
 encryption 3des
 hash sha
 group 5
 lifetime 86400
telnet Inside
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address management
dhcpd enable management
threat-detection basic-threat
threat-detection statistics access-list
tunnel-group ************type ipsec-l2l
tunnel-group ************ipsec-attributes
 pre-shared-key *
class-map inspection_default
 match default-inspection-traffic
policy-map global_policy
 class inspection_default
  inspect ftp
  inspect h323 h225
  inspect h323 ras
  inspect rsh
  inspect rtsp
  inspect esmtp
  inspect sqlnet
  inspect skinny
  inspect sunrpc
  inspect xdmcp
  inspect sip
  inspect netbios
  inspect tftp
service-policy global_policy global
prompt hostname context
Watch Question

Top Expert 2007

  If you are using the public ip that assigned to ASA's outside interface, then do the following modification

no static (Inside,Outside) tcp ************ 3389 3389 netmask 255.255
no static (Outside,Inside) ************netmask
static (Inside,Outside) tcp interface 3389 3389 netmask 255.255
access-list Outside_access_in permit tcp any interface outside eq 3389



Sorry, maybe I didn't explain it correctly.

I need to add another public IP, not the IP for the outside interface of the ASA. So I need a static NAT for the new Public IP to the Internal IP of this particular server, then a basic Access Rule to allow 3389 traffic from ANY outside source to 3389 of this server.
Top Expert 2007

static (Inside,Outside) tcp x.x.x.x 3389 3389 netmask 255.255
no static (Outside,Inside) x.x.x.x netmask
static (Inside,Outside) tcp interface 3389 3389 netmask 255.255
access-list Outside_access_in permit tcp any host x.x.x.x eq 3389
Top Expert 2007

btw, also do the following modification, forgot to mention
no static (Inside,Outside) tcp interface 3389 3389 netmask 255.255


Thanks, I saw that stray one before I accepted and cleared it up too.


The part I was missing in the ASDM was I was still doing a NAT, but you have to select PAT at the bottom of the rule windows, and set the translation and destination ports, which I got AFTER your CLI commands and I could see it in the ASDM.

Thanks again

Explore More ContentExplore courses, solutions, and other research materials related to this topic.