# Change outgoing TTL

**URL:** <https://forum.gl-inet.com/t/change-outgoing-ttl/2096>\
**Category:** Router\
**Created:** [May 1, 2017, 5:02am UTC](https://forum.gl-inet.com/t/change-outgoing-ttl/2096 "2017-05-01T05:02:03Z")\
**Posts on this page:** 1\
**Showing post:** 115

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [June 28, 2023, 7:29am UTC](https://forum.gl-inet.com/t/change-outgoing-ttl/2096/115 "2023-06-28T07:29:41Z")

</div>

OpenWrt 22.03 changed a lot. To set up ttl in OpenWrt 22.03, pls use the following command

```auto
mkdir -p /usr/share/nftables.d/chain-pre/mangle_postrouting/
echo "ip ttl set 65" > /usr/share/nftables.d/chain-pre/mangle_postrouting/01-set-tt
l.nft
fw4 reload

```

The above command set ttl 65 to all interfaces

---

_[View the full topic](https://forum.gl-inet.com/t/change-outgoing-ttl/2096)._
