Page 1 of 1

UnrealIRCD via SSL

Posted: Mon Jan 31, 2005 5:15 pm
by pstruh22
Hi, I have problem with stunnel. I like to create stunnel on my server. I want to create SSL connection on IRCD server. I am using UnrealIRCD. I have installed Stunnel 4.07 and OpenSSL 0.9.7e. I have created certificates. I use this command stunnel -c -d 6668 -r irc.myserver.sk:6697 and then when I run ircd then display me thist error:

[Mon Jan 24 18:27:49 2005] - Error binding stream socket to IP 0.0.0.0 port 6668 - irc.myserver.sk[]:Address already in use

Can you help me ?
thanks

Posted: Mon Jan 31, 2005 5:53 pm
by Ron2K
At first glance, it looks like something's wrong with the listen blocks. Do you mind posting them please?

Posted: Mon Jan 31, 2005 7:59 pm
by pstruh22
My listen Box is:


listen *:6697
{
options
{
ssl;
clientsonly;
};
};

listen *:6668;

Posted: Tue Feb 01, 2005 1:35 am
by codemastr
Specify the IP that your shell provider gave you, not *.

Posted: Tue Feb 01, 2005 5:18 pm
by pstruh22
I change my listen box to:

listen my.server.ip:6697
{
options
{
ssl;
clientsonly;
};
};

listen my.server.ip:6668;

but still not working.
[Tue Feb 1 18:15:27 2005] - Error binding stream socket to IP my.server.ip por
t 6668 - my.server.ip[]:Address already in use

Posted: Tue Feb 01, 2005 5:22 pm
by Dukat
Are you running Stunnel and the IRCd on the same machine?
Is another IRCd process still running?

Posted: Wed Feb 02, 2005 3:11 am
by Darvocet
pstruh22 wrote:[Tue Feb 1 18:15:27 2005] - Error binding stream socket to IP my.server.ip port 6668 - my.server.ip[]:Address already in use
This gives a very specific answer. You are trying to run your IRCd on 'my.server.ip:6668' something is already running on that IP. It could be another IRCd it could be a lot of things, but the point is SOMETHING is already running on it.

Also... on your suntour...

Code: Select all

on *:start: {
  dll stuntour.dll load_stunnel
  dll stuntour.dll hook_ports 6660 6668
}
...is something that I use to load it at the start of mirc. I would make sure that the 'hook_ports' are set for 6668, this could also cause problems connecting. If you dont want to trust my script, you most likely can type "/dll stuntour.dll hook_ports 6668" and that will make sure that port 6668 is enabled as an SSL port.

Darvocet

Posted: Wed Feb 02, 2005 3:20 am
by Stealth
Some thoughts:

If you are trying to open SSL ports on your server for clients to connect to, get Unreal with SSL enabled.

If you are trying to connect to your SSL server with mIRC, JUST UPGRADE! mIRC has supported SSL since version 6.14. All you need to do is get the Win32 OpenSSL libraries. There is info on the mIRC website.

$0.02

Posted: Wed Feb 02, 2005 6:40 pm
by pstruh22
Dukat wrote:Are you running Stunnel and the IRCd on the same machine?
Is another IRCd process still running?
Yes, i am running Stunnel and IRCd on the same machine, but on this machine is running IRCD Hybrid server on 6667, and i like to run second UnrealIRCD via SSL on port 6668.

Posted: Wed Feb 02, 2005 6:43 pm
by Darvocet
Yes, i am running Stunnel and IRCd on the same machine, but on this machine is running IRCD Hybrid server on 6667, and i like to run second UnrealIRCD via SSL on port 6668.
Then I would imagine that your Hybrid server is ALSO listening on 6668, and Unreal is unable to bind to that port.

Darvocet.

Posted: Wed Feb 02, 2005 6:55 pm
by Dukat
pstruh22 wrote:i like to run second UnrealIRCD via SSL on port 6668.
So what do you need Stunnel for?

Anyway:
You can't have Stunnel and UnrealIRCd listening on the same port (6668).