Created
April 25, 2017 15:27
-
-
Save bupy7/1343ffc1a8afc7f530d1af2a517dc9ac to your computer and use it in GitHub Desktop.
Change TTL on OSX
This file contains 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
#!/usr/bin/env bash | |
if [ "${1}" == "--help" ]; then | |
echo "Usage: sudo `basename $0` [64|65]" | |
exit 0 | |
fi | |
TTL=${1:-64} | |
sysctl -w net.inet.ip.ttl=$TTL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment