{"id":166,"date":"2020-06-17T13:46:12","date_gmt":"2020-06-17T12:46:12","guid":{"rendered":"http:\/\/www.labtinker.net\/?p=166"},"modified":"2020-06-17T13:46:12","modified_gmt":"2020-06-17T12:46:12","slug":"cisco-and-non-std-ssh","status":"publish","type":"post","link":"http:\/\/18.135.13.153\/?p=166","title":{"rendered":"Cisco and non-std SSH"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In a series only midly less compelling than GoT we see how the Cisco ASA  firewall fared in stopping ssh over non-standard ports. (Spoiler alert: this lab did not go well)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SPOILER ALERT: I didn&#8217;t get this working and this post descends into a mild rant on ASAs in AWS. I did get it working in this post: <\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-it-tinkering wp-block-embed-it-tinkering\"><div class=\"wp-block-embed__wrapper\">\nhttp:\/\/18.135.13.153\/2022\/02\/01\/cisco-asa-and-non-std-ssh-v2\/\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Cisco<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once again I headed to the AWS Marketplace to furnish myself with the appropriate vendor&#8217;s firewall and happened upon this one:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"151\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-4.png\" alt=\"\" class=\"wp-image-167\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-4.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-4-300x75.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 1: AWS Marketplace ASA<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The ASA persists in using a Java client for GUI administration which I&#8217;ve always found a bit of pain to use. Why some vendors can run sophisticated GUIs in a browser but others rely on Java with its attendant annoyances of version compatibility, requirement for install (which in an enterprise environment can be a pain) and challenging security record, I don&#8217;t know.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Adding interfaces within AWS was painless with Palos and Fortis but seemed to require a reload on the ASA which took about ten minutes. I didn&#8217;t intend this to be a reivew of the various vendors offerings in AWS but we&#8217;re heading that way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;ve got the entry-level AWS ASA which only comes with a management interface. So I intended to add two more interfaces: an external and a DMZ one as in the previous lab. When I came to add the second I received this message:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"230\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-5.png\" alt=\"\" class=\"wp-image-168\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-5.png 511w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-5-300x135.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><figcaption>Figure 2: You want how many interfaces on a firewall?<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Er&#8230; so Cisco won&#8217;t let you have two interfaces on their AWS firewall.  I decided to compare the instances I was using in AWS &#8211; maybe I was using some weirdly under-specced instance of the ASA. I decided to use price as the easiest means of comparison<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"136\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-6.png\" alt=\"\" class=\"wp-image-169\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-6.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-6-300x68.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 3: Forti&#8217;s AWS most-modest firewall instance<br><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"146\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-7.png\" alt=\"\" class=\"wp-image-170\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-7.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-7-300x73.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 4: Cisco&#8217;s most-modest firewall instance<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ah, so the Forti run price is less than half that of the Cisco ASA. Hmmm.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OK, let&#8217;s work with what we&#8217;ve got. I remember there\u2019s a setting on the ASA to allow the management interface to pass produciton traffic so I\u2019ll remove the external interface from the ASA, just add the DMZ one and use the management interface for external traffic. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried to the remove the external interace (an easy operation on other vendors&#8217; firewalls) and sat staring at this for five minutes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"28\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-8.png\" alt=\"\" class=\"wp-image-171\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-8.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-8-300x14.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 5: You didn&#8217;t have anything else to do today, did you?<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">OK, let\u2019s chalk off another ten minutes of our lives and reboot. Having done this for some reason I couldn\u2019t get back on to the firewall with either ssh or the GUI. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Right, well I hadn&#8217;t done too much on the instance so I terminated it and just fired up a new one and then added my DMZ interface. Yup, there it is showing on the instance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"309\" height=\"99\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-9.png\" alt=\"\" class=\"wp-image-172\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-9.png 309w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-9-300x96.png 300w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><figcaption>Figure 6: Two interfaces<br><\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But not on the ASA itself.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-10.png\" alt=\"\" class=\"wp-image-173\" width=\"602\" height=\"82\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-10.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-10-300x41.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 7: One of our interfaces is missing.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There may be something in the documentation that mentions you can\u2019t do \u2018hot\u2019 interface additions \/ removals on the ASA in AWS. Anyway, another reboot later and finally we see two interfaces, the management interface and the DMZ interface.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"85\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-11.png\" alt=\"\" class=\"wp-image-174\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-11.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-11-300x42.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 8: Oh there you are.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">What were we doing? Oh yeah undedicating the management interface&#8230;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"567\" height=\"100\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-12.png\" alt=\"\" class=\"wp-image-175\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-12.png 567w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-12-300x53.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><figcaption>Figure 9: We merely untick this and&#8230;.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So let\u2019s untick this\u2026 well to cut a long story short you can untick this little box and the command is accepted happily but when you try and add an access list to the management interface you have the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"564\" height=\"176\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-13.png\" alt=\"\" class=\"wp-image-176\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-13.png 564w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-13-300x94.png 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><figcaption>Figure 10: But didn&#8217;t I just&#8230;?<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you then go back and check the management interface the box next to \u2018Dedicate this interface to management\u2019 has magically re-appeared. They saw that one coming, eh? <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Maybe, I could fire up a bigger instance but I can\u2019t be bothered.  I hereby disqualify the Cisco ASA from my non-std ssh test on account of it being too annoying to set up. I didn\u2019t set out to do a hatchet job and I\u2019ve spent a lot of time on ASA&#8217;s in the past and got a long with them fine so it\u2019s more in sadness than anger (well, pique) that I do this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"47\" src=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-14.png\" alt=\"\" class=\"wp-image-177\" srcset=\"http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-14.png 602w, http:\/\/18.135.13.153\/wp-content\/uploads\/2020\/06\/image-14-300x23.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Figure 11: Don&#8217;t call us, we&#8217;ll call you.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a series only midly less compelling than GoT we see how the Cisco ASA firewall fared in stopping ssh over non-standard ports. (Spoiler alert: this lab did not go well) SPOILER ALERT: I didn&#8217;t get this working and this post descends into a mild rant on ASAs in AWS. I did get it working [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-firewalls"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/18.135.13.153\/index.php?rest_route=\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/18.135.13.153\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/18.135.13.153\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/18.135.13.153\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/18.135.13.153\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":0,"href":"http:\/\/18.135.13.153\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"http:\/\/18.135.13.153\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/18.135.13.153\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/18.135.13.153\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}