Skip to main content
Question

Disable stealthmode using terminal

  • June 9, 2020
  • 2 replies
  • 41 views

Forum|alt.badge.img+1

All,

I'm trying to run the following command but it's not having the expected effect. Am I missing something?

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off

Thanks!

2 replies

roiegat
Forum|alt.badge.img+16
  • Valued Contributor
  • June 10, 2020

Do you have a configuration profile in place that might be keeping it on?


boberito
Forum|alt.badge.img+22
  • Jamf Heroes
  • June 10, 2020

@tngo3 What are you expecting? It should just be turning stealth mode off so that the machine would respond to pings basically. You can read the preference to see if it's changing the value

defaults read /Library/Preferences/com.apple.alf stealthenabled

@roiegat This is one of the fun places where the binary trumps a config profile. The firewall and gatekeeper are the 2 frustrating places where this happens.