On 08/16/2015 09:15 PM, Sunil Mohan Adapa wrote: > Package: freedombox-setup > Version: 0.5 > Severity: normal > > When Plinth implements setting up Tor, remove Tor setup from freedombox-setup. >
The attached patch removes Tor setup. This compliments the pull request made to Plinth that sets up Tor in Plinth. I have not fully tested the patch with build. Since these are mostly removals, and there are more to come, we can test everything before a release. -- Sunil
From a2983ea2e6bf1622de3a40e99c8431c84a155504 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Tue, 18 Aug 2015 20:06:00 +0530 Subject: [PATCH] Move Tor setup over to Plinth --- first-run.d/81_tor | 10 ---------- setup.d/80_tor | 26 -------------------------- 2 files changed, 36 deletions(-) delete mode 100755 first-run.d/81_tor delete mode 100755 setup.d/80_tor diff --git a/first-run.d/81_tor b/first-run.d/81_tor deleted file mode 100755 index 131414a..0000000 --- a/first-run.d/81_tor +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -# Enable SOCKS on network interfaces with static IPs. -static_ips=$(awk '/ address/ {print $2}' /etc/network/interfaces) -for static_ip in $static_ips -do - if ! grep -q "SocksPort $static_ip:9050" /etc/tor/torrc ; then - echo "SocksPort $static_ip:9050" >> /etc/tor/torrc - fi -done diff --git a/setup.d/80_tor b/setup.d/80_tor deleted file mode 100755 index dc14169..0000000 --- a/setup.d/80_tor +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -# TODO: Randomly choose a obfs proxy ports, set them explictly in -# configuration and enable firewall for them. - -apt-get install -y tor obfsproxy - -cat > /etc/tor/torrc <<EOF -# run as non-exit bridge relay -SocksPort 127.0.0.1:9050 -ORPort auto -ControlPort 9051 -BridgeRelay 1 -Exitpolicy reject *:* - -# enable obfsproxy -ServerTransportPlugin obfs3,scramblesuit exec /usr/bin/obfsproxy managed -ExtORPort auto - -# enable transparent proxy -VirtualAddrNetworkIPv4 10.192.0.0/10 -AutomapHostsOnResolve 1 -TransPort 127.0.0.1:9040 -DNSPort 127.0.0.1:9053 - -EOF -- 2.1.4
signature.asc
Description: OpenPGP digital signature