Delivery-Date: Thu, 11 Feb 2016 03:06:33 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,
	RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD 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 15AC01E0F9E;
	Thu, 11 Feb 2016 03:06:31 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id ACB4E3919F;
	Thu, 11 Feb 2016 08:06:25 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 7CBED3919A
 for <tor-talk@lists.torproject.org>; Thu, 11 Feb 2016 08:06:20 +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 b34OOhIK8s7s for <tor-talk@lists.torproject.org>;
 Thu, 11 Feb 2016 08:06:20 +0000 (UTC)
Received: from mail.bitmessage.ch (mail.bitmessage.ch [146.228.112.252])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client did not present a certificate)
 by eugeni.torproject.org (Postfix) with ESMTPS id 08F6E38F5F
 for <tor-talk@lists.torproject.org>; Thu, 11 Feb 2016 08:06:16 +0000 (UTC)
dkim-signature: v=1; a=rsa-sha256; d=bitmessage.ch; s=mail;
 c=relaxed/relaxed; q=dns/txt;
 h=From:Subject:Date:Message-ID:To:MIME-Version:Content-Type; 
 bh=mWPdh5Gnl3fRkUc+TL6N1AANkE99l+8+bnRlSIrcof8=;
 b=Bz2IoqUaseM4IiiiCFQe6dDcKWhN0fs9gqIdyk6gNU6iawNrhdUGOHxsA97/PbGxe6jclpbTXyJBsRV1DCmFc704buX7ca4wbR/wOd0KpKYi7aC/5/tHN/kYWRFQi0Y2IiLlP4u1KZ99dE+VImPOT6JoWe+v8sdwExvaU8UnfMk=
Received: from 127.0.0.1 (tor-exit2.15-cloud.fr [158.69.208.131])
 by mail.bitmessage.ch with ESMTPSA
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128)
 ; Thu, 11 Feb 2016 09:05:43 +0100
From: onionsalad <onionsalad@bitmessage.ch>
To: tor-talk@lists.torproject.org
Message-ID: <56BC40EA.6050500@bitmessage.ch>
Date: Thu, 11 Feb 2016 08:06:02 +0000
MIME-Version: 1.0
X-Content-Filtered-By: Mailman/MimeDel 2.1.15
Subject: [tor-talk] Isolating transparent proxy
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>
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>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello there,

I'm trying to set up a "isolating transparent proxy" a la Whonix,
where there are a gateway node and a workstation node.


Connected to the internet
 |
 | eth0 -- 192.168.27.x
+-------------------------------+
| Gateway node                  |
| Tor client                    |
| * DNSPort 192.168.42.1:53     |
| * TransPort 192.168.42.1:9040 |
| * SocksPort 192.168.42.1:9050 |
+-------------------------------+
 | eth1 -- 192.168.42.1
 |
 | eth0 -- 192.168.42.x
+---------------------------------------------------+
| Workstation node                                  |
|                                                   |
| resolv.conf -> 192.168.42.1                       |
| IPv6 -> no routes                                 |
| IPv4 -> to 192.168.42.0/24 via eth0, gateway none |
+---------------------------------------------------+

Currently,
* `dig check.torproject.org` on Workstation works.
* `torsocks curl https://check.torproject.org/` works and properly
anonymized, of course.
* No non-tor traffic can go out from Workstation. No transparent proxy
means no internet connection, rather than leaks.

Now, I need to allow 'normal' traffic to work using a transparent
proxy, on Workstation, because some programs don't support a proxy (of
any kind) at all. This is not a desktop setup, and stream isolation is
not critical here.
There are tutorials on transparent proxying online, but not for remote
TransPort one. What kind of iptables rules do I need to make this work?
There should be instructions to do so online. I searched through
trac.torproject.org, whonix.org and whonix Github, but I found nothing.

What should happen (on Workstaion):
Try to connect to TCP check.torproject.org:443
- -> Linux captures with iptables
- -> forwarded to 192.168.42.1:9040 (TransPort)

Can anyone help me?

Thanks,
onionsalad

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWvEDqAAoJEKdg1QRuSIJwbEIQAI68wkmUJX+Zh+irqdOcNysN
QCSZlLtjcfEQtthBq2kS/efR74tOGZgQs7yLpqge0UGPbkZcbXQsRba5Ese1Uuds
K6BgdOnAhQ6CXISKbGpK/yvfD6p9IsLFMGMIHZOnHFs4k6Ur7y5ynbajm8uumyVJ
Tj1HaC6s0Itsak4hwAoy78Rjai5tVSNusJXCFPnZc3SLbT5og5lDmenV6OZS7ltr
C8plsxusYxqZYpQDVJIPFVJu01hJOaHBHErZ77OFyQoJkWHBM3PEHNrVq+KTonKv
qYpS/Or4NzAhVJbYFKnM9xCdm1ucwkoOQ9A1Ew2t4QnsEzAeYTEVA9XJI4fm+/1L
q1pVhU8cAFdteabyhihF91irMkJIx/4D2ecxw/HkukMIJd6z1gi/Nj6DNBsyl9Lm
MSsf7ii8k/rhLCDZfGQACm7qEeJcEmV+Gjpi2I+ySObUk83ViCFyS4Q942riJ2Ri
DNzjTvzfd+px1MFYzgbSzS/y7jN/TqB4N77MjKgVa8GL3l7BPwwgqhjiC5YlCM44
TnDyuqoDgZLMfX0szs55CPRoGq1/v5m/wVBWOl7maiF5T52LxE2YlosNeYAyXtsE
/bUfzlFX4wxZBukWUwC8M2YF8pZsJ3wPBXMVsO5Jg7KkjgtEoRZgtCcs8DBzP6x4
DlDV8XWAkW2OQbaaifGL
=ud68
-----END PGP SIGNATURE-----
-- 
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

