Adding a executable to a firewall Configuration Profile

burdett
Contributor II

I have an installer that will prompt the user to accept incoming network connections.

burdett_0-1663967649774.png

However they don't have administrative rights.  Allowing this will add this to the application firewall but I can't figure out how to do this (automate) with JAMF.

burdett_1-1663968659139.png

I tried to add this to my firewall configuration profile however this is a executable and I don't think it has bundle ID.  I tried this command and it came up null. 

 

osascript -e 'id of app "/usr/local/bmc-software/client-management/client/bin/mtxagent"'

 

I tried to add this to the application firewall from the this command line

 

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/bmc-software/client-management/client/bin/mtxagent

 

 But this command gives me reply,  "Firewall settings cannot be modified from command line on managed Mac computers"

I'm stuck, any ideas?

 

1 REPLY 1

burdett
Contributor II

Anyone have an ideal how I can add an executable file (no bundle ID) to a firewall Configuration Profile?