Disabling Internet sharing

anickless
Contributor II

Hey I am wondering how to lock down internet sharing as it has become a huge issue for us. Seen an old post from 2012 but unsure if there is an updated way to do it for Mojave and newer macOS devices.

2 REPLIES 2

anickless
Contributor II

.

merps
Contributor III

This should disable the network sharing service.

#!/bin/sh

/bin/launchctl disable system/com.apple.NetworkSharing