<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Acl on vlan51</title><link>https://vlan51.com/tags/acl/</link><description>Recent content in Acl 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/acl/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>Policy Based Routing (PBR) on HPE Comware v7</title><link>https://vlan51.com/comware-v7/policy-based-routing/</link><pubDate>Mon, 01 Jan 2024 00:00:00 +0000</pubDate><guid>https://vlan51.com/comware-v7/policy-based-routing/</guid><description>&lt;p&gt;How to configure Policy Based Routing (PBR) on HPE Comware v7. Traffic is matched by ACLs and redirected to an alternative next-hop, overriding the routing table.&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;The setup is identical to the &lt;a href="https://vlan51.com/aruba-provision/policy-based-routing/"&gt;ArubaOS-Switch PBR guide&lt;/a&gt;. The switch (&lt;code&gt;.254&lt;/code&gt;) has a default gateway of &lt;code&gt;2.2.2.1&lt;/code&gt;.&lt;/p&gt;&#10;&lt;figure&gt;&#10; &lt;a href="https://vlan51.com/images/provision-pbr-topology.png" target="_blank" rel="noopener"&gt;&lt;img src="https://vlan51.com/images/provision-pbr-topology.png" alt="PBR topology: local breakout via the default gateway, internet via the firewall at 1.1.1.1" loading="lazy" decoding="async"&gt;&lt;/a&gt;&lt;figcaption&gt;PBR topology: local breakout via the default gateway, internet via the firewall at 1.1.1.1&lt;/figcaption&gt;&#10;&lt;/figure&gt;&#10;&lt;p&gt;From &lt;code&gt;192.168.10.0/24&lt;/code&gt;: internal traffic (to &lt;code&gt;10.0.0.0/8&lt;/code&gt; or &lt;code&gt;192.168.0.0/16&lt;/code&gt;) uses the normal routing table, internet traffic is sent to &lt;code&gt;1.1.1.1&lt;/code&gt;.&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>