Adaptive Firewall & afctl
Imported from the Apple Support Forums via the Wayback Machine 🔗
i've spent quite a bit of time reading up on the adaptive firewall and afctl.
i understand the whitelist & blacklist and how to add/remove entries to it.
what's confusing to me is what truly starts or stops the adaptive firewall? i've read different things... including the below 5 items. what does each of the below do and how are they different with regards to the adaptive firewall?
-----
/etc/emond.d/rules/AdaptiveFirewall.plist
Find all instances of: '<key>Active</key>'
Then on the next line, inside the '<string>' tags, change the 1 to a 0 or vice versa
-----
- to reload/restart the AF:
cd /System/Library/LaunchDaemons
sudo launchctl unload com.apple.emond.plist
sudo launchctl load com.apple.emond.plist
-----
- forces afctl into a running state (changes Active flag in /etc/af.plist )
/usr/libexec/afctl -f
-----
stopping/starting the main firewall
-----
restarting the system
-----
secondly, playing around with the adaptive firewall, i've seen it sometimes log invalid AFP attempts after one invalid login attempt (and add the IP to the blacklist) and i've seen it not log/do anything at all.
i added a few subnets to the whitelist, stopped and restarted the firewall via the Server Admin GUI and then tried to connect via AFP from a remote computer that is NOT in the whitelist. i expect it to log the invalid attempt and block that IP for 15 minutes but it's not showing any indication that a connection attempt was even made. sometimes it will after the first failed attempt. and by "sometimes", i mean after playing around with it, making small changes (like those listed above) but i can't seem to find a consistent basis.
what gives?
how has this all changed with 10.6 Server?
thanks!
0 replies
Sign in or join Beachball Help to reply.