03-18-2011 01:24 PM - edited 03-12-2019 06:01 PM
I am trying to setup some rules on the ASA firewall to allow remote access our network and am making some service object groups. If I setup an object group like this:
object-group service View_DT_Svc_TCP tcp
description TCP Ports needed to connect from Security server to View Desktops
port-object eq 3389
port-object eq 32111
port-object eq 9427
object-group service View_DT_Svc tcp-udp
description Ports needed to connect from Security server to View Desktops
port-object eq 4172
group-object View_DT_Svc_TCP
will the ports 3389, 32111, 9427 be limited to TCP only, or will they have UDP access since they are referenced in a tcp-udp service object? I want those ports limited to TCP only but port 4172 needs to be tcp-udp and I don’t want to have to write one group for TCP, one group for UDP and then one non specific group to combine the other two like this:
object-group service View_DT_Svc_TCP tcp
description TCP Ports needed to connect from Security server to View Desktops
port-object eq 3389
port-object eq 32111
port-object eq 9427
port-object eq 4172
object-group service View_DT_Svc_UDP udp
description UDP Ports needed to connect from Security server to View Desktops
port-object 4172
object-group service View_DT_Svc
description Ports needed to connect from Security server to View Desktops
group-object View_DT_Svc_TCP
group-object View_DT_Svc_UDP
which way of doing things is better?
Thanks
03-18-2011 02:06 PM
The nested object group that you have might not work as desired. why don't you try the following:
object-group service View_DT_Svc_TCP tcp
description TCP Ports needed to connect from Security server to View Desktops
port-object eq 3389
port-object eq 32111
port-object eq 9427
object-group service View_DT_Svc tcp-udp
description Ports needed to connect from Security server to View Desktops
port-object eq 4172
And then just create two ACLs, one for the first object group that will allow only TCP and the second ACL for UDP and TCP.
I think this is more straight forward.
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