Home | Networks | Community | Need Help? 

 
 Quick search

 
 
 RegisterRegister   Log inLog in 

SSL - problem with localhost
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services
Author Message
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Feb 24, 2005 2:48am    Post subject: SSL - problem with localhost Reply with quote

Hi,
i have a little problem
I am connecting via SSL to IRCD, its working perfect.
but when i joined the channel my local host IP address is IP of IRCD server.
I like to view real IP from client who is connect to server, Its possible?

I use this command:

./stunnel -c -d 6668 -r irc.server.com:6697

This is output:

nick is nick@irc.server.com * pstruh
nick is connecting from *@irc.server.com IP.IP.IP.IP
nick on @#mtf
nick using irc.server
nick is a Secure Connection
nick has been idle 10secs, signed on Wed Feb 23 20:47:12
nick End of /WHOIS list.

I cant see real IP of nick, only IP irc.server.com.

I want to see,

nick is nick@real.IP.of.client * pstruh
nick is connecting from *@real.IP.of.client IP.IP.IP.IP

but I dont know how can I fix it.

Thanks.
Back to top
nenolod
Idler
Idler


Joined: 23 Jan 2004
Posts: 357
Location: A box!

PostPosted: Feb 27, 2005 12:18pm    Post subject: Reply with quote

stunnel is an SSL proxy, not an actual tunnel. Therefore, syn requests are rewritten to come from stunnel itself, not the client IP.

I would suggest looking for an SSL patch for whatever IRCd platform you are running.
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Feb 27, 2005 2:36pm    Post subject: Reply with quote

I have Unreal3.2.2b-SSL, openssl-0.9.7e, stunnel-4.07 and OS is Linux Red Hat 7.1, 2.4.2-2 kernel
Back to top
theEd
Newbie
Newbie


Joined: 15 Mar 2004
Posts: 74
Location: New Zealand

PostPosted: Feb 27, 2005 5:27pm    Post subject: Reply with quote

Why use stunnel to connect to an IRC server that supports SSL?
Back to top
nenolod
Idler
Idler


Joined: 23 Jan 2004
Posts: 357
Location: A box!

PostPosted: Feb 27, 2005 10:44pm    Post subject: Reply with quote

pstruh wrote:
I have Unreal3.2.2b-SSL, openssl-0.9.7e, stunnel-4.07 and OS is Linux Red Hat 7.1, 2.4.2-2 kernel


Get rid of stunnel and create two listeners then. One to listen for non-SSL traffic and one to listen for SSL traffic. Most clients (irssi, BitchX, X-Chat) use port 9999 as default, so maybe more than two listeners.

Good luck!
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Feb 28, 2005 3:19pm    Post subject: Reply with quote

nenolod wrote:
pstruh wrote:
I have Unreal3.2.2b-SSL, openssl-0.9.7e, stunnel-4.07 and OS is Linux Red Hat 7.1, 2.4.2-2 kernel


Get rid of stunnel and create two listeners then. One to listen for non-SSL traffic and one to listen for SSL traffic. Most clients (irssi, BitchX, X-Chat) use port 9999 as default, so maybe more than two listeners.

Good luck!

My listen block is:


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

listen *:6668;

OK, I rid of stunnel. In my listen box I have non-SSL traffic on port 6668 and SSL trafic on port 6697.

I have started Unreal IRCD

Starting UnrealIRCd
_ _ _ ___________ _____ _
| | | | | |_ _| ___ \/ __ \ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| |
\___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_|
v3.2.2b
using TRE 0.7.0
using OpenSSL 0.9.7e 25 Oct 2004

* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Initializing SSL.
* Dynamic configuration initialized .. booting IRCd.
---------------------------------------------------------------------
All ok,but how can I connect to ircd via SSL? If I try to connect to port 6697
then type me Software caused connection abort.
Back to top
nenolod
Idler
Idler


Joined: 23 Jan 2004
Posts: 357
Location: A box!

PostPosted: Feb 28, 2005 3:51pm    Post subject: Reply with quote

Is your certificate valid? Check ircd.log too, it may or may not contain useful information.

Are you using select() or poll()? If you are using rtsigio (which I do not remember unreal supporting yet), then try using select or poll.
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Mar 02, 2005 1:24pm    Post subject: Reply with quote

nenolod wrote:
Is your certificate valid? Check ircd.log too, it may or may not contain useful information.

Are you using select() or poll()? If you are using rtsigio (which I do not remember unreal supporting yet), then try using select or poll.



Sorry, but what do you mean ? I dont understand, sorry
Back to top
theEd
Newbie
Newbie


Joined: 15 Mar 2004
Posts: 74
Location: New Zealand

PostPosted: Mar 02, 2005 2:44pm    Post subject: Reply with quote

To connect to an SSL server using mIRC, download and install OpenSSL from http://www.slproweb.com/products/Win32OpenSSL.html and then follow the instructions at http://www.mirc.co.uk/ssl.html
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Mar 02, 2005 4:17pm    Post subject: Reply with quote

theEd wrote:
To connect to an SSL server using mIRC, download and install OpenSSL from http://www.slproweb.com/products/Win32OpenSSL.html and then follow the instructions at http://www.mirc.co.uk/ssl.html



Yes, I have installed OpenSSL. I see I must conncet to port +6697, and then its working perfect. Thanks
Back to top
theEd
Newbie
Newbie


Joined: 15 Mar 2004
Posts: 74
Location: New Zealand

PostPosted: Mar 02, 2005 11:25pm    Post subject: Reply with quote

You're very welcome Smile Have a nice day
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Mar 03, 2005 1:06pm    Post subject: Reply with quote

HI, I want to ask you one question.

Which linux irc clients support SSL ?

thanks
Back to top
braindigitalis
Idler
Idler


Joined: 22 Sep 2003
Posts: 443
Location: IRC

PostPosted: Mar 03, 2005 2:35pm    Post subject: Reply with quote

pstruh wrote:
HI, I want to ask you one question.

Which linux irc clients support SSL ?

thanks


off the top of my head, xchat and irssi.

also any others if you use stunnel.
Back to top
pstruh
none
none


Joined: 24 Feb 2005
Posts: 29

PostPosted: Mar 03, 2005 5:45pm    Post subject: Reply with quote

Thanks.


One more question...

Its possible to snifing comunication between two user who are connected to server via SSL ?
I have on my server SSL port 6697 and non-SSL port 6667 available.
Is this possible when user is connected via non-SSL port ?
For examle, on the #channel is 50 users connected via SSL port and 30 users connected via non-SSL port.
What they can sniffing ?
Back to top
braindigitalis
Idler
Idler


Joined: 22 Sep 2003
Posts: 443
Location: IRC

PostPosted: Mar 04, 2005 8:05am    Post subject: Reply with quote

pstruh wrote:
Thanks.


One more question...

Its possible to snifing comunication between two user who are connected to server via SSL ?
I have on my server SSL port 6697 and non-SSL port 6667 available.
Is this possible when user is connected via non-SSL port ?
For examle, on the #channel is 50 users connected via SSL port and 30 users connected via non-SSL port.
What they can sniffing ?


for security to work, the following must be true:

The first user must be connected to a server via ssl
The second user must be connected to a server via ssl
Both users must be on the same server, OR the link between the two servers the users are on must be ssl.

If the server to server link is not also ssl, this link is vulnerable to sniffing.

Also remember that if either user has bad security practicies (or you do as a network) there may be other forms of tracking in place such as trojans, keyloggers, modified ircd source etc. Consider SSL a small part of a much larger security puzzle.

Also, if the channel has 30 users in it that are NOT ssl, the whole channel cannot be considered secure at all, as there are 30 vectors for packet sniffing. To ensure a channel is totally secure set the "only secure users can join" channel mode.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    SearchIRC Forum Index -> IRCD & Network Services All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
 
Forum powered by phpBB
 
 © 2000 - 2008 EverythingIRC, Inc. All rights reserved. Please read our disclaimer