UnrealIRCD via SSL

These are old archives. They are kept for historic purposes only.
Post Reply
pstruh22
Posts: 48
Joined: Mon Jan 31, 2005 2:14 pm

UnrealIRCD via SSL

Post 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
Ron2K

Post by Ron2K »

At first glance, it looks like something's wrong with the listen blocks. Do you mind posting them please?
pstruh22
Posts: 48
Joined: Mon Jan 31, 2005 2:14 pm

Post by pstruh22 »

My listen Box is:


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

listen *:6668;
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Specify the IP that your shell provider gave you, not *.
-- codemastr
pstruh22
Posts: 48
Joined: Mon Jan 31, 2005 2:14 pm

Post 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
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Are you running Stunnel and the IRCd on the same machine?
Is another IRCd process still running?
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Post 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
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post 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
pstruh22
Posts: 48
Joined: Mon Jan 31, 2005 2:14 pm

Post 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.
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Post 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.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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).
Post Reply