<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Security on vlan51</title><link>https://vlan51.com/tags/security/</link><description>Recent content in Security 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/security/index.xml" rel="self" type="application/rss+xml"/><item><title>ACL / Access Lists on HPE Aruba ArubaOS-Switch</title><link>https://vlan51.com/aruba-provision/acl-guest-network/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://vlan51.com/aruba-provision/acl-guest-network/</guid><description>&lt;p&gt;How to create extended ACLs on HPE Aruba ArubaOS-Switch and apply them to a VLAN interface. This example restricts a guest wireless network from accessing any internal address space while allowing internet access.&lt;/p&gt;&#10;&lt;h2 id="scenario"&gt;Scenario &lt;a class="anchor" href="#scenario" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;Guest network subnet: &lt;code&gt;192.168.0.0/23&lt;/code&gt;. Guests must reach the internet but must not reach any RFC1918 internal ranges.&lt;/p&gt;&#10;&lt;h2 id="create-the-acl"&gt;Create the ACL &lt;a class="anchor" href="#create-the-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;ip access-list extended &amp;#34;GUEST-ACL&amp;#34;&#10; 10 permit ip 192.168.0.0 0.0.1.255 192.168.0.0 0.0.1.255&#10; 20 deny ip 192.168.0.0 0.0.1.255 10.0.0.0 0.255.255.255 log&#10; 30 deny ip 192.168.0.0 0.0.1.255 172.16.0.0 0.15.255.255 log&#10; 40 deny ip 192.168.0.0 0.0.1.255 192.168.0.0 0.0.255.255 log&#10; 50 permit ip 192.168.0.0 0.0.1.255 0.0.0.0 255.255.255.255 log&#10; exit&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Line 10 — permits intra-subnet traffic (required for hosts on the /23 to communicate with each other)&lt;/li&gt;&#10;&lt;li&gt;Lines 20, 30, 40 — deny RFC1918 ranges&lt;/li&gt;&#10;&lt;li&gt;Line 50 — permit all other destinations (internet)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="apply-to-the-vlan-interface"&gt;Apply to the VLAN interface &lt;a class="anchor" href="#apply-to-the-vlan-interface" 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;vlan 10&#10; name &amp;#34;Guest Network&amp;#34;&#10; ip access-group &amp;#34;GUEST-ACL&amp;#34; in&#10; ip address 192.168.0.1 255.255.254.0&#10;exit&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;The ACL is applied &lt;strong&gt;inbound&lt;/strong&gt; (&lt;code&gt;in&lt;/code&gt;) — it inspects traffic as it arrives from guest clients.&lt;/p&gt;</description></item><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><item><title>Port Security on HPE Aruba ArubaOS-Switch</title><link>https://vlan51.com/aruba-provision/port-security/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://vlan51.com/aruba-provision/port-security/</guid><description>&lt;p&gt;Port security is a form of MAC lockdown (layer 2 control). It lets you limit, restrict or fix the MAC addresses allowed on an individual switch port, and decide what the switch does when that rule is broken. This applies to the HPE Aruba 2920, 2930, 3800, 5400 and 8200 series running ArubaOS-Switch.&lt;/p&gt;&#10;&lt;p&gt;I wrote this after a reader asked how to set it up. These are the scenarios I use most.&lt;/p&gt;</description></item><item><title>Secure Remote Access on HPE Comware v5 Switches</title><link>https://vlan51.com/comware-v5/secure-access/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://vlan51.com/comware-v5/secure-access/</guid><description>&lt;p&gt;By default, HPE Comware v5 has no remote access authentication configured. This guide covers local user setup, SSH, HTTPS, and console port protection.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Security note:&lt;/strong&gt; Use &lt;strong&gt;2048-bit RSA minimum&lt;/strong&gt;. The 1024-bit size shown below is cryptographically weak and should not be used on switches still in active service.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 id="create-a-local-user"&gt;Create a local user &lt;a class="anchor" href="#create-a-local-user" 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;system-view&#10; local-user admin&#10; password simple PASSWORD&#10; authorization-attribute level 3&#10; service-type web terminal&#10; service-type ssh&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;Use &lt;code&gt;password cipher&lt;/code&gt; rather than &lt;code&gt;password simple&lt;/code&gt; in production to store a hashed value.&lt;/p&gt;</description></item><item><title>Restricting SMTP Access with ACLs on Citrix NetScaler</title><link>https://vlan51.com/netscaler/acl-restrict-smtp/</link><pubDate>Thu, 01 Oct 2015 00:00:00 +0000</pubDate><guid>https://vlan51.com/netscaler/acl-restrict-smtp/</guid><description>&lt;p&gt;I had to configure a Citrix NetScaler (version 10.5) to load balance SMTP for an organisation that relayed mail through Microsoft&amp;rsquo;s smart host. Only specific source IP addresses should be able to reach port 25.&lt;/p&gt;&#10;&lt;p&gt;This is all done from the CLI. In the GUI, the same settings are under &lt;strong&gt;Configuration → System → Network → ACLs&lt;/strong&gt;.&lt;/p&gt;&#10;&lt;p&gt;In this example, the permitted senders are &lt;code&gt;1.1.1.1&lt;/code&gt; and &lt;code&gt;2.2.2.2&lt;/code&gt;.&lt;/p&gt;&#10;&lt;h2 id="create-the-acls"&gt;Create the ACLs &lt;a class="anchor" href="#create-the-acls" 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;&amp;gt; add ns acl ALLOW-SMTP-1.1.1.1 ALLOW -srcIP = 1.1.1.1 -destPort = 25 -protocol TCP -priority 10&#10; Done&#10;&amp;gt; add ns acl ALLOW-SMTP-2.2.2.2 ALLOW -srcIP = 2.2.2.2 -destPort = 25 -protocol TCP -priority 20&#10; Done&#10;&amp;gt; add ns acl RESTRICT-SMTP-ALL DENY -srcIP = 0.0.0.0-* -destPort = 25 -protocol TCP -priority 50&#10; Done&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#10;&lt;p&gt;There&amp;rsquo;s no implicit deny or permit at the end of a NetScaler ACL list, so you need the explicit &lt;code&gt;DENY&lt;/code&gt; rule to block everyone else. Lower priority numbers are evaluated first.&lt;/p&gt;</description></item></channel></rss>