<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Creating a TTL lt 6 ACL entry in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/creating-a-ttl-lt-6-acl-entry/m-p/53744#M15188</link>
    <description>&lt;BR /&gt;
Trying to create an ACL entry that blocks IP TTL &amp;lt; 6 - &lt;BR /&gt;
The &lt;B&gt;&lt;/B&gt;16.1 user guide offers the match condition "TTL number { mask number}"&lt;BR /&gt;
&lt;BR /&gt;
I am new to doing acls on Extreme, and assume that the policy entry should look like this"&lt;BR /&gt;
&lt;BR /&gt;
entry { &lt;BR /&gt;
&lt;BR /&gt;
if { &lt;BR /&gt;
&lt;BR /&gt;
ttl [number] mask [number];&lt;BR /&gt;
&lt;BR /&gt;
} then {&lt;BR /&gt;
&lt;BR /&gt;
deny;&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
However, I don't know what I should put for the number or mask to make the equation equal "less than 6"&lt;BR /&gt;
&lt;BR /&gt;
As you may have guessed, I am trying to implement Cisco's hardening checklist equivalent on a Summit x460 that we are using as a border router, and I am guessing that most of the items listed such as blocking TTL less than six, blocking fragments, etc, have to be done using ACL.&lt;BR /&gt;
&lt;BR /&gt;
Finally, whatever you provide as the answer for the match condition, can I use it in a dynamic acl entry as well?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Steve&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Fri, 17 Jul 2015 18:38:00 GMT</pubDate>
    <dc:creator>Steve_Robinson</dc:creator>
    <dc:date>2015-07-17T18:38:00Z</dc:date>
    <item>
      <title>Creating a TTL lt 6 ACL entry</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/creating-a-ttl-lt-6-acl-entry/m-p/53744#M15188</link>
      <description>&lt;BR /&gt;
Trying to create an ACL entry that blocks IP TTL &amp;lt; 6 - &lt;BR /&gt;
The &lt;B&gt;&lt;/B&gt;16.1 user guide offers the match condition "TTL number { mask number}"&lt;BR /&gt;
&lt;BR /&gt;
I am new to doing acls on Extreme, and assume that the policy entry should look like this"&lt;BR /&gt;
&lt;BR /&gt;
entry { &lt;BR /&gt;
&lt;BR /&gt;
if { &lt;BR /&gt;
&lt;BR /&gt;
ttl [number] mask [number];&lt;BR /&gt;
&lt;BR /&gt;
} then {&lt;BR /&gt;
&lt;BR /&gt;
deny;&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
However, I don't know what I should put for the number or mask to make the equation equal "less than 6"&lt;BR /&gt;
&lt;BR /&gt;
As you may have guessed, I am trying to implement Cisco's hardening checklist equivalent on a Summit x460 that we are using as a border router, and I am guessing that most of the items listed such as blocking TTL less than six, blocking fragments, etc, have to be done using ACL.&lt;BR /&gt;
&lt;BR /&gt;
Finally, whatever you provide as the answer for the match condition, can I use it in a dynamic acl entry as well?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Steve&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;&lt;/U&gt;&lt;I&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jul 2015 18:38:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/creating-a-ttl-lt-6-acl-entry/m-p/53744#M15188</guid>
      <dc:creator>Steve_Robinson</dc:creator>
      <dc:date>2015-07-17T18:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: Creating a TTL lt 6 ACL entry</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/creating-a-ttl-lt-6-acl-entry/m-p/53745#M15189</link>
      <description>Steve,&lt;BR /&gt;
&lt;BR /&gt;
This is a new feature of EXOS v16.1.1 and I don't have a physical switch to try it, so I don't know if this will work...&lt;BR /&gt;
&lt;BR /&gt;
The documentation says:&lt;BR /&gt;
"&lt;I&gt;Time To Live with mask.The mask is optional, and it can be decimal value or a hexadecimal value.Only those bits of the ttl whose corresponding bit in the mask is set to 1 will be used as match criteria.This can be used to match IPv4 Time-To-Live and IPv6 Hop Limit.&lt;/I&gt;"&lt;BR /&gt;
&lt;BR /&gt;
So, if my undestanding of this is correct, if you were looking for 7 or less, it would be easy. Mask off the last three bits with 248 (1111 1000) and if the result is zero, you're in. It would look like&lt;BR /&gt;
ttl 0 mask 248; # this should match 1 to 7&lt;BR /&gt;
But "less than 6" means 5 (0101), 4 (0100), 3 (0011), 2 (0010) and 1 (0001) so you can't check that with a single mask. You have to use two, to check for 10x and 0xx.&lt;BR /&gt;
entry test5-4_ttl_mask {&lt;BR /&gt;
  if match any {&lt;BR /&gt;
    ttl 4 mask 254; # this should match 4 and 5 &lt;BR /&gt;
} then {&lt;BR /&gt;
    deny;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
entry test3-2-1_ttl_mask {&lt;BR /&gt;
  if match any {&lt;BR /&gt;
    ttl 0 mask 252;  # this should match 1 to 3 &lt;BR /&gt;
  } then {&lt;BR /&gt;
    deny;&lt;BR /&gt;
  }&lt;BR /&gt;
}&lt;BR /&gt;
Please, let me know if this works...&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Jul 2015 01:33:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/creating-a-ttl-lt-6-acl-entry/m-p/53745#M15189</guid>
      <dc:creator>dflouret</dc:creator>
      <dc:date>2015-07-18T01:33:00Z</dc:date>
    </item>
  </channel>
</rss>

