09-09-2018 06:21 AM - edited 02-21-2020 08:12 AM
the scenario is this , asa running ios 9.8 , with public internet interface, lets called INET_IF , then as an internal interface a INTERNAL-10.68.89.210 255.255.255.192 ( asa ip is 210) , then , behind this network, and via a gateway, i can reach 10.67.237.17/32 host , asa probe port access the backend correctly cause it uses his identity interface to ping .
ping tcp 10.67.237.17 80
Type escape sequence to abort.
No source specified. Pinging from identity interface.
Sending 5 TCP SYN requests to 10.67.237.17 port 80
from 10.68.89.210, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/2 ms
The things is ..that backend webserver ONLY accepts traffic from INTERNAL-10.68.89.192/26 network
and i now that i can do Nat like this
object network NAT_PUBLIC_TO_10.67.237.17
host 10.67.237.17
nat (lan_if,INTERNET_if) static %some_public_ip_that_i_have
But this setup, in packet capture shows me traffic entering the lan_interface with the public IP of the client trying to reach de Webserver , so, how can i masquerade or DOuble nat somewhere , so that traffic in packet capture on LAN_IF i shows me traffic from 10.68.89.192/26 instead of public address trying to reach webserver at 10.67.237.17 ?
Solved! Go to Solution.
09-09-2018 11:35 PM
Hello,
In this case, you can PAT the internet based clients accessing your web server to the inside interface.
So, when a client on internet (x.x.x.x) hits the ASA on the public ip address of the webserver, the source shall translate from x.x.x.x to 10.68.89.210 and destination untranslate from public ip to 10.67.x ip address. The NAT should like something like this:
NAT (outside,inside) source dynamic any interface destination static <public ip of server> <real ip>
remove the other NAT and try it and hopefully it should work. This might break the outbound connection from the web server to internet but if that is needed, some other tweak might be needed. Just for internet to web server using the inside interface, this should work.
Hope it makes sense.
Regards,
AJ
09-09-2018 11:35 PM
Hello,
In this case, you can PAT the internet based clients accessing your web server to the inside interface.
So, when a client on internet (x.x.x.x) hits the ASA on the public ip address of the webserver, the source shall translate from x.x.x.x to 10.68.89.210 and destination untranslate from public ip to 10.67.x ip address. The NAT should like something like this:
NAT (outside,inside) source dynamic any interface destination static <public ip of server> <real ip>
remove the other NAT and try it and hopefully it should work. This might break the outbound connection from the web server to internet but if that is needed, some other tweak might be needed. Just for internet to web server using the inside interface, this should work.
Hope it makes sense.
Regards,
AJ
09-10-2018 07:07 AM
09-10-2018 09:26 AM
09-10-2018 11:14 PM
Happy to help :)
-
AJ
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