12-28-2023 06:19 PM
Hello, would anyone be able to explain me how to configure NAT for multiple internal subnets on a 5505 firewall?
I have 6 subnets 192.168.2.0, .10.0, .20.0, .30.0, .40.0 and .50.0.
It's configured like this for all 6 subnets, but the address translationonly only works for the 192.168.2.0 subnet for some reason:
I don't know why, object-group network doesn't work here.
the topology looks more less like this at the moment, maybe it would be easier to configure if firewall device was connected straight to the internal router? If yes, how should I configure it?
Solved! Go to Solution.
12-29-2023 01:12 PM
12-29-2023 12:26 AM
try below example : ( all more subnet to object group)
object-group network all_subnets
network-object 192.168.0.0 255.255.255.0
network-object 10.10.10.0 255.255.255.0
nat (inside,outside) source dynamic interface
12-29-2023 07:32 AM
I get this problem here:
can only set a group of tcp/upd ports/services, not a subnet
12-29-2023 07:38 AM
Friend there is
Object-group and object-network
Use object-network
MHM
12-29-2023 07:55 AM
it's an unrecognized command
12-29-2023 08:21 AM
Object network
without - inbetween
MHM
12-29-2023 08:41 AM
yes, but there I can only set 1 subnet for 1 object, right?
I created objects for all 6 subnets, but it only works for the 192.168.2.0 subnet.
12-29-2023 08:56 AM
Object network vlan1
Subnet x.x.x.x
Object network vlan2
subnet y.y.y.y
Then finally
Object-group allVLAN
Object vlan1
Object vlan2
Then you use this object-group in NAT or ACL
MHM
12-29-2023 09:40 AM
well it still doesn't allow me to create an object-group:
I can only create a object-group service.
Could this be a CPT limitation?
12-29-2023 09:42 AM
That can be let me check when I retrun home
MHM
12-29-2023 09:53 AM
Until that time we can use this workaround for dynamic NAT
Object network allVLAN
Subnet 0.0.0.0
Then use it in NAT' this will include all your vlan subnet.
Goodluck
MHM
12-29-2023 11:38 AM
somehow having object network allvlan with subnet 0.0.0.0 doesn't help.
still the address of the other subnets is not translated. Only the address of the devices in 192.168.2.0 is translated.
12-29-2023 11:53 AM
How you know the NAT is not working?
MHM
12-29-2023 12:19 PM - edited 12-29-2023 12:21 PM
The source IP isn't changed from the internal IP address to firewall's public IP.
below as you can see a sent packet from the 192.168.2.0 network and the source address is translated:
12-29-2023 01:12 PM
same as My PKT it limitation then
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