Please add support for TPROXY for linux in TransProxy
The TPROXY target on linux is pretty much the same as the current TransProxy but with the exception that the local port isn't visible therefore making it possible to transparently map the entire range of 1:65356 to tor.
The only difference between the current TransProxy implementation is the addition to listen for all addresses on the stock. I attach a patch that does this. Binding for all addresses has no effect when you use NAT to redirect a port to given address, so it is quite a small change.
TOR needs root or some capablitlity to setsockopt with SOL_IP IP_TRANSPARENT, but apart from that the change is trivial.
This patch has been tested with with the nat rule as well TPROXY target and works for both .onion sites using AutoResolv also.
Trac:
Username: thomo