Created
June 15, 2023 15:32
-
-
Save karthikeyan-mac/89864d4886ec27f0e723627316b98a84 to your computer and use it in GitHub Desktop.
Disable IPv6 in all ports
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
#!/bin/sh | |
IFS=$'\n' | |
allPorts=`networksetup -listallnetworkservices | grep -v asterisk` | |
for port in $allPorts | |
do | |
networksetup -setv6off "$port" | |
echo "$port" IPv6 is Off | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment