]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4 maint-0.4.4
Nick Mathewson [Mon, 14 Jun 2021 15:46:20 +0000 (11:46 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.15-dev
Nick Mathewson [Mon, 14 Jun 2021 15:45:30 +0000 (11:45 -0400)] 
Bump to 0.3.5.15-dev

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 16:30:11 +0000 (12:30 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoFix TROVE-2021-006: Out-of-bounds read on v3 desc parsing
George Kadianakis [Tue, 18 May 2021 14:06:57 +0000 (17:06 +0300)] 
Fix TROVE-2021-006: Out-of-bounds read on v3 desc parsing

4 years agoResolve remaining merge conflicts in relay.c
Nick Mathewson [Thu, 10 Jun 2021 13:55:35 +0000 (09:55 -0400)] 
Resolve remaining merge conflicts in relay.c

(My bad!)

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:52:39 +0000 (08:52 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

Conflicts resolved:
src/core/or/relay.c

4 years agoTROVE-2021-003: Check layer_hint before half-closed end and resolve cells
David Goulet [Thu, 3 Jun 2021 13:33:21 +0000 (09:33 -0400)] 
TROVE-2021-003: Check layer_hint before half-closed end and resolve cells

This issue was reported by Jann Horn part of Google's Project Zero.

Jann's one-sentence summary: entry/middle relays can spoof RELAY_END cells on
half-closed streams, which can lead to stream confusion between OP and
exit.

Fixes #40389

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:42:15 +0000 (08:42 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40391_035' into maint-0.3.5
Nick Mathewson [Thu, 10 Jun 2021 12:41:59 +0000 (08:41 -0400)] 
Merge branch 'bug40391_035' into maint-0.3.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:37:26 +0000 (08:37 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40390_035_squashed' into maint-0.3.5
Nick Mathewson [Thu, 10 Jun 2021 12:34:25 +0000 (08:34 -0400)] 
Merge branch 'bug40390_035_squashed' into maint-0.3.5

4 years agoAssert on _all_ failures from RAND_bytes().
Nick Mathewson [Mon, 17 May 2021 12:50:01 +0000 (08:50 -0400)] 
Assert on _all_ failures from RAND_bytes().

Previously, we would detect errors from a missing RNG
implementation, but not failures from the RNG code itself.

Fortunately, it appears those failures do not happen in practice
when Tor is using OpenSSL's default RNG implementation.  Fixes bug
40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Thu, 10 Jun 2021 12:21:47 +0000 (08:21 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/06/10.
Nick Mathewson [Thu, 10 Jun 2021 12:20:13 +0000 (08:20 -0400)] 
Update geoip files to match ipfire location db, 2021/06/10.

4 years agoBump to 0.4.4.9
Nick Mathewson [Mon, 7 Jun 2021 17:30:18 +0000 (13:30 -0400)] 
Bump to 0.4.4.9

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 7 Jun 2021 17:29:49 +0000 (13:29 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoBump to 0.3.5.15.
Nick Mathewson [Mon, 7 Jun 2021 17:29:35 +0000 (13:29 -0400)] 
Bump to 0.3.5.15.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Alexander Færøy [Tue, 25 May 2021 13:25:23 +0000 (13:25 +0000)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoRemove the function `tor_tls_assert_renegotiation_unblocked`.
Nick Mathewson [Tue, 25 May 2021 11:38:31 +0000 (07:38 -0400)] 
Remove the function `tor_tls_assert_renegotiation_unblocked`.

It was used nowhere outside its own unit tests, and it was causing
compilation issues with recent OpenSSL 3.0.0 alphas.

Closes ticket 40399.

4 years agoUse a more secure hash function for the circuitmux hashtable.
Nick Mathewson [Tue, 18 May 2021 12:40:09 +0000 (08:40 -0400)] 
Use a more secure hash function for the circuitmux hashtable.

Fixes bug 40931; bugfix on 0.2.4.4-alpha. Also tracked as
TROVE-2021-005.

This issue was reported by Jann Horn from Google's Project Zero.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 14:41:33 +0000 (10:41 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoReindent a few lines to fix a GCC warning.
Nick Mathewson [Fri, 7 May 2021 14:39:20 +0000 (10:39 -0400)] 
Reindent a few lines to fix a GCC warning.

As of GCC 11.1.1, the compiler warns us about code like this:

     if (a)
         b;
         c;

and that's a good thing: we wouldn't want to "goto fail".  But we
had an instance if this in circuituse.c, which was making our
compilation sad.

Fixes bug 40380; bugfix on 0.3.0.1-alpha.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 7 May 2021 13:53:57 +0000 (09:53 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/05/07.
Nick Mathewson [Fri, 7 May 2021 13:53:46 +0000 (09:53 -0400)] 
Update geoip files to match ipfire location db, 2021/05/07.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Wed, 21 Apr 2021 14:34:14 +0000 (10:34 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge remote-tracking branch 'tor-gitlab/mr/363' into maint-0.3.5
George Kadianakis [Wed, 21 Apr 2021 13:48:22 +0000 (16:48 +0300)] 
Merge remote-tracking branch 'tor-gitlab/mr/363' into maint-0.3.5

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
David Goulet [Wed, 14 Apr 2021 12:39:16 +0000 (08:39 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agofallbackdir: Remove two unspec lines
David Goulet [Wed, 14 Apr 2021 12:39:04 +0000 (08:39 -0400)] 
fallbackdir: Remove two unspec lines

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoFix test naming, and fix tests on windows.
Nick Mathewson [Tue, 13 Apr 2021 21:38:31 +0000 (17:38 -0400)] 
Fix test naming, and fix tests on windows.

This is a bugfix against my fix for #40133, which has not yet
appeared in 0.3.5.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 13 Apr 2021 20:59:15 +0000 (16:59 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agofallbackdir: Renegerate list with 200 relays
David Goulet [Tue, 13 Apr 2021 19:15:58 +0000 (15:15 -0400)] 
fallbackdir: Renegerate list with 200 relays

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 13 Apr 2021 14:36:00 +0000 (10:36 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoUpdate geoip files to match ipfire location db, 2021/04/13.
Nick Mathewson [Tue, 13 Apr 2021 14:35:50 +0000 (10:35 -0400)] 
Update geoip files to match ipfire location db, 2021/04/13.

4 years agochannel: Fix use after free in channel_do_open_actions()
David Goulet [Tue, 23 Mar 2021 13:19:41 +0000 (09:19 -0400)] 
channel: Fix use after free in channel_do_open_actions()

Fortunately, our tor_free() is setting the variable to NULL after so we were
in a situation where NULL was always used instead of the transport name.

This first appeared in 894ff2dc8422cb86312c512698acd76476224f87 and results in
basically no bridge with a transport being able to use DoS defenses.

Fixes #40345

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoBump version to 0.4.4.8-dev
Nick Mathewson [Tue, 16 Mar 2021 13:17:56 +0000 (09:17 -0400)] 
Bump version to 0.4.4.8-dev

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Tue, 16 Mar 2021 13:17:40 +0000 (09:17 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.14-dev
Nick Mathewson [Tue, 16 Mar 2021 13:17:31 +0000 (09:17 -0400)] 
Bump to 0.3.5.14-dev

4 years agoRemove check-best-practices from check-local in 0.4.4
Nick Mathewson [Mon, 15 Mar 2021 13:41:19 +0000 (09:41 -0400)] 
Remove check-best-practices from check-local in 0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 13:01:59 +0000 (09:01 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40316_035_v2' into maint-0.3.5
Nick Mathewson [Mon, 15 Mar 2021 12:58:54 +0000 (08:58 -0400)] 
Merge branch 'bug40316_035_v2' into maint-0.3.5

4 years agoFix detection of point to insert signatures on a pending consensus.
Nick Mathewson [Wed, 3 Mar 2021 20:14:31 +0000 (15:14 -0500)] 
Fix detection of point to insert signatures on a pending consensus.

We were looking for the first instance of "directory-signature "
when instead the correct behavior is to look for the first instance
of "directory-signature " at the start of a line.

Unfortunately, this can be exploited as to crash authorities while
they're voting.

Fixes #40316; bugfix on 0.2.2.4-alpha.  This is TROVE-2021-002,
also tracked as CVE-2021-28090.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 12:54:00 +0000 (08:54 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoClarify new intended strategy with TROVE-2021-001
Nick Mathewson [Mon, 15 Mar 2021 12:53:36 +0000 (08:53 -0400)] 
Clarify new intended strategy with TROVE-2021-001

We're going to disable this feature in all versions for now.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 12:52:28 +0000 (08:52 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoMerge branch 'bug40286_disable_min_035' into maint-0.3.5
Nick Mathewson [Mon, 15 Mar 2021 12:41:03 +0000 (08:41 -0400)] 
Merge branch 'bug40286_disable_min_035' into maint-0.3.5

4 years agoBump to 0.4.4.8
Nick Mathewson [Mon, 15 Mar 2021 11:40:48 +0000 (07:40 -0400)] 
Bump to 0.4.4.8

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Mon, 15 Mar 2021 11:40:06 +0000 (07:40 -0400)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

"ours" to avoid version bump.

4 years agoBump to 0.3.5.14
Nick Mathewson [Mon, 15 Mar 2021 11:39:45 +0000 (07:39 -0400)] 
Bump to 0.3.5.14

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 12 Mar 2021 16:36:34 +0000 (11:36 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoRemove maxmind license; add ipfire location database license (cc by-sa 4.0)
Nick Mathewson [Fri, 12 Mar 2021 16:36:28 +0000 (11:36 -0500)] 
Remove maxmind license; add ipfire location database license (cc by-sa 4.0)

4 years agoUse the right ticket number.
Nick Mathewson [Fri, 12 Mar 2021 16:31:36 +0000 (11:31 -0500)] 
Use the right ticket number.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
Nick Mathewson [Fri, 12 Mar 2021 16:30:21 +0000 (11:30 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoupdate geoip-2021-03-12 to mention provider transition.
Nick Mathewson [Fri, 12 Mar 2021 16:29:09 +0000 (11:29 -0500)] 
update geoip-2021-03-12 to mention provider transition.

4 years agoUpdate geoip files to match ipfire location db, 2021/03/12.
Nick Mathewson [Fri, 12 Mar 2021 16:26:07 +0000 (11:26 -0500)] 
Update geoip files to match ipfire location db, 2021/03/12.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.4
David Goulet [Mon, 1 Mar 2021 13:33:41 +0000 (08:33 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.4

4 years agoRemove mallinfo() from codebase
David Goulet [Tue, 23 Feb 2021 16:02:33 +0000 (11:02 -0500)] 
Remove mallinfo() from codebase

Now deprecated in libc >= 2.33

Closes #40309

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoRemove mallinfo() from codebase
David Goulet [Tue, 23 Feb 2021 16:02:33 +0000 (11:02 -0500)] 
Remove mallinfo() from codebase

Now deprecated in libc >= 2.33

Closes #40309

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoDisable the dump_desc() function.
Nick Mathewson [Fri, 19 Feb 2021 17:31:19 +0000 (12:31 -0500)] 
Disable the dump_desc() function.

It can be called with strings that should have been
length-delimited, but which in fact are not.  This can cause a
CPU-DoS bug or, in a worse case, a crash.

Since this function isn't essential, the best solution for older
Tors is to just turn it off.

Fixes bug 40286; bugfix on 0.2.2.1-alpha when dump_desc() was
introduced.

4 years agoDelete changes/40241_v2 as it breaks CI.
Alexander Færøy [Fri, 5 Feb 2021 19:18:13 +0000 (19:18 +0000)] 
Delete changes/40241_v2 as it breaks CI.

Unreviewed build fix. Discussed the cnage on IRC with Nick.

4 years agoFix CI build: practracker error in connection_edge.c, take two.
Alexander Færøy [Fri, 5 Feb 2021 17:39:21 +0000 (17:39 +0000)] 
Fix CI build: practracker error in connection_edge.c, take two.

This was a bad copy and paste error from the previous commit which
generated a duplicated entry error from practracker.

Unreviewed build fix.

See: tor#40275.

4 years agoFix CI build: practracker error in connection_edge.c.
Alexander Færøy [Fri, 5 Feb 2021 17:16:05 +0000 (17:16 +0000)] 
Fix CI build: practracker error in connection_edge.c.

We solve this error by allowing the connection_exit_connect() function
to be 130 lines long.

Unreviewed build fix commit.

See: tor#40275.

4 years agoFix Windows build.
Alexander Færøy [Fri, 5 Feb 2021 17:12:52 +0000 (17:12 +0000)] 
Fix Windows build.

While trying to resolve our CI issues, the Windows build broke with an
unused function error:

   src/test/test_switch_id.c:37:1: error: ‘unprivileged_port_range_start’
   defined but not used [-Werror=unused-function]

We solve this by moving the `#if !defined(_WIN32)` test above the
`unprivileged_port_range_start()` function defintion such that it is
included in its body.

This is an unreviewed commit.

See: tor#40275

4 years agoMerge branch 'tor-gitlab/mr/292_squashed' into maint-0.4.4
Alexander Færøy [Fri, 5 Feb 2021 16:04:53 +0000 (16:04 +0000)] 
Merge branch 'tor-gitlab/mr/292_squashed' into maint-0.4.4

4 years agoOnly check for bindable ports if we are unsure if it will fail.
Alexander Færøy [Thu, 4 Feb 2021 23:11:11 +0000 (23:11 +0000)] 
Only check for bindable ports if we are unsure if it will fail.

We currently assume that the only way for Tor to listen on ports in the
privileged port range (1 to 1023), on Linux, is if we are granted the
NET_BIND_SERVICE capability. Today on Linux, it's possible to specify
the beginning of the unprivileged port range using a sysctl
configuration option. Docker (and thus the CI service Tor uses) recently
changed this sysctl value to 0, which causes our tests to fail as they
assume that we should NOT be able to bind to a privileged port *without*
the NET_BIND_SERVICE capability.

In this patch, we read the value of the sysctl value via the /proc/sys/
filesystem iff it's present, otherwise we assume the default
unprivileged port range begins at port 1024.

See: tor#40275

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
Nick Mathewson [Wed, 3 Feb 2021 18:39:28 +0000 (13:39 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

"ours" to avoid version bump.

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3 maint-0.4.3
Nick Mathewson [Wed, 3 Feb 2021 18:39:08 +0000 (13:39 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

"ours" to avoid version bump.

4 years agobump to 0.4.4.7-dev
Nick Mathewson [Wed, 3 Feb 2021 18:39:03 +0000 (13:39 -0500)] 
bump to 0.4.4.7-dev

4 years agobump to 0.4.3.8-dev
Nick Mathewson [Wed, 3 Feb 2021 18:38:56 +0000 (13:38 -0500)] 
bump to 0.4.3.8-dev

4 years agoBump to 0.3.5.13-dev.
Nick Mathewson [Wed, 3 Feb 2021 18:37:28 +0000 (13:37 -0500)] 
Bump to 0.3.5.13-dev.

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Wed, 3 Feb 2021 14:11:14 +0000 (09:11 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Wed, 3 Feb 2021 14:11:14 +0000 (09:11 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agoMerge branch 'ticket40269_035_01' into maint-0.3.5
David Goulet [Wed, 3 Feb 2021 14:11:09 +0000 (09:11 -0500)] 
Merge branch 'ticket40269_035_01' into maint-0.3.5

4 years agoRemove unused addr_port_set code
David Goulet [Mon, 1 Feb 2021 17:28:29 +0000 (12:28 -0500)] 
Remove unused addr_port_set code

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Wed, 3 Feb 2021 13:56:38 +0000 (08:56 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Wed, 3 Feb 2021 13:56:38 +0000 (08:56 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agoMerge branch 'ticket40270_035_01' into maint-0.3.5
David Goulet [Wed, 3 Feb 2021 13:56:30 +0000 (08:56 -0500)] 
Merge branch 'ticket40270_035_01' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Wed, 3 Feb 2021 13:54:40 +0000 (08:54 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Wed, 3 Feb 2021 13:54:40 +0000 (08:54 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agonode: Move reentry set to use a digestmap_t
David Goulet [Mon, 1 Feb 2021 17:20:39 +0000 (12:20 -0500)] 
node: Move reentry set to use a digestmap_t

Any lookup now will be certain and not probabilistic as the bloomfilter.

Closes #40269

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agorelay: Send back CONNECTION_REFUSED on reentry
David Goulet [Mon, 1 Feb 2021 17:45:32 +0000 (12:45 -0500)] 
relay: Send back CONNECTION_REFUSED on reentry

The TORPROTOCOL reason causes the client to close the circuit which is not
what we want because other valid streams might be on it.

Instead, CONNECTION_REFUSED will leave it open but will not allow more streams
to be attached to it. The client then open a new circuit to the destination.

Closes #40270

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Wed, 3 Feb 2021 13:51:37 +0000 (08:51 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Wed, 3 Feb 2021 13:51:36 +0000 (08:51 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agorelay: Double the size of the relay reentry set
David Goulet [Mon, 1 Feb 2021 14:04:50 +0000 (09:04 -0500)] 
relay: Double the size of the relay reentry set

This is to minimize false positive and thus deny reentry to Exit connections
that were in reality not re-entering. Helps with overall UX.

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agorelay: Follow consensus parameter for network reentry
David Goulet [Mon, 1 Feb 2021 13:56:27 +0000 (08:56 -0500)] 
relay: Follow consensus parameter for network reentry

Obey the "allow-network-reentry" consensus parameters in order to decide to
allow it or not at the Exit.

Closes #40268

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'tor-gitlab/mr/285' into ticket2667_044_01
David Goulet [Fri, 29 Jan 2021 19:54:21 +0000 (14:54 -0500)] 
Merge branch 'tor-gitlab/mr/285' into ticket2667_044_01

4 years agoMerge branch 'tor-gitlab/mr/284' into ticket2667_043_01
David Goulet [Fri, 29 Jan 2021 19:51:38 +0000 (14:51 -0500)] 
Merge branch 'tor-gitlab/mr/284' into ticket2667_043_01

4 years agotest: Add test for exits blocking reentry to the network
George Kadianakis [Fri, 29 Jan 2021 16:21:30 +0000 (18:21 +0200)] 
test: Add test for exits blocking reentry to the network

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoexit: Deny re-entry into the network
Roger Dingledine [Thu, 28 Jan 2021 04:48:57 +0000 (23:48 -0500)] 
exit: Deny re-entry into the network

Exit relays now reject exit attempts to known relay addresses + ORPort and
also to authorities on the ORPort and DirPort.

Closes #2667

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agorelay: Add bloomfiter of relay address + {OR|Dir}Port
David Goulet [Thu, 28 Jan 2021 02:49:56 +0000 (21:49 -0500)] 
relay: Add bloomfiter of relay address + {OR|Dir}Port

In order to deny re-entry in the network, we now keep a bloomfilter of relay
ORPort + address and authorities ORPort + address and DirPort + address
combinations.

So when an Exit stream is handled, we deny anything connecting back into the
network on the ORPorts for relays and on the ORPort+DirPort for the
authorities.

Related to #2667

Signed-off-by: David Goulet <dgoulet@torproject.org>
4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Thu, 28 Jan 2021 17:46:31 +0000 (12:46 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Thu, 28 Jan 2021 17:46:31 +0000 (12:46 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agoMerge branch 'tor-gitlab/mr/50' into maint-0.3.5
David Goulet [Thu, 28 Jan 2021 17:46:24 +0000 (12:46 -0500)] 
Merge branch 'tor-gitlab/mr/50' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Thu, 28 Jan 2021 17:42:31 +0000 (12:42 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Thu, 28 Jan 2021 17:42:31 +0000 (12:42 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agoMerge branch 'tor-gitlab/mr/239' into maint-0.3.5
David Goulet [Thu, 28 Jan 2021 17:42:26 +0000 (12:42 -0500)] 
Merge branch 'tor-gitlab/mr/239' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Thu, 28 Jan 2021 17:36:42 +0000 (12:36 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Thu, 28 Jan 2021 17:36:42 +0000 (12:36 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3

4 years agoMerge branch 'tor-gitlab/mr/243' into maint-0.3.5
David Goulet [Thu, 28 Jan 2021 17:36:35 +0000 (12:36 -0500)] 
Merge branch 'tor-gitlab/mr/243' into maint-0.3.5

4 years agoMerge branch 'maint-0.4.3' into maint-0.4.4
David Goulet [Thu, 28 Jan 2021 17:14:10 +0000 (12:14 -0500)] 
Merge branch 'maint-0.4.3' into maint-0.4.4

4 years agoMerge branch 'maint-0.3.5' into maint-0.4.3
David Goulet [Thu, 28 Jan 2021 17:14:10 +0000 (12:14 -0500)] 
Merge branch 'maint-0.3.5' into maint-0.4.3