Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
2a3b6517
Commit
2a3b6517
authored
8 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'sebastian/bug20064'
parents
3823d0aa
f4ed2546
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/bug20064
+5
-0
5 additions, 0 deletions
changes/bug20064
doc/tor.1.txt
+3
-1
3 additions, 1 deletion
doc/tor.1.txt
src/or/policies.c
+3
-1
3 additions, 1 deletion
src/or/policies.c
with
11 additions
and
2 deletions
changes/bug20064
0 → 100644
+
5
−
0
View file @
2a3b6517
o Minor bugfixes (Directory Authority):
- When allowing private addresses, mark Exits that only exit to
private locations as such. Fixes bug 20064; bugfix on
0.2.2.9-alpha.
This diff is collapsed.
Click to expand it.
doc/tor.1.txt
+
3
−
1
View file @
2a3b6517
...
...
@@ -2163,7 +2163,9 @@ on the public Tor network.
[[DirAllowPrivateAddresses]] **DirAllowPrivateAddresses** **0**|**1**::
If set to 1, Tor will accept server descriptors with arbitrary "Address"
elements. Otherwise, if the address is not an IP address or is a private IP
address, it will reject the server descriptor. (Default: 0)
address, it will reject the server descriptor. Additionally, Tor
will allow exit policies for private networks to fulfill Exit flag
requirements. (Default: 0)
[[AuthDirBadExit]] **AuthDirBadExit** __AddressPattern...__::
Authoritative directories only. A set of address patterns for servers that
...
...
This diff is collapsed.
Click to expand it.
src/or/policies.c
+
3
−
1
View file @
2a3b6517
...
...
@@ -2119,8 +2119,10 @@ exit_policy_is_general_exit_helper(smartlist_t *policy, int port)
if
(
subnet_status
[
i
]
!=
0
)
continue
;
/* We already reject some part of this /8 */
tor_addr_from_ipv4h
(
&
addr
,
i
<<
24
);
if
(
tor_addr_is_internal
(
&
addr
,
0
))
if
(
tor_addr_is_internal
(
&
addr
,
0
)
&&
!
get_options
()
->
DirAllowPrivateAddresses
)
{
continue
;
/* Local or non-routable addresses */
}
if
(
p
->
policy_type
==
ADDR_POLICY_ACCEPT
)
{
if
(
p
->
maskbits
>
8
)
continue
;
/* Narrower than a /8. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment