Solved

Conditional PAT/NAT on Cisco ASA

Posted on 2009-05-07
2
1,597 Views
Last Modified: 2013-11-16
I have to create an L2L tunnel and PAT the internal network 10.x.x.x to a single address 172.19.1.14 to access a remote site which has a subnet 10.38.49.0/25. The PAT address is dictated by the user at the remote end.

The following are bits from the ASA configuration
access-list in_inside line 1 extended permit ip 10.0.0.0 255.0.0.0 10.38.49.0 255.255.255.128 (hitcnt=43)
!
access-list CONDITIONAL_NAT; 1 elements
access-list CONDITIONAL_NAT line 1 extended permit ip 10.0.0.0 255.0.0.0 10.38.49.0 255.255.255.128 (hitcnt=0)
!
access-list 106 line 1 extended permit tcp host 172.19.1.14 10.38.49.0 255.255.255.128 (hitcnt=0)
access-list 106 line 2 extended permit udp host 172.19.1.14 10.38.49.0 255.255.255.128 (hitcnt=0)
!
crypto map YYY-Crypto-Map 30 match address 106
crypto map YYY-Crypto-Map 30 set pfs group5
crypto map YYY-Crypto-Map 30 set peer x.x.x.x
crypto map YYY-Crypto-Map 30 set transform-set tertiary
!
crypto map YYY-Crypto-Map 100 ipsec-isakmp dynamic YYY-Dynamic-Map
!
crypto map YYY-Crypto-Map interface Outside
crypto isakmp enable Outside
crypto isakmp policy 30
 authentication pre-share
 encryption 3des
 hash sha
 group 5
 lifetime 25200
!
tunnel-group x.x.x.x type ipsec-l2l
tunnel-group x.x.x.x  ipsec-attributes
 pre-shared-key *
!
nat (Inside) 99 access-list CONDITIONAL_NAT
global (Outside) 99 172.19.1.14

I can see traffic for 10.38.49.109 arriving at the firewall - look at the hit count on the ACL, but thats as far as it goes. If I traceroute the 10.38.49.109 address the traffic goes via the outside interface of the firewall, but icmp is blocked at the far end and cannot be enabled.. The 1st phase show cry is sa tells me that phase is not completing and I am assured the far end configuration for the tunnel matches with my end. I did manage to establish conenctivity by hard coding a PC with 172.19.1.14 and could conenct, te tunnel came up etc However i am at a loss as to how to get this to work in the way I need it to.

Could be the configuration i am trying does not work, but it is based on an example from this site, which does give me some confidence.

Any help and advice appreciated. Thanks
0
Comment
Question by:Yorkshire-Matt
2 Comments
 
LVL 79

Accepted Solution

by:
lrmoore earned 500 total points
ID: 24332364
ACL 106 needs to be IP
no access-list 106 line 1 extended permit tcp host 172.19.1.14 10.38.49.0 255.255.255.128
no access-list 106 line 2 extended permit udp host 172.19.1.14 10.38.49.0 255.255.255.128
access-list 106 line 1 extended permit ip host 172.19.1.14 10.38.49.0 255.255.255.128

If phase 1 is not completing, verify the PFS/group settings with the remote end
group 5 is unusual for 3DES/SHA
0
 

Author Closing Comment

by:Yorkshire-Matt
ID: 31579098
he access list and pfs settings were fine, the problem was the remote end had the wrong pre shared key
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

To setup a SonicWALL for policy based routing to be used with the Websense Content Gateway there are several steps that need to be completed. Below is a rough guide for accomplishing this. One thing of note is this guide is intended to assist in the…
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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

22 Experts available now in Live!

Get 1:1 Help Now