Start/Stop Internet Sharing via Terminal in Yosemite without AppleScript Okay, I see this question has been asked a few times before (here, here, here and here), but none of those really answer the question for me.

I don't want to use the AppleScript suggestions provided to enable/disable Internet Sharing since future updates to the System Preferences GUI may break the AppleScript, as was the case in the linked posts above, and the solution seems a little clumsy, to be honest.

On Yosemite, sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.InternetSharing.plist no longer works as there's no longer a .plist called InternetSharing.

I tried 
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.nat NAT -dict-add Enabled -int 1 
which I saw somewhere else, but that only toggles the actual checkbox in System Preferences and doesn't actually enable IS.

So ultimately, my question is this. What processes do I have to call from the command line to enable Internet Sharing, or conversely, what processes do I have to kill to disable Internet Sharing?
I stumbled across a seemingly stupidly easy way to enable/disable Internet Sharing the other day. There's just a bit of prep work to be done first.


Open System Preferences > Network
Highlight the interface you want to share your connection FROM and click the gear below the interface list
Select 'Duplicate Service...'
Give the duplicated service a name and save it
Set the service to 'DHCP with manual address' (because some DHCP servers will not assign an additional address to a MAC) and input a valid IP


That's the prep work done. Now you just need to change your IS settings to share from the new service instead of the existing one. Then, you can use 
networksetup -setnetworkserviceenabled &lt;networkservice&gt; &lt;on off&gt; to toggle the network service you just created on or off. Doing so disables IS as there is no service to receive internet access from, and you still retain access on your machine because there is still an active interface connected to your network!