Created
September 14, 2023 19:58
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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