I created an access point from my wireless network card (wlan0
) using this answer.
My Android device is connected to internet through this access point called mylaptopAP
.
My laptop is connected to Internet through wired LAN network (eth0
).
Now I want to redirect all traffics from/to my Android device (which is connected to wlan0
AP) to Tor proxy. So that apps in my Android device could not find my location and identity from my Internet connection.
I read this question and its answer, but it is about making transparent proxy for all of my laptop system, but I need this only be applied to my wireless traffics. Because Tor is slow and I do not like that my whole laptop browsing/downloads become slow. I just need only traffics related to wlan0
access point are redirected to Tor.
I have a script for exactly what you need https://github.com/garywill/linux-router
# lnxrouter --ap wlan0 SSID --password PASSWORD --tp 9040 --dns-proxy 9053
In
torrc
TransPort 0.0.0.0:9040 DNSPort 0.0.0.0:9053