Working Nftables Rule for TTL in 22.03

I have this fw4 rule when tethering from my phone

chain mangle_postrouting_ttl65 {
  type filter hook postrouting priority 300; policy accept;
  counter ip ttl set 65
}

chain mangle_prerouting_ttl65 {
  type filter hook prerouting priority 300; policy accept;
  counter ip ttl set 65
}

in
/etc/nftables.d/12-mangle-ttl-65.nft

1 Like