Solved

Conditional PAT/NAT on Cisco ASA

Posted on 2009-05-07
2
1,602 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

From Cisco ASA version 8.3, the Network Address Translation (NAT) configuration has been completely redesigned and it may be helpful to have the syntax configuration for both at a glance. You may as well want to read official Cisco published AS…
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 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

21 Experts available now in Live!

Get 1:1 Help Now