[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] Transparent proxy question



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

Attachment: signature.asc
Description: This is a digitally signed message part.

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