🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by Etian Tue, 23 Jun 2009 03:06
stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81461
Author: Etian
Date: Tue, 23 Jun 2009 03:06
8 lines
1551 bytes
Are there experiences that show that it does or doesn't work?  I haven't 
found anyone reporting success, but stunnel.org faq claims that it 
should work with standalone daemons including nntp.  SSL is on the todo 
list for dreader, and it's included in the commercial release of 
nntpswitch but not the open-source version.

Etian
sonic-news
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81484
Author: Gab
Date: Fri, 26 Jun 2009 13:09
17 lines
1704 bytes
Etian wrote:

> Are there experiences that show that it does or doesn't work?  I haven't 
> found anyone reporting success, but stunnel.org faq claims that it 
> should work with standalone daemons including nntp.  SSL is on the todo 
> list for dreader, and it's included in the commercial release of 
> nntpswitch but not the open-source version.

It does work news <dot> gabrix <dot> ath <dot> cx port 563

> Etian
> sonic-news

Gab
Noauth

Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81500
Author: Etian
Date: Sat, 27 Jun 2009 11:32
27 lines
2206 bytes
Gab wrote:
> Etian wrote:
> 
>> Are there experiences that show that it does or doesn't work?  I 
>> haven't found anyone reporting success, but stunnel.org faq claims 
>> that it should work with standalone daemons including nntp.  SSL is on 
>> the todo list for dreader, and it's included in the commercial release 
>> of nntpswitch but not the open-source version.
> 
> It does work news <dot> gabrix <dot> ath <dot> cx port 563
> 
>> Etian
>> sonic-news
> 
> Gab
> Noauth
> 
> 
OK, that was easy, I got it to work with nntpswitch.  The problem is 
that nntpswitch thinks that all connections coming through stunnel are 
from the local IP address.  Tried transparent = yes, and it stopped 
working altogether.  I think I can tweak nntpswitch to make it work, by 
removing the limit on number of connections per host from the local IP 
address.

Etian
sonic-news
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81501
Author: Julien ÉLIE
Date: Sat, 27 Jun 2009 11:52
19 lines
2322 bytes
Hi Etian,

> OK, that was easy, I got it to work with nntpswitch.  The problem is that nntpswitch thinks that all connections coming through 
> stunnel are from the local IP address.  Tried transparent = yes, and it stopped working altogether.  I think I can tweak 
> nntpswitch to make it work, by removing the limit on number of connections per host from the local IP address.

I do not think it is possible to make nntpswitch to have the real IP.
When using stunnel, you will have the local IP address.

At least, it is what I also saw when I tried stunnel with nnrpd (though
nnrpd in INN is SSL-enabled).
Unless I missed something?

-- 
Julien ÉLIE

« Le chemin le plus court d'un point à un autre est la ligne droite,
  à condition que les deux points soient bien en face l'un de l'autre. » (Pierre Dac) 
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81504
Author: Ray Banana
Date: Sat, 27 Jun 2009 11:57
18 lines
2313 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
 
>> The problem is that nntpswitch thinks that all connections coming
>> through stunnel are from the local IP address.  
[...]
> I do not think it is possible to make nntpswitch to have the real IP.
> When using stunnel, you will have the local IP address.
> At least, it is what I also saw when I tried stunnel with nnrpd (though
> nnrpd in INN is SSL-enabled).
> Unless I missed something?

No, this is correct. The same applies to load balancers talking to
nnrpds. The server should not set the NNTP-Posting-Host header when
using tunnels or load balancers, as this would trigger some filters.

-- 
Time flies like an arrow, fruit flies like a Banana.
http://www.eternal-september.org
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81502
Author: Etian
Date: Sat, 27 Jun 2009 16:04
13 lines
1865 bytes
Julien ÉLIE wrote:
  > I do not think it is possible to make nntpswitch to have the real IP.
> When using stunnel, you will have the local IP address.
> 
stunnel manpage describes a "transparent proxy" mode, but it would have 
needed to be compiled into the linux kernel, plus some other voodoo and 
caveats that I can't quite make sense of.

I figured there was some reason for building SSL support into the nntp 
server software, and this is it.

Etian
sonic-news
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81505
Author: Julien ÉLIE
Date: Sat, 27 Jun 2009 18:31
16 lines
2125 bytes
Hi Etian,

> I figured there was some reason for building SSL support into the nntp server software, and this is it.

Moreover, a connection is not necessarily encrypted from the beginning.
We can talk NNTP without using SSL.  Then, the client sends STARTTLS
and a TLS layer is negotiated on the existing connection.
stunnel cannot provide that.

-- 
Julien ÉLIE

« Le chemin le plus court d'un point à un autre est la ligne droite,
  à condition que les deux points soient bien en face l'un de l'autre. »
  (Pierre Dac) 
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81508
Author: floffy
Date: Sun, 28 Jun 2009 00:07
14 lines
1871 bytes
On Sat, 27 Jun 2009 20:31:43 +0200, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Etian,
>
>> I figured there was some reason for building SSL support into the nntp server software, and this is it.
>
>Moreover, a connection is not necessarily encrypted from the beginning.
>We can talk NNTP without using SSL.  Then, the client sends STARTTLS
>and a TLS layer is negotiated on the existing connection.
>stunnel cannot provide that.

zebedee , i think this prg can !
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81511
Author: Grant Taylor
Date: Sun, 28 Jun 2009 06:43
14 lines
1866 bytes
On 6/27/2009 6:52 AM, Julien ÉLIE wrote:
> I do not think it is possible to make nntpswitch to have the real IP. 
>  When using stunnel, you will have the local IP address.

That is what I would expect.

SSLTunnel (or similar) act as a proxy in that they terminate the SSL 
protected connection and establish a new unprotected connection to the 
back end server.  So what you end up with is two separate connections 
with the only thing in common is the data being proxied between them.



Grant. . . .
Re: stunnel with a non-SSL enabled nntp server daemon like nntpswitch or dreader?
#81514
Author: Julien ÉLIE
Date: Sun, 28 Jun 2009 07:51
18 lines
2267 bytes
Hi Grant,

>> I do not think it is possible to make nntpswitch to have the real IP. When using stunnel, you will have the local IP address.
>
> That is what I would expect.
>
> SSLTunnel (or similar) act as a proxy in that they terminate the SSL protected connection and establish a new unprotected 
> connection to the back end server.  So what you end up with is two separate connections with the only thing in common is the data 
> being proxied between them.

That sounds logic.  Thanks!

-- 
Julien ÉLIE

« [...] cette sombre superstition qui porte les âmes faibles
  à imputer des crimes à quiconque ne pense pas comme elles. » (Voltaire) 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads