tor: Switch to obfs4proxy.

Replaces scramblesuit, and also supports obfs3.
Also add tor-geoipdb which is useful for bridges.
This commit is contained in:
James Valleroy 2015-10-28 23:16:32 -04:00 committed by Sunil Mohan Adapa
parent f281955244
commit 0695ee5abb
3 changed files with 8 additions and 6 deletions

View File

@ -74,7 +74,7 @@ Exitpolicy reject *:*
Exitpolicy reject6 *:*
# Enable obfsproxy
ServerTransportPlugin obfs3,scramblesuit exec /usr/bin/obfsproxy managed
ServerTransportPlugin obfs3,obfs4 exec /usr/bin/obfs4proxy
ExtORPort auto
# Enable transparent proxy

View File

@ -61,11 +61,11 @@ def diagnose():
results.append(action_utils.diagnose_port_listening(ports['obfs3'],
'tcp4'))
results.append([_('Scramblesuit transport registered'),
'passed' if 'scramblesuit' in ports else 'failed'])
if 'scramblesuit' in ports:
results.append([_('Obfs4 transport registered'),
'passed' if 'obfs4' in ports else 'failed'])
if 'obfs4' in ports:
results.append(action_utils.diagnose_port_listening(
ports['scramblesuit'], 'tcp4'))
ports['obfs4'], 'tcp4'))
results.append(_diagnose_url_via_tor('http://www.debian.org', '4'))
results.append(_diagnose_url_via_tor('http://www.debian.org', '6'))

View File

@ -92,7 +92,9 @@ def on_install():
actions.superuser_run('tor', ['enable-apt-transport-tor'])
@package.required(['tor', 'obfsproxy', 'torsocks', 'apt-transport-tor'],
@package.required(['tor', 'tor-geoipdb', 'torsocks',
'obfs4proxy',
'apt-transport-tor'],
on_install=on_install)
def index(request):
"""Service the index page"""