[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-cloud/master] Build private obfsproxy bridge images



commit d57e58ab37ce96b215a1b7dc1322277aad94f245
Author: Runa A. Sandvik <runa.sandvik@xxxxxxxxx>
Date:   Wed Nov 28 16:30:36 2012 +0000

    Build private obfsproxy bridge images
---
 ec2-prep.sh |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ec2-prep.sh b/ec2-prep.sh
index 4de2241..ef8ee7b 100644
--- a/ec2-prep.sh
+++ b/ec2-prep.sh
@@ -233,9 +233,10 @@ ORPort 443
 # advertise 443 but bind to 9001).
 ORListenAddress 0.0.0.0:9001
 
-# Start Tor as a private bridge.
+# Start Tor as a private obfsproxy bridge
 BridgeRelay 1
 PublishServerDescriptor 0
+ServerTransportPlugin obfs2 exec /usr/bin/obfsproxy --managed
 
 # Never send or receive more than 10GB of data per week. The accounting
 # period runs from 10 AM on the 1st day of the week (Monday) to the same
@@ -247,8 +248,17 @@ AccountingMax 10 GB
 # so it shouldn't expose the operator to abuse complaints.
 ExitPolicy reject *:*
 EOF
+
+# Edit /var/lib/tor/state and change the obfs port
+/etc/init.d/tor reload
+sleep 30s
+/etc/init.d/tor stop
+sleep 30s
+sed -i 's/TransportProxy.*/TransportProxy obfs2 0.0.0.0:52176/' /var/lib/tor/state
+/etc/init.d/tor start
+sleep 30s
 echo "Done configuring the system, will reboot"
-echo "Your system has been configured as a private Tor bridge, see https://cloud.torproject.org/ for more info" > /etc/ec2-prep.sh
+echo "Your system has been configured as a private obfsproxy Tor bridge, see https://cloud.torproject.org/ for more info" > /etc/ec2-prep.sh
 reboot
 fi
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits