🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #304045

Re: ToR Hidden Service

#304045
From: 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
Technical Details
Message-ID: <qa0061$emp$1@neodome.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <q9l92k$j92$1@tncsrv09.home.tnetconsulting.net>

Show Full Headers
Complete Article Headers
Message-ID: <qa0061$emp$1@neodome.net>
Subject: Re: ToR Hidden Service
Date: Fri, 26 Apr 2019 22:19:47 +0000
From: Neodome Admin <admin@neodome.net>
References: <q9l92k$j92$1@tncsrv09.home.tnetconsulting.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Neodome
Mime-Version: 1.0
Content-Type: text/plain
Injection-Date: Fri, 26 Apr 2019 22:19:47 -0000 (UTC)
Injection-Info: neodome.net; mail-complaints-to="abuse@neodome.net"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Lines: 143