basil00 / TorWall

Tallow - Transparent Tor for Windows
http://reqrypt.org/tallow.html
GNU General Public License v3.0
507 stars 121 forks source link

redirect_tcp condition #24

Closed renecn closed 5 years ago

renecn commented 5 years ago

hi basil00, I'm confused that in redirect_tcp function , why (addr->Outbound && addr->Loopback ) represent Tor ---> PC path, and (addr->Outbound && !addr->Loopback) represent PC ---> Tor ? I think that tor-->pc and pc--->tor are both addr->Loopback. Also pc--->tor is Outbound and tor-->pc is Inbound,

Can you give me an answer?

basil00 commented 5 years ago

It means addr->Outbound && !addr->Loopback is a packet that is to be redirected to Tor, not already directed to Tor.