[tor-talk] Transparent proxy question

Aeris aeris+tor at imirhil.fr
Mon Mar 7 22:38:08 UTC 2016


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

Hi,

Original hostname and port are set by iptables on the socket through 
setsockopt, SOL_IP & SO_ORIGINAL_DST, and available on Tor with getsockopt.

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

Regards,
-- 
Aeris
Individual crypto-terrorist group self-radicalized on the digital Internet
https://imirhil.fr/

Protect your privacy, encrypt your communications
GPG : EFB74277 ECE4E222
OTR : 5769616D 2D3DAC72
https://café-vie-privée.fr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20160307/144d1ed4/attachment.sig>


More information about the tor-talk mailing list