{"id":971,"date":"2017-02-03T20:40:00","date_gmt":"2017-02-03T20:40:00","guid":{"rendered":"https:\/\/jay-miah.co.uk\/?p=971"},"modified":"2024-11-17T20:44:47","modified_gmt":"2024-11-17T20:44:47","slug":"blocking-urls-using-mpf-on-the-cisco-asa","status":"publish","type":"post","link":"https:\/\/jay-miah.co.uk\/index.php\/blocking-urls-using-mpf-on-the-cisco-asa\/","title":{"rendered":"Blocking URLs Using MPF on the Cisco ASA"},"content":{"rendered":"<p>The Cisco ASA 5505 doesn\u2019t have a built in feature for URL filtering, nowadays most next generation firewalls will have\u00a0a URL filtering option\u00a0built in \u2013 which can be licensed and used without the need of a separate device. Commonly\u00a0this type of deployment would act as a transparent proxy.<\/p>\n<p>Using regular expressions with the modular policy framework (MPF) we can ask the ASA to inspect http traffic and block URLs that we define.\u00a0By design the ASA 5505 is not capable of deep packet inspection, therefore it is unable to perform https\u00a0filtering\u00a0as the content of a packet is encrypted using SSL.<\/p>\n<p>In this step by step guide we will configure the Cisco ASA to to use regular expressions with MPF to block certain http websites (URL), this will be done using ASDM.<\/p>\n<p>The topology used, is a typical deployment \u2013 the ASA is placed on the edge of the network behind the WAN router, all http traffic will\u00a0be inspected as it flows from the inside of the network to the outside. The traffic will then be allowed or dropped according to the inspect maps.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-972 aligncenter\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/topology-1.jpeg\" alt=\"topology\" width=\"615\" height=\"510\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Lets get started!<\/strong><\/p>\n<p><strong>1.<\/strong>\u00a0launch ASDM and login<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"304\" class=\"wp-image-973\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/1-4.jpeg\" alt=\"1\" \/><\/p>\n<p><strong>2.<\/strong>\u00a0Navigate to\u00a0\u201cConfiguration\u201d\u00a0\u2013\u00a0\u201cFirewall\u201d\u00a0\u2013\u00a0\u201cObjects\u201d\u00a0\u2013\u00a0\u201cRegular Expressions\u201d\u00a0under Regular Expressions click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-974\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/2-4.jpeg\" alt=\"2\" \/><\/p>\n<p><strong>3.<\/strong>\u00a0Create a regular expression with the value of the URL that you wish to block in the following format\u00a0\u201c\\.facebook\\.com\u201d\u00a0and click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-975\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/3-4.jpeg\" alt=\"3\" \/><\/p>\n<p><strong>4.<\/strong>\u00a0Create a regular expression of another URL, and click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-976\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/4-4.jpeg\" alt=\"4\" \/><\/p>\n<p><strong>5.<\/strong>\u00a0Create a regular expression of another URL, and click\u00a0\u201cOK\u201d\u00a0repeat the above step to add as many URLs required.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-977\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/5-4.jpeg\" alt=\"5\" \/><\/p>\n<p><strong>6.<\/strong>\u00a0Create a regular expression in order to capture the file extensions such as exe, com and bat provided that the https version being used by the web browser must be either 1.0 or 1.1, Enter the following\u00a0\u201c.*\\.([Ee][Xx][Ee]|[Cc][Oo][Mm]|[Bb][Aa][Tt]) HTTP\/1.[01]\u201d\u00a0Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-978\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/6-3.jpeg\" alt=\"6\" \/><\/p>\n<p><strong>7.<\/strong>\u00a0Create a regular expression in order to capture the file extensions such as pif, vbs and wsh. Enter the following\u00a0\u201c.*\\.([Pp][Ii][Ff]|[Vv][Bb][Ss]|[Ww][Ss][Hh]) HTTP\/1.[01]\u201d\u00a0Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-979\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/7-3.jpeg\" alt=\"7\" \/><\/p>\n<p><strong>8.<\/strong>\u00a0Create a regular expression in order to capture the file extensions such as doc, xls and ppt. Enter the following\u00a0\u201c.*\\.([Dd][Oo][Cc]|[Xx][Ll][Ss]|[Pp][Tt]) HTTP\/1.[01]\u201d\u00a0Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-980\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/8-3.jpeg\" alt=\"8\" \/><\/p>\n<p><strong>9.\u00a0<\/strong>Create a regular expression in order to capture the file extensions such as zip, tar and tgz. Enter the following\u00a0\u201c*\\.([Zz][Ii][Pp]|[Tt][Aa][Rr]|[Tt][Gg][Zz]) HTTP\/1.[01]\u201d\u00a0Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-981\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/9-3.jpeg\" alt=\"9\" \/><\/p>\n<p><strong>10.<\/strong>\u00a0Create a regular expression\u00a0\u201ccontenttype\u201d\u00a0in order to capture the content type. Click\u00a0\u201cOK\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-982\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/10-4.jpeg\" alt=\"10\" \/><\/p>\n<p><strong>11.\u00a0<\/strong>Create a regular expression\u00a0\u201capplicationheader\u201d\u00a0in order to capture the various application<\/p>\n<p>header. Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"200\" class=\"wp-image-983\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/11-4.jpeg\" alt=\"11\" \/><\/p>\n<p><strong>12.<\/strong>\u00a0Once all the regular expressions have been created, hit\u00a0\u201cApply\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-984\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/12-4.jpeg\" alt=\"12\" \/><\/p>\n<p><strong>13.<\/strong>\u00a0Under\u00a0\u201cRegular Expression Classes\u201d\u00a0click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-985\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/13-4.jpeg\" alt=\"13\" \/><\/p>\n<p><strong>14.<\/strong>\u00a0Create a regular expression class\u00a0\u201cDomainBlockList\u201d\u00a0in order to match any of the regular<br \/>\nexpressions\u00a0\u201cdomainlist1\u201d,\u00a0\u201cdomainlist2\u201d\u00a0and\u00a0\u201cdomainlist3\u201d. Click\u00a0\u201cOK\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"542\" class=\"wp-image-986\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/14-4.jpeg\" alt=\"14\" \/><\/p>\n<p><strong>15.<\/strong>\u00a0Create a regular expression class\u00a0\u201cURLBlockList\u201d\u00a0in order to match any of the regular<br \/>\nexpressions\u00a0\u201curllist1\u201d,\u00a0\u201curllist2\u201d,\u00a0\u201curllist3\u201d\u00a0and\u00a0\u201curllist4\u201d. Click\u00a0\u201cOK\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"542\" class=\"wp-image-987\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/15-3.jpeg\" alt=\"15\" \/><\/p>\n<p><strong>16.<\/strong>\u00a0Once the expression classes have been added click\u00a0\u201cApply\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-988\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/16-4.jpeg\" alt=\"16\" \/><\/p>\n<p><strong>17.<\/strong>\u00a0Navigate to\u00a0\u201cClass Maps\u201d\u00a0\u2013\u00a0\u201cHTTP\u201d\u00a0and click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-989\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/17-3.jpeg\" alt=\"17\" \/><\/p>\n<p><strong>18.<\/strong>\u00a0Create a class map\u00a0\u201cAppHeaderClass\u201d\u00a0in order to match the response header with regular<br \/>\nexpressions captures. Click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"674\" height=\"475\" class=\"wp-image-990\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/18-3.jpeg\" alt=\"18\" \/><\/p>\n<p><strong>19.<\/strong>\u00a0Insert the match criteria as shown below, and click\u00a0\u201cOK\u201d, click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"547\" height=\"351\" class=\"wp-image-991\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/19-3.jpeg\" alt=\"19\" \/><\/p>\n<p><strong>20.<\/strong>\u00a0\u00a0Create a class map\u00a0\u201cBlockedDomainsClass\u201d\u00a0in order to match the response header with regular<br \/>\nexpressions captures. Click\u00a0\u201cAdd\u201d\u00a0and\u00a0Insert the match criteria as shown below, and click\u00a0\u201cOK\u201d, click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"673\" height=\"472\" class=\"wp-image-992\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/20-3.jpeg\" alt=\"20\" \/><\/p>\n<p><strong>21.<\/strong>\u00a0Create a class map\u00a0\u201cBlockedURLsClass\u201d\u00a0in order to match the response header with regular<br \/>\nexpressions captures. Click\u00a0\u201cAdd\u201d\u00a0and\u00a0Insert the match criteria as shown below, and click\u00a0\u201cOK\u201d, click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"473\" class=\"wp-image-993\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/21-3.jpeg\" alt=\"21\" \/><\/p>\n<p><strong>22.<\/strong>\u00a0Navigate to\u00a0\u201cInspect Maps\u201d\u00a0\u2013\u00a0\u201cHTTP\u201d\u00a0click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-994\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/24-2.jpeg\" alt=\"24\" \/><\/p>\n<p><strong>23.<\/strong>\u00a0Create\u00a0a\u00a0\u201chttp_inspection_policy\u201d\u00a0to set the action for the matched traffic as shown. Click\u00a0\u201cInspection\u201d, \u201cDetails\u201d\u00a0and\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"544\" class=\"wp-image-995\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/25-4.jpeg\" alt=\"25\" \/><\/p>\n<p><strong>24.<\/strong>\u00a0Set the action as\u00a0\u201cDrop Connection\u201d\u00a0and\u00a0\u201cEnable\u201d\u00a0the logging for the Criterion as\u00a0\u201cRequest Method\u201d\u00a0and Value as\u00a0\u201cconnect\u201d. Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"571\" height=\"498\" class=\"wp-image-996\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/26-3.jpeg\" alt=\"26\" \/><\/p>\n<p><strong>25.\u00a0<\/strong>Click\u00a0\u201cAdd\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"544\" class=\"wp-image-997\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/27-1.jpeg\" alt=\"27\" \/><\/p>\n<p><strong>26.<\/strong>\u00a0Set the action as\u00a0\u201cDrop Connection\u201d\u00a0and\u00a0\u201cEnable\u201d\u00a0the logging for the class\u00a0\u201cAppHeaderClass\u201d. Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"405\" class=\"wp-image-998\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/28-3.jpeg\" alt=\"28\" \/><\/p>\n<p><strong>27.<\/strong>\u00a0Click\u00a0\u201cAdd\u201d\u00a0Set the action as\u00a0\u201cReset\u201d\u00a0and\u00a0\u201cEnable\u201d\u00a0the logging for the class\u00a0\u201cBlockDomainsClass\u201d. Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"405\" class=\"wp-image-999\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/29-3.jpeg\" alt=\"29\" \/><\/p>\n<p><strong>28.<\/strong>\u00a0Click\u00a0\u201cAdd\u201d\u00a0Set the action as\u00a0\u201cReset\u201d\u00a0and\u00a0\u201cEnable\u201d\u00a0the logging for the class\u00a0\u201cBlockedURLsClass\u201d. Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"475\" height=\"405\" class=\"wp-image-1000\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/30-2.jpeg\" alt=\"30\" \/><\/p>\n<p><strong>29.<\/strong>\u00a0Once all the inspect maps have been added, Click\u00a0\u201cOK\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"538\" class=\"wp-image-1001\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/31-2.jpeg\" alt=\"31\" \/><\/p>\n<p><strong>30.<\/strong>\u00a0Click\u00a0\u201cApply\u201d\u00a0for the changes to take effect.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"184\" class=\"wp-image-1002\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/32-3.jpeg\" alt=\"32\" \/><\/p>\n<p><strong>31.<\/strong>\u00a0Navigate to\u00a0\u201cService Policy Rules\u201d\u00a0and click\u00a0\u201cAdd\u201d\u00a0\u2013\u00a0\u201cAdd Service Policy Rule\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"765\" height=\"366\" class=\"wp-image-1003\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/33-3.jpeg\" alt=\"33\" \/><\/p>\n<p><strong>32.<\/strong>\u00a0Select\u00a0\u201cInterface\u201d\u00a0\u2013\u201cInside-(Create new service policy\u201d, give the policy a name and click\u00a0\u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1005\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/34-3.jpeg\" alt=\"34\" \/><\/p>\n<p><strong>33.<\/strong>\u00a0Create a class map\u00a0\u201chttptraffic\u201d\u00a0and check the\u00a0\u201cSource and Destination IP Address<br \/>\n(uses ACL)\u201d. Click\u00a0\u201cNext\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1006\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/35-2.jpeg\" alt=\"35\" \/><\/p>\n<p><strong>34.<\/strong>\u00a0Choose the Source and Destination as\u00a0\u201cany\u201d\u00a0with service as\u00a0\u201ctcp\u2212udp\/http\u201d. Make sure the \u201cEnable Rule\u201d checkbox is ticked. Click\u00a0\u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1007\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/36-3.jpeg\" alt=\"36\" \/><\/p>\n<p><strong>35.\u00a0<\/strong>Check the\u00a0\u201cHTTP\u201d\u00a0radio button and click\u00a0\u201cConfigure\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1008\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/37-3.jpeg\" alt=\"37\" \/><\/p>\n<p><strong>36.<\/strong>\u00a0Check the radio button Select a\u00a0\u201cHTTP\u201d\u00a0inspect map for the control over inspection<br \/>\nas shown. Click\u00a0\u201cOK\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"343\" height=\"442\" class=\"wp-image-1009\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/38-3.jpeg\" alt=\"38\" \/><\/p>\n<p><strong>37.<\/strong>\u00a0Click\u00a0\u201cFinish\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1010\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/39-3.jpeg\" alt=\"39\" \/><\/p>\n<p><strong>38.<\/strong>\u00a0The Policy is now visible, we will now add an additional policy for port 8080.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"348\" class=\"wp-image-1011\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/40-3.jpeg\" alt=\"40\" \/><\/p>\n<p><strong>39.<\/strong>\u00a0Click\u00a0\u201cAdd\u201d&gt;\u00a0\u201cAdd Service Policy Rule\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"298\" class=\"wp-image-1012\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/41-3.jpeg\" alt=\"41\" \/><\/p>\n<p><strong>40.<\/strong>\u00a0Click\u00a0\u201cNext\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1013\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/42-3.jpeg\" alt=\"42\" \/><\/p>\n<p><strong>41.<\/strong>\u00a0Choose the radio button\u00a0\u201cAdd rule to existing traffic class\u201d\u00a0and choose\u00a0\u201chttptraffic\u201d\u00a0from the drop down menu. Click\u00a0\u201cNext\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1014\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/43-3.jpeg\" alt=\"43\" \/><\/p>\n<p><strong>42.\u00a0<\/strong>Choose the Source and Destination as\u00a0\u201cany\u201d\u00a0with\u00a0\u201ctcp\/8080\u201d. \u00a0Make sure\u00a0\u201cEnable Rule\u201d\u00a0is ticked and click\u00a0\u201cNext\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1015\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/44-3.jpeg\" alt=\"44\" \/><\/p>\n<p><strong>43.<\/strong>\u00a0Click\u00a0\u201cFinish\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"700\" height=\"590\" class=\"wp-image-1016\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/45-8.jpeg\" alt=\"45\" \/><\/p>\n<p><strong>44.<\/strong>\u00a0Click\u00a0\u201cApply\u201d\u00a0to complete the configuration<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"747\" class=\"wp-image-1017\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/46-2.jpeg\" alt=\"46\" \/><\/p>\n<p><strong>45.<\/strong>\u00a0Now open a browser and test out one of the\u00a0regular expressions created earlier to see if it is blocked. In this case\u00a0\u201cBing.com\u201d\u00a0is being blocked or the traffic is being inspected and it is being dropped by our Policy.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"639\" class=\"wp-image-1018\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/47-2.jpeg\" alt=\"47\" \/><\/p>\n<p><strong>46.<\/strong>\u00a0If we check the logging on the ASA we can see that the request to bing.com is being terminated by the inspection engine and therefore the connection is being reset. we can also see that the HTTP request matched our\u00a0\u201cBlockedDomainClass\u201d\u00a0in the\u00a0\u201chttp_inspection_policy\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1381\" height=\"310\" class=\"wp-image-1019\" src=\"https:\/\/jay-miah.co.uk\/wp-content\/uploads\/2024\/11\/48-2.jpeg\" alt=\"48\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Cisco ASA 5505 doesn\u2019t have a built in feature for URL filtering, nowadays most next generation firewalls will have\u00a0a URL filtering option\u00a0built in \u2013<\/p>\n","protected":false},"author":1,"featured_media":1004,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,6],"tags":[57,101,102,103,95],"class_list":["post-971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cisco-firewall","category-security","tag-cisco-asa","tag-class-maps","tag-inspect-maps","tag-mpf","tag-url-filtering"],"_links":{"self":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=971"}],"version-history":[{"count":1,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"predecessor-version":[{"id":1020,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/971\/revisions\/1020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/media\/1004"}],"wp:attachment":[{"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jay-miah.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}