Skip to main content
  1. July/

Disabling IPV6 for fun and profit in OSX

Disabling IPv6 in OSX #

This aught be easier

networksetup -listallnetworkservices|sed -e 's/\ /\\ /g'|egrep -v \\*

fun, right?

for crap in `networksetup -listallnetworkservices|egrep -v \\\*|sed -e 's/ /POOPPOOP/g'`; do 
  int="`echo $crap|sed -e 's/POOPPOOP/ /g'`"; 
  echo "Int: ${int}"; 
  networksetup -getinfo "${int}";
  echo;
  echo "setting v6 off";
  networksetup -setv6off "${int}";
  echo 'validating';
  networksetup -getinfo "${int}";
done