Delivery-Date: Mon, 12 Jan 2015 16:51:49 -0500
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,
	RP_MATCHES_RCVD,URIBL_BLOCKED autolearn=ham version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 93A1D1E0A1B
	for <archiver@seul.org>; Mon, 12 Jan 2015 16:51:47 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 3092731394;
	Mon, 12 Jan 2015 21:51:43 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 6C3BA2F9EF
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 21:51:39 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id L5Fb3wpSHj2E for <tor-talk@lists.torproject.org>;
 Mon, 12 Jan 2015 21:51:39 +0000 (UTC)
Received: from gohan.masterkorp.net (unknown [IPv6:2a01:4f8:a0:5369::2])
 by eugeni.torproject.org (Postfix) with ESMTP id 404032F0E3
 for <tor-talk@lists.torproject.org>; Mon, 12 Jan 2015 21:51:39 +0000 (UTC)
X-Greylist: delayed 11379 seconds by postgrey-1.34 at eugeni;
 Mon, 12 Jan 2015 21:51:39 UTC
Received: by gohan.masterkorp.net (Postfix, from userid 1000)
 id 221D7984B29; Mon, 12 Jan 2015 22:51:36 +0100 (CET)
From: Alfredo Palhares <masterkorp@masterkorp.net>
To: tor-talk <tor-talk@lists.torproject.org>
Date: Mon, 12 Jan 2015 22:51:36 +0100
Message-Id: <1421099472-sup-7338@masterkorp.net>
User-Agent: Sup/0.18.0
Subject: [tor-talk] Using obfsproxy with OpenVPN
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

Hello,

I am facing a very peculiar problem of cencorship.

On a specific country OpenVPN traffic is being blocked trough DPI
techinques.

So I we set an obfsproxy gateway inside and outside the contry. Using
the latest obfsproxy[1] commit 64aeb8d880cf64eb22d80b3f07f97154c08a28ec
using SOCKS5 I am capable of making a successful tunnel but the TLS
handshake fails, this using obfs3 format.

So I tried the scramblesuit[0] protocol but it seems that the software is
somewhat unfinished.

Using the server:
```
bin/obfsproxy --log-file=obfsproxy.log --log-min-severity=debug
scramblesuit \ --password=myopasswrdIdadnoIdeaHadtobeBase32 \ --dest=myio:myport server 0.0.0.0:80
```

```
Traceback (most recent call last):
  File "bin/obfsproxy", line 16, in <module>
    run()
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 205, in run
    pyobfsproxy()
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 182, in pyobfsproxy
    args.validation_function(args)
  File "/path/to/obfsproxy/transports/scramblesuit/scramblesuit.py", line 602, in validate_external_mode_cli
    "a good password." % args.uniformDHSecret)
 obfsproxy.transports.base.PluggableTransportError:
 Given password 'myopasswrdIdadnoIdeaHadtobeBase32' is not valid Base32! 
 Run 'generate_password.py' to generate a goodpassword.
```

But I failed to find any file named with ``git ls-files | grep
generate_password.py``, but nothing, tried to check if the file was
deleted with ``git log --diff-filter=D --summary | grep generate_password.py``

After a few searches[2] I found that a password could be generated with:

```
$ python -c 'import base64, os; print base64.b32encode(os.urandom(20))'
```

After using a proper passowrd I get this:
```
Traceback (most recent call last):
  File "bin/obfsproxy", line 16, in <module>
    run()
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 205, in run 
    pyobfsproxy()
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 187, in pyobfsproxy
    do_external_mode(args)
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 101, in do_external_mode
    run_transport_setup(pt_config, args.name)
  File "/path/to/obfsproxy/obfsproxy/pyobfsproxy.py", line 150, in run_transport_setup
    transport_class['base'].setup(pt_config)
  File "/path/to/obfsproxy/obfsproxy/transports/scramblesuit/scramblesuit.py", line 148, in setup
    "No state location set. If you are using external mode, " \ obfsproxy.transports.base.TransportSetupFailed:
     No state location set. If you are using external mode, please set it using the --data-dir switch.
```

But using the safe switch does the following:

```
obfsproxy: error: unrecognized arguments: --data-dir=/path/to/data/
```

This seems like an uncompleted feature. Any Ideas ?

[0] https://lists.torproject.org/pipermail/tor-relays/2014-February/003886.html
[1] https://gitweb.torproject.org/pluggable-transports/obfsproxy.git/
[2] https://github.com/NullHypothesis/scramblesuit/blob/master/test/generate_password.py

--
Regards,
Alfredo Palhares
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

