12-05-2023 06:57 AM
Hello community!
According to the https://www.cisco.com/c/en/us/td/docs/security/asa/asa917/release/notes/asarn917.html#:~:text=Twice%20NAT%20support%20for%20fully%2Dqualified%20domain%20name%20(FQDN)%20objects%20as%20the%20translated%20(mapped)%20destination, the firewall is supposed to support FQDN objects in NAT.
Firewall Features |
|
Twice NAT support for fully-qualified domain name (FQDN) objects as the translated (mapped) destination |
You can use an FQDN network object, such as one specifying www.example.com, as the translated (mapped) destination address in twice NAT rules. The system configures the rule based on the IP address returned from the DNS server. |
I tried someting like
nat (any,any) source static 10.0.0.0 10.0.0.0 destination static www.example.com example.com
ERROR: Object www.example.com contains FQDN object. These are not supported in NAT commands.
Does anyone know if this is still supported or how it works? I should note that I have 9.18.x version.
THX you all in addition!
Jan
12-05-2023 07:00 AM
Sorry for fat finger the command was actually
nat (any,any) source static 10.0.0.0 10.0.0.0 destination static www.example.com www.example.com
12-05-2023 07:09 AM
I will check fqdn in NAT but did you try add object-network using fqdn in NAT instead of directly using FQDN?
MHM
12-05-2023 07:14 AM
Sorry I forgot to explain. " www.example.com" is an object with the value " www.example.com" Otherwise the NAT command could not work.
12-05-2023 07:37 AM
If that so check your ASA DNS config.
MHM
12-05-2023 01:53 PM - edited 12-06-2023 02:27 AM
Hi friend'
I make second review' you use object name which look like fqdn' that why command reject.
Change the name and put fqdn within object and try again.
Note:- check link I share' you need sure the DNS service for this task
MHM
12-06-2023 02:23 AM
Hello, Thx for reply.
Tried this:
object network SOURCE_OBJECT
subnet 10.10.0.0 255.255.0.0
object network DESTINATION_FQDN
fqdn www.example.com
nat (any,any) source static SOURCE_OBJECT SOURCE_OBJECT destination static SOURCE_OBJECT DESTINATION_FQDN
-this works. That means I can only use FQDN object in "translated (mapped) destination".
Thank you again, I thing problem was solved.
BR
Jan
12-06-2023 02:26 AM
Friend you are so welcome
I am glad your issue is solved.
Have a nice day
MHM
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