Is there a terminal command to reset all the ports to default? I have been experimenting with ports and would like to reset it back to default so no ports are left open.
Good question ! This is one reason I don't like the command line administration of firewall rule sets, it's so easy to make a mistake and/or forget what the original settings were.
I'll take a list of the default settings and post them here if no one else does (I'm not on leopard right now).
I've been having the same problem trying to figure out how to open up port 24800 so I can use synergy to share my keyboard and mouse. So after much searching I found an app with a somewhat lacking user interface that allows you to open and close ports amongst other things. It's free so I guess I shouldn't complain. It's called Waterroof and is a gui wrapper for terminal methods that have been discussed as solutions on this and other threads.
Sorry I didn't reply sooner, Leopard has not been my day-to-day OS because of issues such as this one 😉
Anyway, the default I have with the System Preferences set to "Allow all incoming connections" is this:
65535 allow ip from any to any
When I change the System Preference to "Block all incoming connections" or "Set access for specific services . . . " it makes no difference, it's always just this same: 65535 allow ip from any to any