Firewall prevents the osx terminal from working...

I get this error when I try to execute commands from the Mac terminal application. I've authorized the terminal in the firewall connection blocking. I don't have application blocking turned on.

 

HTTP exception: Errno::ENOMEM:Cannot allocate memory - connect(2)

 

Note: If I turn off Norton Security's firewall I don't have a problem. The command executes without error.

 

Can you tell me how to configure the firewall to allow the terminal to work?

 

Patirck