<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Object-Groups for easy maintain ASA Configurations. in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/using-object-groups-for-easy-maintain-asa-configurations/m-p/1773357#M530395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to see you again &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/4.5.4/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to answer your questions one by one, taking an exmaple from your configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt;host 10.10.10.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network dmz-ftp&lt;/P&gt;&lt;P&gt; host 10.10.10.4&lt;/P&gt;&lt;P&gt; nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network FTPserver&lt;/P&gt;&lt;P&gt;host 10.0.0.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above two statements cannot be merged together, reason being. The nat statement is a feature of a specific object and when you specify the nat then that object gets binded to only that nat statement only. This is only in the case of Auto-Nat. If you are using Manual Nat then you can use same object in multiple nats, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt;host 10.10.10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object service tcp_3389&lt;/P&gt;&lt;P&gt;&amp;nbsp; service tcp destination eq 3389&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object service tcp_ftp&lt;/P&gt;&lt;P&gt;&amp;nbsp; service tcp destination eq 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (outside,inside) source static any any destination static interface dmz-rdp service tcp_3389 tcp_3389&lt;/P&gt;&lt;P&gt;nat (outside,inside) source static any any destination static interface dmz-rdp service tcp_ftp tcp_ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above nat statements are excatly the same as in your config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you might be curious where to use the object-group, here you can use it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group service doug_netpro&lt;/P&gt;&lt;P&gt; port-object eq 3389&lt;/P&gt;&lt;P&gt; port-object eq 21&lt;/P&gt;&lt;P&gt; port-object eq 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list DMZ_access_in extended permit object-group TCPUDP any any object-group doug_netpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this reduces your Access-list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use it in Nat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group network Test&lt;/P&gt;&lt;P&gt; network-object host 10.10.10.10&lt;/P&gt;&lt;P&gt; network-object 192.168.1.0 255.255.255.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside,outside) source dynamic Test interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the command ref:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/partner/docs/security/asa/asa83/command/reference/no.html#wp1815632"&gt;http://www.cisco.com/en/US/partner/docs/security/asa/asa83/command/reference/no.html#wp1815632&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this must have made things easier for yu, do let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 15:37:27 GMT</pubDate>
    <dc:creator>varrao</dc:creator>
    <dc:date>2011-09-20T15:37:27Z</dc:date>
    <item>
      <title>Using Object-Groups for easy maintain ASA Configurations.</title>
      <link>https://community.cisco.com/t5/network-security/using-object-groups-for-easy-maintain-asa-configurations/m-p/1773356#M530394</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before I get started, a huge "Thank You!" to Varun and everyone else for all your help with my previous questions. You have made life a lot easier for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading the post titled "ASA 5520 nat access-list query for internet access" I realized the object-group command could and should be used to make a more efficient and cleaner configuration. My current environment is very small and straight forward consisting of one FTP server in the DMZ. Though the guide: &lt;A href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a00800d641d.shtml" target="_blank"&gt;http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a00800d641d.shtml&lt;/A&gt; is straight forward, my inexperience hinders me from seeing how to use the commands effectively. A summary of the configuration is at the bottom of this post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;How can I clean up my current configuration? I have two references to the same server, dmz-rdp and dmz-ftp, created for port forwarding ports 3389 and ftp through the outside interface. I can combine them into one object statement, right? &lt;/P&gt;&lt;P&gt;for each port I want to forward through the outside interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt;host 10.10.10.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network dmz-ftp&lt;/P&gt;&lt;P&gt; host 10.10.10.4&lt;/P&gt;&lt;P&gt; nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network FTPserver&lt;/P&gt;&lt;P&gt;host 10.0.0.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Or do I have repeat:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;object network &amp;lt;name&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;host 10.10.10.4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; nat (DMZ,outside) static interface service PROTOCOL PORT PORT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for each port I want to forward through the outside interface?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ASA Configuration Summary: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ASA 5505 running 8.4(2)&lt;/P&gt;&lt;P&gt;PAT is used on the outside interface for the Inside and the DMZ interfaces.&lt;/P&gt;&lt;P&gt;Ports 3389 (RDP) and FTP ports are forwarded from the outside interface to the DMZ&lt;/P&gt;&lt;P&gt;Ports 3389 (RDP) and FTP ports are allowed in using the DMZ_access_in extended ACL.&lt;/P&gt;&lt;P&gt;Two objects (dmz-rdp and dmz-ftp) were created for port redirection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlan1: Inside: security-level 100&lt;/P&gt;&lt;P&gt;ip address 192.168.0.1 255.255.255.0 &lt;/P&gt;&lt;P&gt;Vlan2: Outside: security-level 0 &lt;/P&gt;&lt;P&gt;ip address YYY.XXX.144.15 255.255.254.0 &lt;/P&gt;&lt;P&gt;Vlan3: DMZ: security-level 50ip address 10.10.10.1 255.255.255.0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network obj_any&lt;/P&gt;&lt;P&gt; subnet 0.0.0.0 0.0.0.0&lt;/P&gt;&lt;P&gt;object network DMZ&lt;/P&gt;&lt;P&gt; subnet 10.10.10.0 255.255.255.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt; host 10.10.10.4&lt;/P&gt;&lt;P&gt;object network dmz-ftp&lt;/P&gt;&lt;P&gt; host 10.10.10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group protocol TCPUDP&lt;/P&gt;&lt;P&gt; protocol-object udp&lt;/P&gt;&lt;P&gt; protocol-object tcp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list out_in_log extended deny ip any any log&lt;/P&gt;&lt;P&gt;access-list DMZ_access_in extended permit object-group TCPUDP any any eq 3389&lt;/P&gt;&lt;P&gt;access-list DMZ_access_in extended permit object-group TCPUDP any any eq 20 &lt;/P&gt;&lt;P&gt;access-list DMZ_access_in extended permit object-group TCPUDP any any eq 21 &lt;/P&gt;&lt;P&gt;access-group DMZ_access_in in interface outside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:27:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/using-object-groups-for-easy-maintain-asa-configurations/m-p/1773356#M530394</guid>
      <dc:creator>Douglas Sensenig</dc:creator>
      <dc:date>2019-03-11T21:27:25Z</dc:date>
    </item>
    <item>
      <title>Using Object-Groups for easy maintain ASA Configurations.</title>
      <link>https://community.cisco.com/t5/network-security/using-object-groups-for-easy-maintain-asa-configurations/m-p/1773357#M530395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good to see you again &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.cisco.com/4.5.4/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to answer your questions one by one, taking an exmaple from your configuration:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt;host 10.10.10.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network dmz-ftp&lt;/P&gt;&lt;P&gt; host 10.10.10.4&lt;/P&gt;&lt;P&gt; nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;object network FTPserver&lt;/P&gt;&lt;P&gt;host 10.0.0.4&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp ftp ftp&lt;/P&gt;&lt;P&gt;nat (DMZ,outside) static interface service tcp 3389 3389&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above two statements cannot be merged together, reason being. The nat statement is a feature of a specific object and when you specify the nat then that object gets binded to only that nat statement only. This is only in the case of Auto-Nat. If you are using Manual Nat then you can use same object in multiple nats, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object network dmz-rdp&lt;/P&gt;&lt;P&gt;host 10.10.10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object service tcp_3389&lt;/P&gt;&lt;P&gt;&amp;nbsp; service tcp destination eq 3389&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object service tcp_ftp&lt;/P&gt;&lt;P&gt;&amp;nbsp; service tcp destination eq 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (outside,inside) source static any any destination static interface dmz-rdp service tcp_3389 tcp_3389&lt;/P&gt;&lt;P&gt;nat (outside,inside) source static any any destination static interface dmz-rdp service tcp_ftp tcp_ftp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above nat statements are excatly the same as in your config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you might be curious where to use the object-group, here you can use it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group service doug_netpro&lt;/P&gt;&lt;P&gt; port-object eq 3389&lt;/P&gt;&lt;P&gt; port-object eq 21&lt;/P&gt;&lt;P&gt; port-object eq 20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;access-list DMZ_access_in extended permit object-group TCPUDP any any object-group doug_netpro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this reduces your Access-list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use it in Nat:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;object-group network Test&lt;/P&gt;&lt;P&gt; network-object host 10.10.10.10&lt;/P&gt;&lt;P&gt; network-object 192.168.1.0 255.255.255.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nat (inside,outside) source dynamic Test interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the command ref:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/en/US/partner/docs/security/asa/asa83/command/reference/no.html#wp1815632"&gt;http://www.cisco.com/en/US/partner/docs/security/asa/asa83/command/reference/no.html#wp1815632&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this must have made things easier for yu, do let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 15:37:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/using-object-groups-for-easy-maintain-asa-configurations/m-p/1773357#M530395</guid>
      <dc:creator>varrao</dc:creator>
      <dc:date>2011-09-20T15:37:27Z</dc:date>
    </item>
  </channel>
</rss>

