[tor-commits] [ooni-probe/master] Add instructions to redirect low ports with iptables

art at torproject.org art at torproject.org
Wed Nov 28 17:23:18 UTC 2012


commit b85aa044fc3d54fa41f9cbd42c45ba48f3d2152a
Author: aagbsn <aagbsn at extc.org>
Date:   Wed Nov 28 17:05:34 2012 +0000

    Add instructions to redirect low ports with iptables
---
 oonib/README.md |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/oonib/README.md b/oonib/README.md
index f70c6db..27c1163 100644
--- a/oonib/README.md
+++ b/oonib/README.md
@@ -15,4 +15,9 @@ The extra dependencies necessary to run OONIB are:
     openssl x509 -req -days 365 -in server.csr -signkey private.key -out certificate.crt
     rm private.key.org
 
+# Redirect low ports with iptables
 
+    # Map port 80 to config.helpers.http_return_request.port  (default: 57001)
+    iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 57001
+    # Map port 443 to config.helpers.ssl.port  (default: 57006)
+    iptables -t nat -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 57006





More information about the tor-commits mailing list