Re: Automatically opening the firewall?
Re: Automatically opening the firewall?
- Subject: Re: Automatically opening the firewall?
- From: Frederick Cheung <email@hidden>
- Date: Sun, 25 Jul 2004 21:33:41 +0200
On 25 Jul 2004, at 20:34, Chaz McGarvey wrote:
>
Hello:
>
>
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?
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.
Automatically opening a port whenever listen was called would entirely
defeat the point of having the firewall rules in the first place (and
would probably make a huge mess if you hard a custom set of rules of
your own).
Fred
>
>
Chaz McGarvey
>
http://www.brokenzipper.com
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.