MacOS – the exact equivalent of this netsh wlan add filter Windows command for Mac

bashmacosNetwork

I want to block all networks from my PC with admin access and make it so that the user cannot reverse the changes. I will use admin access to only white list certain networks that will be visible to the user and all other WiFi networks are blocked. I am blocking all connections in Windows with the following command. Since I am just starting out with macOS, any help in this regard is appreciated.

netsh wlan add filter permission=denyall networktype=infrastructure

Best Answer

Selecting the option to "Block all incoming connections" prevents all sharing services, such as File Sharing and Screen Sharing from receiving incoming connections.

Start with the firewall general help is my advice.

Once you know how those controls work, a follow-on question might work on how to lock this down, whether you use MDM or configuration profile or make a user not an administrator so they can’t change a setting you as the administrator set.

P.S. there is no exact equivalent as the systems are architected differently.