Add firewall rule programmatically

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 11:32:05

问题


I am developing an application for Mac, and wants to add firewall rule when my application launches,

would like to know the entry point, if anyone has any idea,
I guess, i need to modify
/Library/Preferences/com.apple.sharing.firewall.plist
But this file is not present in my Machine and any info about structure of this file ?

Requirement is something like this

When it runs, then browser shouldn't allow to open some particulars website, so i believe, this is going to be a application level firewall.


回答1:


Thanks for looking at it, Finally i am using ipfw to do so, but still not yet clear about how to configure the rule



来源:https://stackoverflow.com/questions/8242034/add-firewall-rule-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!