Howto allow only local connections for unencrypted port?

These are old archives. They are kept for historic purposes only.
Post Reply
chiappa
Posts: 6
Joined: Sun Feb 05, 2006 9:18 pm

Howto allow only local connections for unencrypted port?

Post 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
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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;
   };
};
Post Reply