# OSPF TTL Security Check

**URL:** https://forum.networklessons.com/t/ospf-ttl-security-check/1941
**Category:** Lessons Discussion
**Created:** [July 19, 2017, 2:29pm UTC](https://forum.networklessons.com/t/ospf-ttl-security-check/1941 "2017-07-19T14:29:02Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [October 16, 2017, 2:23pm UTC](https://forum.networklessons.com/t/ospf-ttl-security-check/1941/5 "2017-10-16T14:23:07Z")

</div>

Hello again Chris.

You must remember that the value configured in the `ttl-security all-interfaces hops` command is the number of **allowed hops** and not the actual value of the TTL field. The value is essentially a threshold.

The default value is actually 0. This means that it will accept any values of TTL equal to or greater than 255-0. Since routing decrements the TTL by one, this means that only OSPF packets from directly connected devices will be accepted.

If this threshold is configured at 100 hops, then only packets with a TTL higher than 255-100 = 155 will be accepted. That means that packets with a TTL within the range of 155 to the maximum of 255 will be accepted.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/ospf-ttl-security-check/1941)._
