12-22-2021 10:45 AM - edited 12-23-2021 09:08 AM
Hello all.
This might be me just being simple but how do you NAT multiple subnets behind an ASA ?
For example I have subnets 192.168.0.0-192.168.5.0/24
for 192.168.0.0/24 I do
object network net192.168.0.0 nat (inside,outside) dynamic interface
which ofc routes all 192.168.0.0 traffic fine.
to include all the rest of the subnets
I tried
object-group network AllLANS network-object object net192.168.0.0 network-object object net192.168.1.0
..
object network ALLLANS nat (inside,outside) dynamic interface
When ever I try to NAT this with anything else than only 0.0.0.0 in AllLANS I get an error from the ASA.
the only way I have been able to make it work is make AllLANS 0.0.0.0 0.0.0.0
While it works I'd like to be able to be more specific in NAT rules not to open everything.
Thank you...
edit:
ASA 5516 running 9.16(2)
Solved! Go to Solution.
12-22-2021 02:52 PM
You are creating an object-group but then create the NAT using a regular network object which is not defined. You cannot use the same method for NAT when using object-group.
You would need to use a command like the following
nat (inside,outside) after-auto source dynamic AllLANS interface
12-22-2021 02:52 PM
You are creating an object-group but then create the NAT using a regular network object which is not defined. You cannot use the same method for NAT when using object-group.
You would need to use a command like the following
nat (inside,outside) after-auto source dynamic AllLANS interface
12-23-2021 08:40 AM
I had a feeling it was me just being simple. Thank you very much.
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