Skip to main content
Question

Disable stealthmode using terminal


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
  • 412 replies
  • 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
  • 449 replies
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings