Page 1 of 1

Howto allow only local connections for unencrypted port?

Posted: Tue Nov 21, 2006 8:26 pm
by chiappa
Hi,

Im setting up IRC Services on a only-ssl server. It needs to connect on the server unencrypted. So how can I open an unencrypted port allowing only local connections?

thanks so much

Posted: Tue Nov 21, 2006 8:47 pm
by Jobe

Code: Select all

listen 127.0.0.1:PORT;
As simple as that. Since only local software can connect to 127.0.0.1. Or to restrict it even further:

Code: Select all

listen 127.0.0.1:PORT {
   options {
      serversonly;
   };
};