I have settled WI-FI hotspot on Kali linux via hostapd+dnsmasq
tools. For being able to access internet(which is accessible through different interface) I used masquerading:
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
But afterward another feature turned to be wanted: redirection of the incoming traffic to the tor's proxy. Could you help me to understand which rules I need to append to iptables in order to proxying through tor configured like this:
# configure tor with this configuration
AutomapHostsOnResolve 1
TransPort 9040
TransListenAddress 10.0.0.1
DNSPort 5354
DNSListenAddress 10.0.0.1
SOCKSPort 0