Skip to content

Instantly share code, notes, and snippets.

@bupy7
Created April 25, 2017 15:27
Show Gist options
  • Save bupy7/1343ffc1a8afc7f530d1af2a517dc9ac to your computer and use it in GitHub Desktop.
Save bupy7/1343ffc1a8afc7f530d1af2a517dc9ac to your computer and use it in GitHub Desktop.
Change TTL on OSX
#!/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