🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
10 messages
10 total messages Started by Grant Taylor Mon, 22 Apr 2019 20:39
ToR Hidden Service
#303957
Author: Grant Taylor
Date: Mon, 22 Apr 2019 20:39
32 lines
2126 bytes
As I'm reading more about ToR Hidden Services, a.k.a. Onion Services, 
I'm starting to wonder:

Is there any community consensus about how ToR H.S. is configured?

1)  Is there any preference on older 16 character vs newer 56 character 
ToR Hidden Service names?
2)  Is v2 Client Authorization okay?
       …
       HiddenServiceAuthorizeClient [auth-type] [service-name]
       …
       HidServAuth [onion-address] [auth-cookie] [service-name]
       …
3)  What about v3 Client Authorization?

It seems as if the Client Authorization can be configured in the ToR 
client, thus /hopefully/ making it transparent to the service using the 
ToR client.

I'm inclined to use the newer, and hypothetically better, security 
features.  However, this excludes older clients that aren't capable of 
using the new security features.  This seems antithetical to the idea of 
running a Remailer that's as easy as possible for people to connect to 
and use.

I'm curious to know what veteran Remops and Remailer users think.



-- 
Grant. . . .
unix || die
Re: ToR Hidden Service
#303980
Author: Neodome Admin
Date: Wed, 24 Apr 2019 02:10
60 lines
3763 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> As I'm reading more about ToR Hidden Services, a.k.a. Onion Services, 
> I'm starting to wonder:
> 
> Is there any community consensus about how ToR H.S. is configured?
> 
> 1)  Is there any preference on older 16 character vs newer 56 character 
> ToR Hidden Service names?
> 2)  Is v2 Client Authorization okay?
>       …
>       HiddenServiceAuthorizeClient [auth-type] [service-name]
>       …
>       HidServAuth [onion-address] [auth-cookie] [service-name]
>       …
> 3)  What about v3 Client Authorization?
> 
> It seems as if the Client Authorization can be configured in the ToR 
> client, thus /hopefully/ making it transparent to the service using the 
> ToR client.
> 
> I'm inclined to use the newer, and hypothetically better, security 
> features.  However, this excludes older clients that aren't capable of 
> using the new security features.  This seems antithetical to the idea of 
> running a Remailer that's as easy as possible for people to connect to 
> and use.
> 
> I'm curious to know what veteran Remops and Remailer users think.

I don't think Tor-capable remailers use client authorization.

I would use it for different purpose. Let's say, for some reason we want to
do Usenet peering over Tor. The problem is that all connections coming from
Tor network are seen as coming from IP address 127.0.0.1. If you point
tunnel to localhost:119 INN will have no means to tell if it's really me
connecting to your server or someone else. Even if I'm the only one who
knows the hidden service address it will probably eventually be found by
scanners. Obviously it is a major security hole and it makes all kinds of
abuse possible. Now, INN itself have password-based authorization, but with
Tor client authorization you can ensure that only those with login-password
are able to even initialize the connection. INN won't even see third-party
attempts to connect if there will be any.

Remailers, on the other hand, should allow anyone to connect thus they
probably don't use any authorization.

P.S. This is not really imaginary example. For some time I was
experimenting with peering over anonymous networks, and the results were
(are) very good. Both I2P and Tor are more than able to handle real-time
text-only Usenet feed in real life. Currently I have only one I2P peer -
i2pn.org, but I know i2pn.org's admin is peering with few other people via
anonymous networks. Even though it's little slower than conventional
peering it have several advantages: there is no need to have FQDN, no need
for static IP, and you or your peer can be behind NAT/firewall since both
Tor and I2P are designed to work in such circumstances. Basically it allows
installing INN on your home machine and do "real" Usenet peering without
having a real server, as long as there is stable and relatively fast
Internet connection.

-- 
Neodome
Re: ToR Hidden Service
#303981
Author: Grant Taylor
Date: Wed, 24 Apr 2019 02:46
70 lines
4333 bytes
On 4/23/19 8:10 PM, Neodome Admin wrote:
> I don't think Tor-capable remailers use client authorization.

Please forgive my ignorance.  Are there remailer clients that are 
themselves ToR clients?  Or do they rely on a separate local ToR client?

> I would use it for different purpose. Let's say, for some reason we 
> want to do Usenet peering over Tor. The problem is that all connections 
> coming from Tor network are seen as coming from IP address 127.0.0.1.

Ya.  I got that impression.  Or at least that such is the default.

I'm going to try to avoid connections to / from localhost (127.0.0.1 and 
::1).  I am planing on trying to use a different unrouted network for 
ToR / I2P clients.  Maybe something in the 169.254/16 range.

The idea being I want ToR / I2P clients to connect to my services as 
from somewhere other than localhost.

> If you point tunnel to localhost:119 INN will have no means to tell 
> if it's really me connecting to your server or someone else. Even if 
> I'm the only one who knows the hidden service address it will probably 
> eventually be found by scanners. Obviously it is a major security hole and 
> it makes all kinds of abuse possible.

Agreed.

> Now, INN itself have password-based authorization, but with Tor client 
> authorization you can ensure that only those with login-password are 
> able to even initialize the connection. INN won't even see third-party 
> attempts to connect if there will be any.

I like that much better.

> Remailers, on the other hand, should allow anyone to connect thus they 
> probably don't use any authorization.

I was thinking about publishing the password, possibly making it the 
remailer name.  Sort of like public WiFi hot spots that use a published 
WEP / WPA key so that it's an encrypted hot spot.

> P.S. This is not really imaginary example. For some time I was 
> experimenting with peering over anonymous networks, and the results were 
> (are) very good. Both I2P and Tor are more than able to handle real-time 
> text-only Usenet feed in real life.

I'm not surprised.  Especially with the recent down trend in daily text 
only Usenet traffic.  (I keep an eye on my Daily Usenet report.

> Currently I have only one I2P peer - i2pn.org, but I know i2pn.org's 
> admin is peering with few other people via anonymous networks. Even though 
> it's little slower than conventional peering it have several advantages: 
> there is no need to have FQDN, no need for static IP, and you or your 
> peer can be behind NAT/firewall since both Tor and I2P are designed to 
> work in such circumstances. Basically it allows installing INN on your 
> home machine and do "real" Usenet peering without having a real server, 
> as long as there is stable and relatively fast Internet connection.

I largely agree with all the above.  Save for the fact that I would 
still consider that a real server.  It's just not public.  ;-)

Thank you for the feedback.  I will consider offering ToR and / or I2P 
connectivity options for people that are interested.  After all, you 
make some very salient points about lack of globally routed IPs.



-- 
Grant. . . .
unix || die
Re: ToR Hidden Service
#304045
Author: Neodome Admin
Date: Fri, 26 Apr 2019 22:19
144 lines
7440 bytes
Grant Taylor <gtaylor@tnetconsulting.net> writes:

> On 4/23/19 8:10 PM, Neodome Admin wrote:
>> I don't think Tor-capable remailers use client authorization.
>
> Please forgive my ignorance.  Are there remailer clients that are
> themselves ToR clients?  Or do they rely on a separate local ToR
> client?
>
>> I would use it for different purpose. Let's say, for some reason we
>> want to do Usenet peering over Tor. The problem is that all
>> connections coming from Tor network are seen as coming from IP
>> address 127.0.0.1.
>
> Ya.  I got that impression.  Or at least that such is the default.
>
> I'm going to try to avoid connections to / from localhost (127.0.0.1
> and ::1).  I am planing on trying to use a different unrouted network
> for ToR / I2P clients.  Maybe something in the 169.254/16 range.
>
> The idea being I want ToR / I2P clients to connect to my services as
> from somewhere other than localhost.


I uderstand why.

I2P can do it without problems. Actually, that's what me and i2pn.org
admin are doing. Usually I2P generates random key for a tunnel every
time new tunnel is created, however, there is an option to generate
persistent keys, and there is an option to generate bogus IP based on
three first bytes of the key. Those two options combines together allow
one to always see connection from the same 127.x.x.x address. For
example, here is what I see in my inn.status:

127.131.68.150
 ip address: 127.131.68.150
    seconds: 3047           duplicates: 0     max allowed cxns: 8
    offered: 4701        uw newsgroups: 0          active cxns: 1
   accepted: 0        uw distributions: 0        sleeping cxns: 0
    refused: 4701           unapproved: 0       want streaming: Yes
   rejected: 0                filtered: 0         is streaming: Yes
       size: 0.0kb           bad sites: 0       duplicate size: 0.0kb
reject size: 0.0kb
  Protocol:
      Ihave: 0      SendIt[335]: 0         Got[435]: 0      Deferred[436]: 0
      Check: 4701   SendIt[238]: 0         Got[438]: 4701   Deferred[431]: 0
   Takethis: 0          Ok[239]: 0       Error[439]: 0

That IP address never changes. When I had another I2P peer (it was my
own server that I was going to shut down), I had two separate entries in
logs. That helps to track the flow of traffic, not to mention that I
use connections from 127.0.0.1 for something else (my mail2news.)

Outgoing traffic is easy to see too. Here's what I have in innfeed.conf:

peer novabbs {
        ip-name: localhost
        port-number: 9130
        max-connections: 8
}

And innfeed.status:

novabbs
   Addr 1 : IPv4  127.0.0.1
   seconds: 72592     art. timeout: 600          ip name: localhost
   offered: 17408    resp. timeout: 300             port: 9130
  accepted: 233     want streaming: yes      active cxns: 1
   refused: 14830     is streaming: yes    sleeping cxns: 0
  rejected: 328         max checks: 20      initial cxns: 1
   missing: 0          no-check on: 95.0%      idle cxns: 0
  deferred: 1997      no-check off: 90.0%       max cxns: 1/8
  requeued: 20       no-check fltr: 50.0    queue length: 0.0/10
   spooled: 5050    dynamic method: 3              empty: 100.0%
[overflow]: 1227     dyn b'log low: 20.0%        >0%-25%: 0.0%
[on_close]: 10      dyn b'log high: 50.0%        25%-50%: 0.0%
[sleeping]: 3813    dyn b'log stat: 2.9%        50%-75%: 0.0%
 unspooled: 5051    dyn b'log fltr: 20.0       75%-<100%: 0.0%
  no queue: 7850    avr.cxns queue: 6.2             full: 0.0%
accpt size: 1.14 MB  drop-deferred: false   defer length: 0.0
rejct size: 1.25 MB  min-queue-cxn: false
                 spooling: UNLIMITED
   offered:  1.61 art/s   accepted:  0.04 art/s, 216 B/s
   refused:  1.56 art/s   rejected:  0.02 art/s, 57.4 B/s
   missing 0 spooled 3

Unfortunately, I don't know of easy way to do the same thing with
Tor. Outgoing connections don't seem to be an issue, but incoming ones
are different story. I assume one will have to manually create second
local loopback address and bind Tor tunnel to that address.

Clients connecting to my server via Tor/I2P are handled differently.
I have dedicated tunnels for clients and three NNRPD daemon instances
that are handling connections from those tunnels.

>> If you point tunnel to localhost:119 INN will have no means to tell
>> if it's really me connecting to your server or someone else. Even if
>> I'm the only one who knows the hidden service address it will
>> probably eventually be found by scanners. Obviously it is a major
>> security hole and it makes all kinds of abuse possible.
>
> Agreed.
>
>> Now, INN itself have password-based authorization, but with Tor
>> client authorization you can ensure that only those with
>> login-password are able to even initialize the connection. INN won't
>> even see third-party attempts to connect if there will be any.
>
> I like that much better.
>
>> Remailers, on the other hand, should allow anyone to connect thus
>> they probably don't use any authorization.
>
> I was thinking about publishing the password, possibly making it the
> remailer name.  Sort of like public WiFi hot spots that use a
> published WEP / WPA key so that it's an encrypted hot spot.
>
>> P.S. This is not really imaginary example. For some time I was
>> experimenting with peering over anonymous networks, and the results
>> were (are) very good. Both I2P and Tor are more than able to handle
>> real-time text-only Usenet feed in real life.
>
> I'm not surprised.  Especially with the recent down trend in daily
> text only Usenet traffic.  (I keep an eye on my Daily Usenet report.
>
>> Currently I have only one I2P peer - i2pn.org, but I know i2pn.org's
>> admin is peering with few other people via anonymous networks. Even
>> though it's little slower than conventional peering it have several
>> advantages: there is no need to have FQDN, no need for static IP,
>> and you or your peer can be behind NAT/firewall since both Tor and
>> I2P are designed to work in such circumstances. Basically it allows
>> installing INN on your home machine and do "real" Usenet peering
>> without having a real server, as long as there is stable and
>> relatively fast Internet connection.
>
> I largely agree with all the above.  Save for the fact that I would
> still consider that a real server.  It's just not public.  ;-)
>
> Thank you for the feedback.  I will consider offering ToR and / or I2P
> connectivity options for people that are interested.  After all, you
> make some very salient points about lack of globally routed IPs.

-- 
Neodome
Re: ToR Hidden Service
#304050
Author: Grant Taylor
Date: Sat, 27 Apr 2019 00:27
75 lines
4032 bytes
On 4/26/19 4:19 PM, Neodome Admin wrote:
> I uderstand why.

}:-)

> I2P can do it without problems. Actually, that's what me and i2pn.org 
> admin are doing. Usually I2P generates random key for a tunnel every 
> time new tunnel is created, however, there is an option to generate 
> persistent keys, and there is an option to generate bogus IP based on 
> three first bytes of the key. Those two options combines together allow 
> one to always see connection from the same 127.x.x.x address. For example, 
> here is what I see in my inn.status:

Interesting.

I would like to avoid general I2P traffic being anywhere in the 127/8 
class A (sized) network.  I've managed to do that with Tor.

I'll have to research if it's possible to alter the first byte of the 
I2P addresses to something other than 127.

> That IP address never changes. When I had another I2P peer (it was my 
> own server that I was going to shut down), I had two separate entries 
> in logs. That helps to track the flow of traffic, not to mention that 
> I use connections from 127.0.0.1 for something else (my mail2news.)

ACK

> Outgoing traffic is easy to see too. Here's what I have in innfeed.conf:
> 
> peer novabbs {
>          ip-name: localhost
>          port-number: 9130
>          max-connections: 8
> }

Hum.  I don't like the idea of a remote system being identified as 
localhost in any capacity.  Sure, another name can resolve to the 
address.  But my dislike is rooted in the 127/8 on lo.

> Unfortunately, I don't know of easy way to do the same thing with 
> Tor. Outgoing connections don't seem to be an issue, but incoming ones 
> are different story. I assume one will have to manually create second 
> local loopback address and bind Tor tunnel to that address.

What do you have listening on localhost:9130?

Does I2P have an ability to listen on localhost:9130?  Or are you using 
something, possibly socat, to listen and then SOCKSify the traffic to 
the I2P SOCKS server?

I would probably be inclined to allocate an IP address for the remote 
peer and use some networking magic (routing and tun2socks) to make 
traffic to said IP go through {Tor,I2P}'s SOCKS server.

> Clients connecting to my server via Tor/I2P are handled differently.

ACK

> I have dedicated tunnels for clients and three NNRPD daemon instances 
> that are handling connections from those tunnels.

Why do you need the multiple NNRPD daemons?  Do you /need/ to have them? 
  Or do you /want/ to have (three of) them for some reason?

I think I would want /something/ that I can use like a static IP (or 
possibly name) to identify peers that I have an established relationship 
with.  Incoming clients using the remailer is transient and I'm less 
concern about.



-- 
Grant. . . .
unix || die
Re: ToR Hidden Service
#304064
Author: Neodome Admin
Date: Sat, 27 Apr 2019 20:42
97 lines
4948 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 4/26/19 4:19 PM, Neodome Admin wrote:
>> I uderstand why.
> 
> }:-)
> 
>> I2P can do it without problems. Actually, that's what me and i2pn.org 
>> admin are doing. Usually I2P generates random key for a tunnel every 
>> time new tunnel is created, however, there is an option to generate 
>> persistent keys, and there is an option to generate bogus IP based on 
>> three first bytes of the key. Those two options combines together allow 
>> one to always see connection from the same 127.x.x.x address. For example, 
>> here is what I see in my inn.status:
> 
> Interesting.
> 
> I would like to avoid general I2P traffic being anywhere in the 127/8 
> class A (sized) network.  I've managed to do that with Tor.
> 
> I'll have to research if it's possible to alter the first byte of the 
> I2P addresses to something other than 127.

If you install I2P, point your IRC client to 127.0.0.1:6668. I think
channel name is #i2p-dev. I used to follow I2P development closely, and
back in those days I2P development team was really kind and helpful.
Hopefully this is still the case.

>> That IP address never changes. When I had another I2P peer (it was my 
>> own server that I was going to shut down), I had two separate entries 
>> in logs. That helps to track the flow of traffic, not to mention that 
>> I use connections from 127.0.0.1 for something else (my mail2news.)
> 
> ACK
> 
>> Outgoing traffic is easy to see too. Here's what I have in innfeed.conf:
>> 
>> peer novabbs {
>> ip-name: localhost
>> port-number: 9130
>> max-connections: 8
>> }
> 
> Hum.  I don't like the idea of a remote system being identified as 
> localhost in any capacity.  Sure, another name can resolve to the 
> address.  But my dislike is rooted in the 127/8 on lo.

I'm not aware of any possible issues that might arise if remote peer will
resolve as localhost for outgoing connections.

>> Unfortunately, I don't know of easy way to do the same thing with 
>> Tor. Outgoing connections don't seem to be an issue, but incoming ones 
>> are different story. I assume one will have to manually create second 
>> local loopback address and bind Tor tunnel to that address.
> 
> What do you have listening on localhost:9130?

I2P tunnel with destination set to novabbs b32 address.

> Does I2P have an ability to listen on localhost:9130?

Yes.

> Or are you using 
> something, possibly socat, to listen and then SOCKSify the traffic to 
> the I2P SOCKS server?

That would make sense if I had multiple I2P/Tor peers, so I won't have to
create new tunnel for each new peer. However, I also would have to make
sure innfeed is trying to resolve Tor/I2P address via SOCKS proxy. I don't
think innfeed currently supports proxies.

> I would probably be inclined to allocate an IP address for the remote 
> peer and use some networking magic (routing and tun2socks) to make 
> traffic to said IP go through {Tor,I2P}'s SOCKS server.
> 
>> Clients connecting to my server via Tor/I2P are handled differently.
> 
> ACK
> 
>> I have dedicated tunnels for clients and three NNRPD daemon instances 
>> that are handling connections from those tunnels.
> 
> Why do you need the multiple NNRPD daemons?  Do you /need/ to have them? 
>  Or do you /want/ to have (three of) them for some reason?

I guess you don't really /need/ multiple daemons. I'm running three of them
because I would like to have different config file for each possible case -
Internet, Tor, and I2P. Currently Tor and I2P configs are pretty much the
same, but that might change in the future.

> I think I would want /something/ that I can use like a static IP (or 
> possibly name) to identify peers that I have an established relationship 
> with.  Incoming clients using the remailer is transient and I'm less 
> concern about.

-- 
Neodome
Re: ToR Hidden Service
#304065
Author: Neodome Admin
Date: Sat, 27 Apr 2019 20:42
15 lines
1448 bytes
Grant Taylor <gtaylor@tnetconsulting.net> wrote:
> On 4/23/19 8:10 PM, Neodome Admin wrote:
>> I don't think Tor-capable remailers use client authorization.
> 
> Please forgive my ignorance.  Are there remailer clients that are 
> themselves ToR clients?  Or do they rely on a separate local ToR client?

That I don't know. I don't use remailers myself. Maybe SEC3 or inwtx would
know the answer.

I assume the latter since there are no any benefits in running separate Tor
node just for the remailer client.

-- 
Neodome
Re: ToR Hidden Service
#304071
Author: inwtx
Date: Sat, 27 Apr 2019 21:53
12 lines
1141 bytes
> 
>> Please forgive my ignorance.  Are there remailer clients that are
>> themselves ToR clients?  Or do they rely on a separate local ToR client?
> 
> That I don't know. I don't use remailers myself. Maybe SEC3 or inwtx would
> know the answer.
> 
> I assume the latter since there are no any benefits in running separate Tor
> node just for the remailer client.

  I have never seen one that was also a tor client.  Omnimix might have
one built in, but it is not really a client.
Re: ToR Hidden Service
#304070
Author: Grant Taylor
Date: Sun, 28 Apr 2019 00:58
89 lines
4566 bytes
On 4/27/19 2:42 PM, Neodome Admin wrote:
> If you install I2P, point your IRC client to 127.0.0.1:6668. I think 
> channel name is #i2p-dev. I used to follow I2P development closely, and 
> back in those days I2P development team was really kind and helpful. 
> Hopefully this is still the case.

ACK

I'll keep that i mind.

> I'm not aware of any possible issues that might arise if remote peer 
> will resolve as localhost for outgoing connections.

It's not as much as the name that they resolve to as it is the IP 
address their connection comes from.

Prime example:  Many MTA tutorials that I've read suggest allowing 
localhost (127.0.0.1 and / or ::1) to be allowed to relay email cart 
blanch through the local MTA.  As such, someone could leverage Tor / I2P 
/ et al. to use your MTA as an open relay.  This is a prime example of 
why I want Tor / I2P / et al. clients to NOT appear as from 127.0.0.1 / 
::1 on my machine.

Many other services have similar assumptions.

> I2P tunnel with destination set to novabbs b32 address.

ACK

So you're using localhost:<specific ports> to differentiate / identify 
destinations for outgoing NNTP connections.

> Yes.

ACK

> That would make sense if I had multiple I2P/Tor peers, so I won't 
> have to create new tunnel for each new peer.

ACK

> However, I also would have to make sure innfeed is trying to resolve 
> Tor/I2P address via SOCKS proxy. I don't think innfeed currently 
> supports proxies.

No, you wouldn't, if you were using different destination IP.  You can 
use /etc/hosts entries to resolve the name to a specific IP.

You route the different destination IPs via a tun2socks gateway.

tun2socks TL;DR:  tun2socks connects to a tun interface and pretends to 
be a remote gateway that ""routes traffic via a SOCKS server.

It is possible to configure the kernel routing table such that a given 
destination IP is reachable via the tun2socks gateway.  This causes the 
kernel to send the traffic through the tunnel device, which sends it 
into tun2socks.  This works great in and of itself.

As I type this, I realized that this is already after name resolution. 
So that information is lost.  I wonder if there is a way to have 
tun2socks fabricate a name for the SOCKS server to resolve.

I'm guessing that it's possible to use a full SOCKS server (Dante or the 
SOCKS server that's in the same package as tun2socks) to chain SOCKS 
servers in such a way as to re-introduce the name based on the 
""destination IP.

I think this means that we have the Lego bricks to allow arbitrary 
destination IPs from the command line to be routed through tun2socks, 
one or more SOCKS servers, into Tor / I2P.

Ultimately you should be able to have stock INN work with names that 
resolve to connections that are routed through Tor / I2P.

> I guess you don't really /need/ multiple daemons. I'm running three 
> of them because I would like to have different config file for each 
> possible case - Internet, Tor, and I2P. Currently Tor and I2P configs 
> are pretty much the same, but that might change in the future.

Fair enough.

Thank you for explaining.  :-)  I always like learning what others do 
and why they do it.



-- 
Grant. . . .
unix || die
Re: ToR Hidden Service
#304176
Author: Anonymous
Date: Tue, 30 Apr 2019 23:09
22 lines
1594 bytes
"inwtx" <noreply@inwtx.net> wrote:

>>> Please forgive my ignorance.  Are there remailer clients that are
>>> themselves ToR clients?  Or do they rely on a separate local ToR client?
>> 
>> That I don't know. I don't use remailers myself. Maybe SEC3 or inwtx would
>> know the answer.
>> 
>> I assume the latter since there are no any benefits in running separate Tor
>> node just for the remailer client.
>
>  I have never seen one that was also a tor client.  Omnimix might have
>one built in, but it is not really a client.

OmniMix comes with a complete Tor subsystem including a Tor controller.
Apart from using OM as an SMTP/POP3/NNTP proxy server, which requires
interaction with a respective client program, there's a basic mail
client built-in, located at the Mailer tab.

https://danner-net.de/omom/index.htm
https://danner-net.de/omom/tutortorconfig.htm
https://danner-net.de/omom/tutorquickstart.htm
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