Skip to content

Instantly share code, notes, and snippets.

@gjpalau
Created April 1, 2015 15:05
Show Gist options
  • Save gjpalau/624ccd1200a4c7b18461 to your computer and use it in GitHub Desktop.
Save gjpalau/624ccd1200a4c7b18461 to your computer and use it in GitHub Desktop.
Disable IPv6 on all network devices on os x
#!/bin/sh
IFS=$'\n'
net=`networksetup -listallnetworkservices | grep -v asterisk`
for i in $net
do
networksetup -setv6off "$i"
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment