Skip to content

Instantly share code, notes, and snippets.

@jkullick
Last active January 16, 2023 12:18
Show Gist options
  • Save jkullick/f1f3c1b601596ec7093c1399f0667305 to your computer and use it in GitHub Desktop.
Save jkullick/f1f3c1b601596ec7093c1399f0667305 to your computer and use it in GitHub Desktop.
Hide NAT from ISP with IPTables on Linux NAT Router
iptables -t mangle -A POSTROUTING -o eth0 -j TTL --ttl-set `cat /proc/sys/net/ipv4/ip_default_ttl`

Alternative:

iptables -t mangle -A POSTROUTING -o eth0 -j TTL --ttl-inc 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment