Skip to content

Instantly share code, notes, and snippets.

@vsl-iil
Created September 14, 2023 19:58
Show Gist options
  • Save vsl-iil/11cf8e518ae4c76abf95b0dfc7d0749d to your computer and use it in GitHub Desktop.
Save vsl-iil/11cf8e518ae4c76abf95b0dfc7d0749d to your computer and use it in GitHub Desktop.
Really simple OpenRC TTL changer. Put it in /etc/init.d, make it executable and add to the default runlevel.
#!/sbin/openrc-run
start() {
echo 65 | sudo tee /proc/sys/net/ipv4/ip_default_ttl && echo 0 || echo 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment