Solved

Need to add two PATs or NATs for incoming RDP using CLI (not PDM)

Posted on 2007-11-29
2
383 Views
Last Modified: 2010-04-21
I have an in production PIX 506E, for a few years now, that has been working fine but I need to add through the CLI (PDM is not working for some reason) 2 PAT/NAT entries that will allow incoming tech support (64.100.100.1) to RDP (TS) into two different servers on the inside (private), 192.168.9.3 and 192.168.9.4 respectively.  Currently using 65.100.112.2 (Public) for all outgoing HTTP(S) browsing as well as incoming VPN clients.  This is working fine and I don't want to break any of this.  I have available two more free Public addresses, 65.100.112.3 and 65.100.112.4, that I want to PAT/NAT into 192.168.9.3 and 192.168.9.4 and only allow RDP incoming from 64.100.100.1 to 64.100.100.5.  I assme PAT is better for this, but perhaps NAT works too since I have the 1 to 1 connection.

thanks,

sgh_aba
fixup protocol smtp 25

fixup protocol sqlnet 1521

fixup protocol tftp 69
 
 

names
 

access-list inside_outbound_nat0_acl permit ip 192.168.9.0 255.255.255.0 192.168.200.0 255.255.255.224 

access-list inside_outbound_nat0_acl permit ip 192.168.9.0 255.255.255.0 192.168.200.48 255.255.255.248 

access-list outside_cryptomap_dyn_20 permit ip any 192.168.200.0 255.255.255.224 

access-list outside_cryptomap_dyn_40 permit ip any 192.168.200.48 255.255.255.248 

pager lines 24

logging on

mtu outside 1500

mtu inside 1500

ip address outside 65.100.112.2 255.255.255.248

ip address inside 192.168.9.1 255.255.255.0

ip audit info action alarm

ip audit attack action alarm

ip local pool MYP1 192.168.200.1-192.168.200.29

ip local pool MYVP1 192.168.200.50-192.168.200.53

pdm location 192.168.9.252 255.255.255.255 inside

pdm logging informational 100

pdm history enable

arp timeout 14400

global (outside) 10 interface

nat (inside) 0 access-list inside_outbound_nat0_acl

nat (inside) 10 0.0.0.0 0.0.0.0 0 0

route outside 0.0.0.0 0.0.0.0 65.100.112.1 1

timeout xlate 3:00:00
 

timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00

timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00

timeout sip-disconnect 0:02:00 sip-invite 0:03:00

timeout uauth 0:05:00 absolute

aaa-server TACACS+ protocol tacacs+ 

aaa-server TACACS+ max-failed-attempts 3 

aaa-server TACACS+ deadtime 10 

aaa-server RADIUS protocol radius 

aaa-server RADIUS max-failed-attempts 3 

aaa-server RADIUS deadtime 10 

aaa-server LOCAL protocol local 

http server enable

http 192.168.9.0 255.255.255.0 inside

no snmp-server location

no snmp-server contact

snmp-server community public

no snmp-server enable traps

floodguard enable

sysopt connection permit-ipsec

crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac 

crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20

crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5

crypto dynamic-map outside_dyn_map 40 match address outside_cryptomap_dyn_40

crypto dynamic-map outside_dyn_map 40 set transform-set ESP-3DES-MD5
 

crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map

crypto map outside_map interface outside

isakmp enable outside

isakmp policy 20 authentication pre-share

isakmp policy 20 encryption 3des

isakmp policy 20 hash md5

isakmp policy 20 group 2

isakmp policy 20 lifetime 86400

vpngroup MYG1 address-pool MYP1

vpngroup MYG1 idle-time 1800

vpngroup MYG1 password ********

vpngroup MYVG1 address-pool MYVP1

vpngroup MYVG1 idle-time 1800

vpngroup MYVG1 password ********

telnet 192.168.9.0 255.255.255.0 inside

telnet 192.168.200.0 255.255.255.0 inside

telnet timeout 5

ssh timeout 5

console timeout 0

terminal width 80

Open in new window

0
Comment
Question by:sgh_aba
2 Comments
 
LVL 28

Accepted Solution

by:
batry_boy earned 500 total points
ID: 20376573
Add the following commands to your configuration:

static (inside,outside) 65.100.112.3 192.168.9.3 netmask 255.255.255.255
static (inside,outside) 65.100.112.4 192.168.9.4 netmask 255.255.255.255
access-list outside_access_in permit tcp host 64.100.100.1 host 65.100.112.3 eq 3389
access-list outside_access_in permit tcp host 64.100.100.1 host 65.100.112.4 eq 3389
access-list outside_access_in permit tcp host 64.100.100.5 host 65.100.112.3 eq 3389
access-list outside_access_in permit tcp host 64.100.100.5 host 65.100.112.4 eq 3389
access-group outside_access_in in interface outside

That should do it...
0
 
LVL 1

Author Closing Comment

by:sgh_aba
ID: 31411758
thanks very much for your quick, direct, and accurate response.  I put in the changes, and everything worked with no downtime.

sgh_aba
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

If you have an ASA5510 then this sort of thing would be better handled with a CSC Module, however on an ASA5505 thats not an option, and if you want to throw in a quick solution to stop your staff going to facebook during work time, then this is the…
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

20 Experts available now in Live!

Get 1:1 Help Now