I am new to tor and Kali linux, I have installed Kali linux and installed tor and download tor bundle, but I realised only when I brows through the tor bundle browser is when my traffic is being channel through tor, excluding any other browser and application.
How can I channel all my network traffic on linux to pass through the tor network?
Add the following to torrc:
create a file to contain your iptables rules. For IPv4:
/etc/iptables.firewall.rules
and for IPv6:/etc/ip6tables.firewall.rules
.Now edit the IPv4 file and add something like the following (make sure to grep for TODO items and follow the instructions):
For the IPv6 file, you can do something similar with ip6tables, or just drop all IPv6 traffic.
Now set these rules to be loaded on startup by creating the file
/etc/network/if-pre-up.d/firewall
with the following contents:Restart Tor if needed, and load your new firewall rules manually by executing the previous commands.