Disabling IPv6 on Wireless via Casper

I wrote a script for Casper as an extended attribute to check and disable IPv6 on wireless.
The script checks against each client if a wireless interface is enabled and then checks if IPv6 is enabled on that interface. If it is the case, it will turn it off and pass the status over to the attributed field in casper.

In terminal, you can find the info out by running
networksetup -getinfo networkservice (Replace by Wi-Fi on 10.7-10.10 )
DHCP Configuration
IP address: XXX.XXX.XXX.XX
Subnet mask: XXX.XXX.XXX.XX
Router: XXX.XXX.XXX.XX
Client ID:

IPv6: Automatic

While it can be disabled via Terminal with sudo networksetup -setv6off networkservice , an automated version allows for a quick deployment.

Once completed, another networksetup -getinfo will show:
DHCP Configuration
IP address: XXX.XXX.XXX.XX
Subnet mask: XXX.XXX.XXX.XX
Router: XXX.XXX.XXX.XX
Client ID:
IPv6: Off

I have posted a script on my Github that handles it all via Casper.

While this was designed for Casper, the script itself can be used directly without the need of Casper

Cheers

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s