Download Print this page

Cisco ASA 5506-X Configuration Manual page 119

Cli
Hide thumbs Also See for ASA 5506-X:

Advertisement

Chapter 5
NAT Examples and Reference
! Use twice NAT to pass traffic between the inside network and the VPN client without
! address translation (identity NAT), w/route-lookup:
nat (outside,inside) source static vpn_local vpn_local destination static inside_nw
inside_nw route-lookup
Troubleshooting NAT and VPN
See the following monitoring tools for troubleshooting NAT issues with VPN:
To familiarize yourself with a non-working configuration vs. a working configuration, you can perform
the following steps:
1.
2.
3.
4.
DNS and NAT
You might need to configure the ASA to modify DNS replies by replacing the address in the reply with
an address that matches the NAT configuration. You can configure DNS modification when you
configure each translation rule.
This feature rewrites the address in DNS queries and replies that match a NAT rule (for example, the A
record for IPv4, the AAAA record for IPv6, or the PTR record for reverse DNS queries). For DNS replies
traversing from a mapped interface to any other interface, the record is rewritten from the mapped value
to the real value. Inversely, for DNS replies traversing from any interface to a mapped interface, the
record is rewritten from the real value to the mapped value.
Following are some limitations with DNS rewrite:
Packet tracer—When used correctly, a packet tracer shows which NAT rules a packet is hitting.
show nat detail—Shows hit counts and untranslated traffic for a given NAT rule.
show conn all—Lets you see active connections including to and from the box traffic.
Configure VPN without identity NAT.
Enter show nat detail and show conn all.
Add the identity NAT configuration.
Repeat show nat detail and show conn all.
DNS rewrite is not applicable for PAT because multiple PAT rules are applicable for each A-record,
and the PAT rule to use is ambiguous.
If you configure a twice NAT rule, you cannot configure DNS modification if you specify the source
address as well as the destination address. These kinds of rules can potentially have a different
translation for a single address when going to A vs. B. Therefore, the ASA cannot accurately match
the IP address inside the DNS reply to the correct twice NAT rule; the DNS reply does not contain
information about which source/destination address combination was in the packet that prompted
the DNS request.
DNS rewrite requires DNS application inspection to be enabled, which it is on by default. See
Inspection, page 7-1
for more information.
DNS rewrite is actually done on the xlate entry, not the NAT rule. Thus, if there is no xlate for a
dynamic rule, rewrite cannot be done correctly. The same problem does not occur for static NAT.
Cisco ASA Series Firewall CLI Configuration Guide
DNS and NAT
DNS
5-21

Hide quick links:

Advertisement

loading