]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update docs with advice for separate IPv4 and IPv6 exit policies
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 22 Sep 2015 01:41:16 +0000 (11:41 +1000)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Tue, 22 Sep 2015 01:41:16 +0000 (11:41 +1000)
Advise users how to configure separate IPv4 and IPv6 exit
policies in the manpage and sample torrcs.

Related to fixes in ticket #16069 and #17027. Patch by "teor".
Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
released in 0.2.4.7-alpha.

changes/ipv6-exitpolicy-docs [new file with mode: 0644]
doc/tor.1.txt
src/config/torrc.minimal.in-staging
src/config/torrc.sample.in

diff --git a/changes/ipv6-exitpolicy-docs b/changes/ipv6-exitpolicy-docs
new file mode 100644 (file)
index 0000000..033c283
--- /dev/null
@@ -0,0 +1,8 @@
+  o Minor bug fixes (documentation, torrc exit policies):
+    - Advise users how to configure separate IPv4 and IPv6 exit
+      policies in the manpage and sample torrcs.
+    - Fixup formatting errors in the documentation changes from
+      tickets #16069 and #17027.
+      Related to fixes in ticket #16069 and #17027. Patch by "teor".
+      Patch on 2eb7eafc9d78 and a96c0affcb4c (25 Oct 2012),
+      released in 0.2.4.7-alpha.
index 736cf75b51c38ad2f5cb6025e84af74ebed6d3a3..38d0990e667eb35a44d5c929ef18c2f40166661b 100644 (file)
@@ -1570,9 +1570,13 @@ is non-zero):
     all on one line. +
  +
     Policies are considered first to last, and the first match wins. If you
-    want to \_replace_ the default exit policy, end your exit policy with
-    either a reject \*:* or an accept \*:*. Otherwise, you're \_augmenting_
-    (prepending to) the default exit policy. The default exit policy is: +
+    want to allow the same ports on IPv4 and IPv6, write your rules using
+    accept/reject *. If you want to allow different ports on IPv4 and IPv6,
+    write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules using
+    accept/reject *4. If you want to \_replace_ the default exit policy, end
+    your exit policy with either a reject \*:* or an accept \*:*. Otherwise,
+    you're \_augmenting_ (prepending to) the default exit policy. The default
+    exit policy is: +
 
        reject *:25
        reject *:119
index ed3300fdcc190a4325592121a66f2d50f3781080..e3b528fcd08740caee89d8c5eddfb79c0f4f819c 100644 (file)
@@ -1,5 +1,5 @@
 ## Configuration file for a typical Tor user
-## Last updated 15 September 2015 for Tor 0.2.7.3-alpha.
+## Last updated 22 September 2015 for Tor 0.2.7.3-alpha.
 ## (may or may not work for much older or much newer versions of Tor.)
 ##
 ## Lines that begin with "## " try to explain what's going on. Lines
 #MyFamily $keyid,$keyid,...
 
 ## A comma-separated list of exit policies. They're considered first
-## to last, and the first match wins. If you want to _replace_
-## the default exit policy, end this with either a reject *:* or an
-## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
-## default exit policy. Leave commented to just use the default, which is
+## to last, and the first match wins.
+##
+## If you want to allow the same ports on IPv4 and IPv6, write your rules
+## using accept/reject *. If you want to allow different ports on IPv4 and
+## IPv6, write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules
+## using accept/reject *4.
+##
+## If you want to _replace_ the default exit policy, end this with either a
+## reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending to)
+## the default exit policy. Leave commented to just use the default, which is
 ## described in the man page or at
 ## https://www.torproject.org/documentation.html
 ##
index ed3300fdcc190a4325592121a66f2d50f3781080..e3b528fcd08740caee89d8c5eddfb79c0f4f819c 100644 (file)
@@ -1,5 +1,5 @@
 ## Configuration file for a typical Tor user
-## Last updated 15 September 2015 for Tor 0.2.7.3-alpha.
+## Last updated 22 September 2015 for Tor 0.2.7.3-alpha.
 ## (may or may not work for much older or much newer versions of Tor.)
 ##
 ## Lines that begin with "## " try to explain what's going on. Lines
 #MyFamily $keyid,$keyid,...
 
 ## A comma-separated list of exit policies. They're considered first
-## to last, and the first match wins. If you want to _replace_
-## the default exit policy, end this with either a reject *:* or an
-## accept *:*. Otherwise, you're _augmenting_ (prepending to) the
-## default exit policy. Leave commented to just use the default, which is
+## to last, and the first match wins.
+##
+## If you want to allow the same ports on IPv4 and IPv6, write your rules
+## using accept/reject *. If you want to allow different ports on IPv4 and
+## IPv6, write your IPv6 rules using accept6/reject6 *6, and your IPv4 rules
+## using accept/reject *4.
+##
+## If you want to _replace_ the default exit policy, end this with either a
+## reject *:* or an accept *:*. Otherwise, you're _augmenting_ (prepending to)
+## the default exit policy. Leave commented to just use the default, which is
 ## described in the man page or at
 ## https://www.torproject.org/documentation.html
 ##