Add this to torrc ( located on /etc/tor/torrc):
VirtualAddrNetwork 10.192.0.0/10
AutomapHostsOnResolve 1
TransPort 9051
DNSPort 9053
Run the attached script as root so all traffic will route from Tor. you can also use attached torrc as a sample.
@slrslr
Thanks for the reply.
Actually the XXX is a variable that you have to manually enter that. XXX is not a valid UID in Unix systems. Also, that quotation mark missed because I set my tor on port 9051. I change it to 9050 and forget to fix that quotation mark. Lol.