Posted on 11-29-2013 10:59 AM
I have a backup app called NetWorker Recover that I need to update on a bunch of Macs. The problem is, if the firewall is turned on, the user will get prompted to allow or deny connections to the app.
Is there a way to find out if the firewall is turned on before getting installed by either a script or an EA?
Thanks in advance.
Posted on 11-29-2013 11:09 AM
I believe this should help.
https://jamfnation.jamfsoftware.com/viewProductFile.html?id=135&fid=330
Posted on 11-29-2013 11:22 AM
Hi, thanks for that. I am surprised that didn't show up in my search.
Please forgive me, how do you upload an xml file to the EAs? I thought they could only be scripts. Sorry to ask this.
EDIT: Nevermind, I figured this out.
Posted on 11-29-2013 11:52 AM
Is there a way to incorporate a script that will install the app only if the firewall is off?
Posted on 11-29-2013 12:27 PM
No worries on the questions. I'm usually the one asking and everyone at JN are so willing to help that it's nice to be able to give back.
I think the best approach to only installing it on computers that have the Firewall off would be to use Smart Groups.
Note: Since the EA gets gathered during Inventory reports computer won't start showing up until they have submitted a report.
If you are needing to turn the Firewall back on afterwards you could incorporate the script from this link within your policy and have it run "After". https://jamfnation.jamfsoftware.com/viewProductFile.html?id=135&fid=457
Whatever you decide to do just make sure to test test test.
Posted on 11-29-2013 12:45 PM
Actually, @andrewseago talked @ JNUC about having "active EA's."
Basically , as EA's are scripts... Why not use them as such?
So sack off the smart group, & instead if the firewall is found on, do something.
Posted on 12-02-2013 07:18 AM
I'm a fan of Andrew as much as the next admin (and I didn't see that presentation), but I try to avoid using EAs to "do something" wherever possible, that's what policies are for. I guess it cuts down on one smart group, but you lose a lot of control/flexibility as well as your audit trail.
For something as simple as a firewall action, just make it into a smart group/policy.
Posted on 06-18-2014 06:53 AM
@bentoms I am looking for a script or solution that turns off my user's laptops FW when they are in my network, and its turned ON when they unplug from it? Any suggestions how I may go about this? if there is a script you can point me to, it would be helpful. Thanks
Posted on 06-18-2014 07:29 AM
@bentoms is a heck of a guy, but should he be providing solutions to everybody, and if he has that much time to help everybody, i could use some free help :)? @wmateo why not fix the firewall so that it works all the time and just leave it on? If you really need to turn it off, I would look at the trigger in policies that is based off network changes. and use launchctl probably to unload the firewall and load it after verifying the network, as one option.