Hmm, this question is a bit more wide open that you probably  
intended, for example if you mean to temporarily block a port using  
your built-in firewall (only valid until a restart or resetting of  
the firewall)

you can do something like:

sudo ipfw add 100 deny tcp from any to any dst-port 5298 in

                        rule# allow/deny service(tcp/ip/udp) source  to dest

in the terminal

adding a rule for each type of service ip tcp or udp.

You will need the admin password to modify the ruleset. Try typing  
man ipfw (in Terminal) for some info on this and do a Google search  
for more info.

sudo ipfw list will show you the rule set in place right now.

                        Jerry

On Mar 6, 2006, at 3:45 PM, Brian O'Neal wrote:

> Could someone tell me what the command is to manually close a port  
> in the terminal?
>
> Brian ONeal
>
>
> | The next meeting of the Louisville Computer Society will
> | be March 28  at Pitt Academy, 6010 Preston Highway.
> | The LCS Web page is <http://www.kymac.org>.
> | List posting address: <mailto:macgroup at erdos.math.louisville.edu>
> | List Web page: <http://erdos.math.louisville.edu/macgroup>

-----------------------------------
Someday, I will come up with a clever signature line. I am not sure  
if I will use it or not, but I will come up with one.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2373 bytes
Desc: not available
Url : 
http://www.math.louisville.edu/pipermail/macgroup/attachments/20060306/1cc71c75/attachment.bin
 

Reply via email to