<?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 FTP traffic block by server and reqeust-command in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841781#M491402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanks for reply back,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try that configuration but, It did not work, both put and get command working for both of them, &lt;/P&gt;&lt;P&gt;and packet has been pass through ASA, (service-policy packet is increased)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ciscoasa(config)# sh service-policy&lt;/P&gt;&lt;P&gt;Interface outside:&lt;BR /&gt;&amp;nbsp; Service-policy: L3/4_FTP_POLICY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class-map: L3/4_FTP_CLASS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inspect: ftp strict FTP_SERVICE, packet 32, drop 0, reset-drop 0&lt;BR /&gt;ciscoasa(config)# sh run&lt;BR /&gt;: Saved&lt;BR /&gt;:&lt;BR /&gt;ASA Version 8.0(2) &lt;BR /&gt;!&lt;BR /&gt;hostname ciscoasa&lt;BR /&gt;enable password 8Ry2YjIyt7RRXU24 encrypted&lt;BR /&gt;names&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/0&lt;BR /&gt; nameif outside&lt;BR /&gt; security-level 0&lt;BR /&gt; ip address 192.168.20.254 255.255.255.128 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/1&lt;BR /&gt; nameif dmz&lt;BR /&gt; security-level 50&lt;BR /&gt; ip address 192.168.20.126 255.255.255.128 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/2&lt;BR /&gt; nameif inside&lt;BR /&gt; security-level 100&lt;BR /&gt; ip address 192.168.30.254 255.255.255.0 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/3&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/4&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/5&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;passwd 2KFQnbNIdI.2KYOU encrypted&lt;BR /&gt;regex SERVER_PUT "put\.com"&lt;BR /&gt;regex SERVER_GET "get\.com"&lt;BR /&gt;ftp mode passive&lt;BR /&gt;object-group icmp-type ICMP&lt;BR /&gt; icmp-object echo&lt;BR /&gt; icmp-object echo-reply&lt;BR /&gt; icmp-object unreachable&lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.201 eq www &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.202 eq www &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.202 eq ftp &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.201 eq ftp &lt;BR /&gt;access-list EXTERNAL extended permit icmp any host 192.168.20.201 object-group ICMP &lt;BR /&gt;access-list EXTERNAL extended permit icmp any host 192.168.20.202 object-group ICMP &lt;BR /&gt;access-list EXTERNAL extended deny ip any any log &lt;BR /&gt;pager lines 24&lt;BR /&gt;mtu outside 1500&lt;BR /&gt;mtu dmz 1500&lt;BR /&gt;mtu inside 1500&lt;BR /&gt;no failover&lt;BR /&gt;icmp unreachable rate-limit 1 burst-size 1&lt;BR /&gt;no asdm history enable&lt;BR /&gt;arp timeout 14400&lt;BR /&gt;nat-control&lt;BR /&gt;global (outside) 1 interface&lt;BR /&gt;nat (inside) 1 192.168.30.0 255.255.255.0&lt;BR /&gt;static (dmz,outside) 192.168.20.201 192.168.20.1 netmask 255.255.255.255 &lt;BR /&gt;static (inside,outside) 192.168.20.202 192.168.30.1 netmask 255.255.255.255 &lt;BR /&gt;access-group EXTERNAL in interface outside&lt;BR /&gt;route outside 0.0.0.0 0.0.0.0 192.168.20.129 1&lt;BR /&gt;timeout xlate 3:00:00&lt;BR /&gt;timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02&lt;BR /&gt;timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00&lt;BR /&gt;timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00&lt;BR /&gt;timeout uauth 0:05:00 absolute&lt;BR /&gt;dynamic-access-policy-record DfltAccessPolicy&lt;BR /&gt;no snmp-server location&lt;BR /&gt;no snmp-server contact&lt;BR /&gt;snmp-server enable traps snmp authentication linkup linkdown coldstart&lt;BR /&gt;no crypto isakmp nat-traversal&lt;BR /&gt;telnet timeout 5&lt;BR /&gt;ssh timeout 5&lt;BR /&gt;console timeout 0&lt;BR /&gt;threat-detection basic-threat&lt;BR /&gt;threat-detection statistics access-list&lt;BR /&gt;!&lt;BR /&gt;class-map type inspect ftp match-all PUT&lt;BR /&gt; match not request-command put &lt;BR /&gt; match server regex SERVER_PUT&lt;BR /&gt;class-map type inspect ftp match-all GET&lt;BR /&gt; match not request-command get &lt;BR /&gt; match server regex SERVER_GET&lt;BR /&gt;class-map L3/4_FTP_CLASS&lt;BR /&gt; match port tcp eq ftp&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;policy-map type inspect ftp FTP_SERVICE&lt;BR /&gt; parameters&lt;BR /&gt; class GET&lt;BR /&gt;&amp;nbsp; reset log&lt;BR /&gt; class PUT&lt;BR /&gt;&amp;nbsp; reset log&lt;BR /&gt;policy-map L3/4_FTP_POLICY&lt;BR /&gt; class L3/4_FTP_CLASS&lt;BR /&gt;&amp;nbsp; inspect ftp strict FTP_SERVICE &lt;BR /&gt;!&lt;BR /&gt;service-policy L3/4_FTP_POLICY interface outside&lt;BR /&gt;prompt hostname context &lt;BR /&gt;Cryptochecksum:00000000000000000000000000000000&lt;BR /&gt;: end&lt;BR /&gt;ciscoasa(config)# &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2011 00:30:18 GMT</pubDate>
    <dc:creator>Terry Lee</dc:creator>
    <dc:date>2011-12-21T00:30:18Z</dc:date>
    <item>
      <title>FTP traffic block by server and reqeust-command</title>
      <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841777#M491391</link>
      <description>&lt;P&gt;Hi, Im studenty who studing MPF FTP, but Im struggling with blocking ftp traffic by using server regex and reqeust-command, &lt;/P&gt;&lt;P&gt;I have two ftp servers, one located in DMZ - &lt;A href="http://www.get.com" target="_blank"&gt;www.get.com&lt;/A&gt; , reset all request-command except get command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; one located in inside - &lt;A href="http://www.put.com" target="_blank"&gt;www.put.com&lt;/A&gt;, reset all request-command execept put command &lt;/P&gt;&lt;P&gt;from the outside PC, every single request command is working. but without assigning any server regex, it works,&lt;/P&gt;&lt;P&gt;With Outside PC, I did assign ip address (mapped ip on ASA) with domain name on -hosts file-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my configuration &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="mce_marker"&gt; &lt;/SPAN&gt;&lt;/P&gt;ciscoasa(config)# sh run&lt;P&gt;&lt;/P&gt;&lt;P&gt;: Saved&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;ASA Version 8.0(2) &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;hostname ciscoasa&lt;/P&gt;&lt;P&gt;enable password 8Ry2YjIyt7RRXU24 encrypted&lt;/P&gt;&lt;P&gt;names&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/0&lt;/P&gt;&lt;P&gt;nameif outside&lt;/P&gt;&lt;P&gt;security-level 0&lt;/P&gt;&lt;P&gt;ip address 192.168.20.254 255.255.255.128 &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/1&lt;/P&gt;&lt;P&gt;nameif dmz&lt;/P&gt;&lt;P&gt;security-level 50&lt;/P&gt;&lt;P&gt;ip address 192.168.20.126 255.255.255.128 &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/2&lt;/P&gt;&lt;P&gt;nameif inside&lt;/P&gt;&lt;P&gt;security-level 100&lt;/P&gt;&lt;P&gt;ip address 192.168.30.254 255.255.255.0 &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/3&lt;/P&gt;&lt;P&gt;shutdown&lt;/P&gt;&lt;P&gt;no nameif&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;no security-level&lt;/P&gt;&lt;P&gt;no ip address&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/4&lt;/P&gt;&lt;P&gt;shutdown&lt;/P&gt;&lt;P&gt;no nameif&lt;/P&gt;&lt;P&gt;no security-level&lt;/P&gt;&lt;P&gt;no ip address&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;interface Ethernet0/5&lt;/P&gt;&lt;P&gt;shutdown&lt;/P&gt;&lt;P&gt;no nameif&lt;/P&gt;&lt;P&gt;no security-level&lt;/P&gt;&lt;P&gt;no ip address&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;passwd 2KFQnbNIdI.2KYOU encrypted&lt;/P&gt;&lt;P&gt;regex GET_SITE2 "[Gg][Ee][Tt]\.[Cc][Oo][Mm]"&lt;/P&gt;&lt;P&gt;regex GET_SITE3 "([0-9A-Za-z])*[Gg][Ee][Tt]\.[Cc][Oo][Mm]"&lt;/P&gt;&lt;P&gt;regex GET_SITE4 ".*\.get\.com"&lt;/P&gt;&lt;P&gt;regex PUT_SITE "put\.com"&lt;/P&gt;&lt;P&gt;regex GET_SITE "get\.com"&lt;/P&gt;&lt;P&gt;regex PUT_SITE2 ".*\.put\.com"&lt;/P&gt;&lt;P&gt;ftp mode passive&lt;/P&gt;&lt;P&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.201 eq ftp log &lt;/P&gt;&lt;P&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.202 eq ftp log &lt;/P&gt;&lt;P&gt;access-list EXTERNAL extended deny ip any any log &lt;/P&gt;&lt;P&gt;pager lines 24&lt;/P&gt;&lt;P&gt;mtu outside 1500&lt;/P&gt;&lt;P&gt;mtu dmz 1500&lt;/P&gt;&lt;P&gt;mtu inside 1500&lt;/P&gt;&lt;P&gt;no failover&lt;/P&gt;&lt;P&gt;icmp unreachable rate-limit 1 burst-size 1&lt;/P&gt;&lt;P&gt;no asdm history enable&lt;/P&gt;&lt;P&gt;arp timeout 14400&lt;/P&gt;&lt;P&gt;static (dmz,outside) 192.168.20.201 192.168.20.1 netmask 255.255.255.255 &lt;/P&gt;&lt;P&gt;static (inside,outside) 192.168.20.202 192.168.30.1 netmask 255.255.255.255 &lt;/P&gt;&lt;P&gt;access-group EXTERNAL in interface outside&lt;/P&gt;&lt;P&gt;route outside 0.0.0.0 0.0.0.0 192.168.20.129 1&lt;/P&gt;&lt;P&gt;timeout xlate 3:00:00&lt;/P&gt;&lt;P&gt;timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02&lt;/P&gt;&lt;P&gt;timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00&lt;/P&gt;&lt;P&gt;timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00&lt;/P&gt;&lt;P&gt;timeout uauth 0:05:00 absolute&lt;/P&gt;&lt;P&gt;dynamic-access-policy-record DfltAccessPolicy&lt;/P&gt;&lt;P&gt;no snmp-server location&lt;/P&gt;&lt;P&gt;no snmp-server contact&lt;/P&gt;&lt;P&gt;snmp-server enable traps snmp authentication linkup linkdown coldstart&lt;/P&gt;&lt;P&gt;no crypto isakmp nat-traversal&lt;/P&gt;&lt;P&gt;telnet timeout 5&lt;/P&gt;&lt;P&gt;ssh timeout 5&lt;/P&gt;&lt;P&gt;console timeout 0&lt;/P&gt;&lt;P&gt;threat-detection basic-threat&lt;/P&gt;&lt;P&gt;threat-detection statistics access-list&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;class-map type regex match-any PUT_SITE_LIST&lt;/P&gt;&lt;P&gt;match regex PUT_SITE&lt;/P&gt;&lt;P&gt;match regex PUT_SITE2&lt;/P&gt;&lt;P&gt;class-map type regex match-any GET_SITE_LIST&lt;/P&gt;&lt;P&gt;match regex GET_SITE&lt;/P&gt;&lt;P&gt;match regex GET_SITE2&lt;/P&gt;&lt;P&gt;match regex GET_SITE3&lt;/P&gt;&lt;P&gt;match regex GET_SITE4&lt;/P&gt;&lt;P&gt;class-map type inspect ftp match-all L7_GET_CLASS&lt;/P&gt;&lt;P&gt;match server regex class GET_SITE_LIST&lt;/P&gt;&lt;P&gt;match not request-command get &lt;/P&gt;&lt;P&gt;class-map type inspect ftp match-all L7_PUT_CLASS&lt;/P&gt;&lt;P&gt;match not request-command put &lt;/P&gt;&lt;P&gt;match server regex class PUT_SITE_LIST&lt;/P&gt;&lt;P&gt;class-map L3/4_GET_CLASS&lt;/P&gt;&lt;P&gt;match port tcp eq ftp&lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;policy-map type inspect ftp L7_FTP_POLICY&lt;/P&gt;&lt;P&gt;parameters&lt;/P&gt;&lt;P&gt;class L7_GET_CLASS&lt;/P&gt;&lt;P&gt;&amp;nbsp; reset log&lt;/P&gt;&lt;P&gt;class L7_PUT_CLASS&lt;/P&gt;&lt;P&gt;&amp;nbsp; reset log&lt;/P&gt;&lt;P&gt;policy-map L3/4_GET_POLICY&lt;/P&gt;&lt;P&gt;class L3/4_GET_CLASS&lt;/P&gt;&lt;P&gt;&amp;nbsp; inspect ftp strict L7_FTP_POLICY &lt;/P&gt;&lt;P&gt;!&lt;/P&gt;&lt;P&gt;service-policy L3/4_GET_POLICY interface outside&lt;/P&gt;&lt;P&gt;prompt hostname context &lt;/P&gt;&lt;P&gt;Cryptochecksum:00000000000000000000000000000000&lt;/P&gt;&lt;P&gt;: end&lt;/P&gt;&lt;P&gt;ciscoasa(config)# &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/legacy/1/1/4/68411-topology.jpg" alt="topology.jpg" class="jive-image-thumbnail jive-image" height="541" onclick="" width="776" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASA&amp;nbsp; able to inspect the traffic i think because packet is increased when client is logged in , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me with this problem ??&lt;/P&gt;&lt;P&gt;thanks !! &lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 22:00:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841777#M491391</guid>
      <dc:creator>Terry Lee</dc:creator>
      <dc:date>2019-03-11T22:00:49Z</dc:date>
    </item>
    <item>
      <title>FTP traffic block by server and reqeust-command</title>
      <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841778#M491393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Terry, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to help you on this one, but first I need to understand what is your goal with the Layer 7 inspection. If you want to block when certain commands are typed the ASA has a list of them. Regex area really used when there is a type of file name, server and so on.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What&amp;nbsp; is exactly what you are trying to block? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 04:31:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841778#M491393</guid>
      <dc:creator>Maykol Rojas</dc:creator>
      <dc:date>2011-12-14T04:31:44Z</dc:date>
    </item>
    <item>
      <title>FTP traffic block by server and reqeust-command</title>
      <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841779#M491395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanks for reply, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to block all other request-command except get command for &lt;A href="http://www.get.com"&gt;www.get.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and block all other request-command except put command for &lt;A href="http://www.put.com"&gt;www.put.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks !! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:05:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841779#M491395</guid>
      <dc:creator>Terry Lee</dc:creator>
      <dc:date>2011-12-15T00:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: FTP traffic block by server and reqeust-command</title>
      <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841780#M491400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what If you try something like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regex SERVER_GET get\.com&lt;/P&gt;&lt;P&gt;regex SERVER_PUT put\.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class-map type inspect &lt;STRONG&gt;match-all&lt;/STRONG&gt; ftp GET&lt;/P&gt;&lt;P&gt; match not request-command get &lt;/P&gt;&lt;P&gt; match server&amp;nbsp; SERVER_GET &lt;/P&gt;&lt;P&gt;class-map type inspect&lt;STRONG&gt; match-all &lt;/STRONG&gt;ftp PUT&lt;/P&gt;&lt;P&gt; match not request-command put &lt;/P&gt;&lt;P&gt; match server SERVER_PUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Policy-map type inspect ftp FTP-SERVICE &lt;/P&gt;&lt;P&gt; class GET &lt;/P&gt;&lt;P&gt;&amp;nbsp; reset log &lt;/P&gt;&lt;P&gt; class PUT&lt;/P&gt;&lt;P&gt;&amp;nbsp; reset log &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the match-all which means that it will need to match both statements included on the class map. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 00:28:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841780#M491400</guid>
      <dc:creator>Maykol Rojas</dc:creator>
      <dc:date>2011-12-15T00:28:50Z</dc:date>
    </item>
    <item>
      <title>FTP traffic block by server and reqeust-command</title>
      <link>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841781#M491402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; thanks for reply back,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did try that configuration but, It did not work, both put and get command working for both of them, &lt;/P&gt;&lt;P&gt;and packet has been pass through ASA, (service-policy packet is increased)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ciscoasa(config)# sh service-policy&lt;/P&gt;&lt;P&gt;Interface outside:&lt;BR /&gt;&amp;nbsp; Service-policy: L3/4_FTP_POLICY&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class-map: L3/4_FTP_CLASS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Inspect: ftp strict FTP_SERVICE, packet 32, drop 0, reset-drop 0&lt;BR /&gt;ciscoasa(config)# sh run&lt;BR /&gt;: Saved&lt;BR /&gt;:&lt;BR /&gt;ASA Version 8.0(2) &lt;BR /&gt;!&lt;BR /&gt;hostname ciscoasa&lt;BR /&gt;enable password 8Ry2YjIyt7RRXU24 encrypted&lt;BR /&gt;names&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/0&lt;BR /&gt; nameif outside&lt;BR /&gt; security-level 0&lt;BR /&gt; ip address 192.168.20.254 255.255.255.128 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/1&lt;BR /&gt; nameif dmz&lt;BR /&gt; security-level 50&lt;BR /&gt; ip address 192.168.20.126 255.255.255.128 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/2&lt;BR /&gt; nameif inside&lt;BR /&gt; security-level 100&lt;BR /&gt; ip address 192.168.30.254 255.255.255.0 &lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/3&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/4&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;interface Ethernet0/5&lt;BR /&gt; shutdown&lt;BR /&gt; no nameif&lt;BR /&gt; no security-level&lt;BR /&gt; no ip address&lt;BR /&gt;!&lt;BR /&gt;passwd 2KFQnbNIdI.2KYOU encrypted&lt;BR /&gt;regex SERVER_PUT "put\.com"&lt;BR /&gt;regex SERVER_GET "get\.com"&lt;BR /&gt;ftp mode passive&lt;BR /&gt;object-group icmp-type ICMP&lt;BR /&gt; icmp-object echo&lt;BR /&gt; icmp-object echo-reply&lt;BR /&gt; icmp-object unreachable&lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.201 eq www &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.202 eq www &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.202 eq ftp &lt;BR /&gt;access-list EXTERNAL extended permit tcp any host 192.168.20.201 eq ftp &lt;BR /&gt;access-list EXTERNAL extended permit icmp any host 192.168.20.201 object-group ICMP &lt;BR /&gt;access-list EXTERNAL extended permit icmp any host 192.168.20.202 object-group ICMP &lt;BR /&gt;access-list EXTERNAL extended deny ip any any log &lt;BR /&gt;pager lines 24&lt;BR /&gt;mtu outside 1500&lt;BR /&gt;mtu dmz 1500&lt;BR /&gt;mtu inside 1500&lt;BR /&gt;no failover&lt;BR /&gt;icmp unreachable rate-limit 1 burst-size 1&lt;BR /&gt;no asdm history enable&lt;BR /&gt;arp timeout 14400&lt;BR /&gt;nat-control&lt;BR /&gt;global (outside) 1 interface&lt;BR /&gt;nat (inside) 1 192.168.30.0 255.255.255.0&lt;BR /&gt;static (dmz,outside) 192.168.20.201 192.168.20.1 netmask 255.255.255.255 &lt;BR /&gt;static (inside,outside) 192.168.20.202 192.168.30.1 netmask 255.255.255.255 &lt;BR /&gt;access-group EXTERNAL in interface outside&lt;BR /&gt;route outside 0.0.0.0 0.0.0.0 192.168.20.129 1&lt;BR /&gt;timeout xlate 3:00:00&lt;BR /&gt;timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02&lt;BR /&gt;timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00&lt;BR /&gt;timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00&lt;BR /&gt;timeout uauth 0:05:00 absolute&lt;BR /&gt;dynamic-access-policy-record DfltAccessPolicy&lt;BR /&gt;no snmp-server location&lt;BR /&gt;no snmp-server contact&lt;BR /&gt;snmp-server enable traps snmp authentication linkup linkdown coldstart&lt;BR /&gt;no crypto isakmp nat-traversal&lt;BR /&gt;telnet timeout 5&lt;BR /&gt;ssh timeout 5&lt;BR /&gt;console timeout 0&lt;BR /&gt;threat-detection basic-threat&lt;BR /&gt;threat-detection statistics access-list&lt;BR /&gt;!&lt;BR /&gt;class-map type inspect ftp match-all PUT&lt;BR /&gt; match not request-command put &lt;BR /&gt; match server regex SERVER_PUT&lt;BR /&gt;class-map type inspect ftp match-all GET&lt;BR /&gt; match not request-command get &lt;BR /&gt; match server regex SERVER_GET&lt;BR /&gt;class-map L3/4_FTP_CLASS&lt;BR /&gt; match port tcp eq ftp&lt;BR /&gt;!&lt;BR /&gt;!&lt;BR /&gt;policy-map type inspect ftp FTP_SERVICE&lt;BR /&gt; parameters&lt;BR /&gt; class GET&lt;BR /&gt;&amp;nbsp; reset log&lt;BR /&gt; class PUT&lt;BR /&gt;&amp;nbsp; reset log&lt;BR /&gt;policy-map L3/4_FTP_POLICY&lt;BR /&gt; class L3/4_FTP_CLASS&lt;BR /&gt;&amp;nbsp; inspect ftp strict FTP_SERVICE &lt;BR /&gt;!&lt;BR /&gt;service-policy L3/4_FTP_POLICY interface outside&lt;BR /&gt;prompt hostname context &lt;BR /&gt;Cryptochecksum:00000000000000000000000000000000&lt;BR /&gt;: end&lt;BR /&gt;ciscoasa(config)# &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 00:30:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/ftp-traffic-block-by-server-and-reqeust-command/m-p/1841781#M491402</guid>
      <dc:creator>Terry Lee</dc:creator>
      <dc:date>2011-12-21T00:30:18Z</dc:date>
    </item>
  </channel>
</rss>

