<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hardening on vlan51</title><link>https://vlan51.com/tags/hardening/</link><description>Recent content in Hardening on vlan51</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Mon, 01 Jan 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://vlan51.com/tags/hardening/index.xml" rel="self" type="application/rss+xml"/><item><title>Hardening HPE Comware v5 Switches</title><link>https://vlan51.com/comware-v5/hardening/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://vlan51.com/comware-v5/hardening/</guid><description>&lt;p&gt;How to harden HPE Comware v5 switches by restricting remote access to SSH and HTTPS only and using ACLs to limit management connections to specific hosts.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; HPE Comware v5 is end-of-sale on most platforms. These commands remain relevant for H3C and older HPE A/E-series switches still in service.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 id="disable-insecure-protocols"&gt;Disable insecure protocols &lt;a class="anchor" href="#disable-insecure-protocols" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&lt;span&gt;cli&lt;/span&gt;&lt;button class="copy" type="button" aria-label="Copy to clipboard"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;undo ip http server enable&#10;undo telnet server enable&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;h2 id="enable-ssh-and-https"&gt;Enable SSH and HTTPS &lt;a class="anchor" href="#enable-ssh-and-https" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&lt;span&gt;cli&lt;/span&gt;&lt;button class="copy" type="button" aria-label="Copy to clipboard"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;ip https enable&#10;ssh server enable&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;h2 id="restrict-vty-to-ssh-only"&gt;Restrict VTY to SSH only &lt;a class="anchor" href="#restrict-vty-to-ssh-only" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&lt;span&gt;cli&lt;/span&gt;&lt;button class="copy" type="button" aria-label="Copy to clipboard"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;user-interface vty 0 4&#10; protocol inbound ssh&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;h2 id="restrict-management-access-with-an-acl"&gt;Restrict management access with an ACL &lt;a class="anchor" href="#restrict-management-access-with-an-acl" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;div class="code"&gt;&#10; &lt;div class="code-bar"&gt;&lt;span&gt;cli&lt;/span&gt;&lt;button class="copy" type="button" aria-label="Copy to clipboard"&gt;Copy&lt;/button&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;acl number 2050&#10; rule 5 permit source 1.2.3.4 0&#10; rule 10 permit source 10.0.0.0 0.255.255.255&#10; rule 15 permit source 192.168.0.0 0.0.255.255&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;Apply to HTTPS and SSH:&lt;/p&gt;</description></item></channel></rss>