Last active
August 9, 2023 17:42
-
-
Save openhoangnc/ad570f313dd56ee9cff8c97766a61fb7 to your computer and use it in GitHub Desktop.
TTL65 - This file will automatically set the Time To Live (TTL) or maximum hop count of the network to 65 upon startup.
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>ttl65</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/sbin/sysctl</string> | |
| <string>-w</string> | |
| <string>net.inet.ip.ttl=65</string> | |
| <string>net.inet6.ip6.hlim=65</string> | |
| </array> | |
| <key>RunAtLoad</key> | |
| <true/> | |
| </dict> | |
| </plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have two options to set up the file:
This will download the file from the specified URL and save it as "ttl65.plist" in the /Library/LaunchDaemons/ folder.