|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On 25 Jul 2004, at 20:34, Chaz McGarvey wrote:
Hello:I don't believe there is an API to query the firewall or modify its rules. You wouldn't be able to change rules without superuser privileges.
Is there a way to detect if a port is being blocked by the firewall OS X uses? If so, is there a way to programmatically open a port? What I think would be nice is that when my server was run, it could detect if its port was being blocked and inform the user about this and offer to open it for them. In fact, now that I think about it, it would kind of be nice if the system did that automatically whenever listen() (or equivalent) was called and then closed the port when the server stopped listening. Would this be too big of a security risk?
Automatically opening a port whenever listen was called would entirely defeat the point of having the firewall rules in the first place
|>Automatically opening the firewall? (From: Chaz McGarvey <email@hidden>)|
|>Re: Automatically opening the firewall? (From: Frederick Cheung <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.