Delivery-Date: Mon, 07 Mar 2016 17:44:48 -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 B0FE91E0BE8;
	Mon,  7 Mar 2016 17:44:45 -0500 (EST)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 0636A344BE;
	Mon,  7 Mar 2016 22:44:41 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 15DBC33624
 for <tor-talk@lists.torproject.org>; Mon,  7 Mar 2016 22:44:38 +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 IO4cYu3scKmQ for <tor-talk@lists.torproject.org>;
 Mon,  7 Mar 2016 22:44:38 +0000 (UTC)
Received: from imirhil.fr (imirhil.fr [62.210.124.124])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "imirhil.fr", Issuer "CAcert Class 3 Root" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id DAC6531F4B
 for <tor-talk@lists.torproject.org>; Mon,  7 Mar 2016 22:44:37 +0000 (UTC)
X-Greylist: delayed 382 seconds by postgrey-1.34 at eugeni;
 Mon, 07 Mar 2016 22:44:37 UTC
Received: from [127.0.0.1] (localhost [127.0.0.1])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by imirhil.fr (Postfix) with ESMTPSA id 546298005F;
 Mon,  7 Mar 2016 22:38:11 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=imirhil.fr; s=mail;
 t=1457390291; bh=QdtUsBjL3ASqNgXW48ZBxEWw3s/YoG+Yx4zA/2H44KI=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
 b=N3v8Eqq2s/rKw7fOsJa3uKkAsLrSX/SWnqfKvgQFMA00yqo44fy2edAkuZ/JMZrE/
 adZGFqeAhbDG10jX7CM/XIYS/GRG3TEJwendWnjLrVyCYqPtE7K0v+OqSz9w13WuRs
 EAsC0eUvMb7uFFu9Erjj6AtkBYgkKmo1f2MGDNAA=
From: Aeris <aeris+tor@imirhil.fr>
To: Oskar Wendel <o.wendel@wp.pl>
Date: Mon, 07 Mar 2016 23:38:08 +0100
Message-ID: <2804656.zJqi8RcCG5@home>
In-Reply-To: <nbktsc$s2e$1@ger.gmane.org>
References: <nbktsc$s2e$1@ger.gmane.org>
MIME-Version: 1.0
Cc: tor-talk@lists.torproject.org
Subject: Re: [tor-talk] Transparent proxy question
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: multipart/mixed; boundary="===============1682767407739662216=="
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

--===============1682767407739662216==
Content-Type: multipart/signed; boundary="nextPart2472136.A4AQSk6cN7"; micalg="pgp-sha512"; protocol="application/pgp-signature"

--nextPart2472136.A4AQSk6cN7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

> but how can Tor determine the original
> destination IP and port that client wanted to reach? How does this ma=
gic
> work?

Hi,

Original hostname and port are set by iptables on the socket through=20=

setsockopt, SOL_IP & SO_ORIGINAL_DST, and available on Tor with getsock=
opt.

https://gitweb.torproject.org/tor.git/tree/src/or/connection_edge.c#n18=
16
http://man7.org/linux/man-pages/man2/setsockopt.2.html
https://github.com/torvalds/linux/blob/master/include/uapi/linux/netfil=
ter_ipv4.h#L74-L78

Regards,
=2D-=20
Aeris
Individual crypto-terrorist group self-radicalized on the digital Inter=
net
https://imirhil.fr/

Protect your privacy, encrypt your communications
GPG : EFB74277 ECE4E222
OTR : 5769616D 2D3DAC72
https://caf=C3=A9-vie-priv=C3=A9e.fr/
--nextPart2472136.A4AQSk6cN7
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

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

iQIcBAABCgAGBQJW3gLQAAoJECAWrwIKfDZoSxsP/jnAZ76LUiLi4gThg9D1cpQ7
vFTUmk5AtoonIFTZETTQR2gSFem7RdIIsuRBKq0ruJfr8xm5wxRHBskZRifIw+Or
YebgKtQMC5hQoH9yhXsQ11U/U4UHCbxvZO2fexs3nWG+C6r8KXmke0pzDr3xObY4
btBcLvHhd7fi0G6ldWDJDw0QxH6SNEeljSNY8sTY0CFBW+3sfwzuagZ49UNv7juy
KWPKsYlrwzdKxomU7qRSBp+LwzGLYZvNE2MlrG2an4Q8s9aZKmuv4JohOnow9TOz
lMEYG5x+zUmVMMIcOj73RKwxnQFufe9JBHFxq1gNXgxGB/0DUuKtUui9807V6xaq
Ub5D0GbYl2IpwTgz1tdMlXWQtyya/chrGTaLiVXSMENrxSgQiyDMUubxiqHB6tEr
RuAe1hSsw7AXoAs3GHoSXs0gAFbcYukkIqELCbFohKJyfjPzzimnEMYz8CLj3iV/
xafOa8uY1U1O5kyBh4TWjyL8mUprtrmW5N54TDac+Oly/ntpGdQvEO5x0JQKiLxP
lDkDWOm//+pslqwU7NvurMIdkLeahuofY7VY53MPVyYVGJ64NkmG1hx6WCXZgwgS
zTl8hNSKqSJh6+7S/iyDwzE6saLGb9vvs0Zfx+lc/KmC6DBONvcMC7QPFt2owh61
pFdLcd0rVta1rv4CZ3Lj
=6dgk
-----END PGP SIGNATURE-----

--nextPart2472136.A4AQSk6cN7--


--===============1682767407739662216==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
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

--===============1682767407739662216==--

