06-29-2021 01:16 AM
Hello guys,
i have a operational ipsec tunnel between Cisco ASA 5505 and other firewall across my network. Traffic goes through in both direction. Now, i would like to source NAT ipsec incoming traffic (from ASA perspective) with its inside interface ip address. For example:
Traffic from 10.x.x.x to 192.168.22.x needs to be natted to 192.168.22.1 (IP address of inside interface) to 192.168.22.x
But i have not success yet with nat (outside, inside) rules... any ideas?
Thank you.
06-29-2021 02:26 AM
It would help to see what configuration you have done for this NAT. Make sure you DO NOT disable proxy arp
The configuration should be similar to this:
object network LAN
subnet 192.168.22.0 255.255.255.0
object network remote
subnet 10.0.0.0 255.255.255.0
nat (outside,inside) source static remote interface destination static LAN LAN
06-29-2021 03:23 AM
Thanks for your post Marius. This is the output from show nat:
1 (inside) to (outside) source static inside inside destination static remote remote no-proxy-arp route-lookup
translate_hits = 51012, untranslate_hits = 203989
2 (outside) to (inside) source static remote interface destination static inside inside
translate_hits = 0, untranslate_hits = 0
NAT 1 is mandatory for ipsec tunnel.
NAT 2 is my rule for trying source nat.
Is it possible that the traffic i want to source nat are matching NAT rule 1?
06-29-2021 03:59 AM
Move NAT statement 2 above NAT statement 1 and try again
06-29-2021 04:40 AM
I have changed rule order and it is working now:
1 (outside) to (inside) source static remote interface destination static inside inside
translate_hits = 46, untranslate_hits = 250
2 (inside) to (outside) source static inside0 inside destination static remote remote route-lookup
translate_hits = 45, untranslate_hits = 45
TCP 192.168.22.30:445 192.168.22.1:60035 ESTABLISHED
Curiously, i have lost ping from remote device to inside device, but TCP service are established. I think PINGs are the "untranslate_hits", but i dont know why.
Extented ACL permit any (tcp and icmp) are configured in both interfaces.
Thank you.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide