I'm trying to setup proxychains on my system in order to randomise my IP address. I want it to use the Tor network. I have installed proxychains and Tor via apt get install and started Tor with service tor start. I have checked the ports Tor is running on with sudo netstat -tanp | grep tor.tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      32529/tor           tcp        0      0 127.0.0.1:9150          0.0.0.0:*               LISTEN      1483/tor            tcp        0      0 127.0.0.1:9151          0.0.0.0:*               LISTEN      1483/tor         The proxychains.conf file is currently set to use port 9150 for connections via proxychains.# defaults set to torsocks4  127.0.0.1 9150I previously had the proxychains.conf 'loop-back' port set to 9050, which is the default.With either of these port settings, I still see my public IP address when I run proxychains dig +short myip.opendns.com @resolver1.opendns.com. @resolver1.opendns.comProxyChains-3.1 (http://proxychains.sf.net)|DNS-request| resolver1.opendns.com |R-chain|-<>-127.0.0.1:9150-<><>-4.2.2.2:53-<><>-OK|DNS-response| resolver1.opendns.com is 208.67.222.222|DNS-request| ::1 |R-chain|-<>-127.0.0.1:9150-<><>-4.2.2.2:53-<><>-OK|DNS-response| ::1 is 198.105.254.11<my public IP>Exactly the same as the IP address output by dig +short myip.opendns.com @resolver1.opendns.com.opendns.com<my public IP>It does seem to be connecting with Tor, though, as when I set the port to anything not listed in the sudo netstat -tanp | grep tor output, it simply fails to work.ProxyChains-3.1 (http://proxychains.sf.net)|DNS-request| resolver1.opendns.com |R-chain|-<>-127.0.0.1:9001-<--timeout!!!need more proxies!!!|DNS-response|: resolver1.opendns.com does not existdig: couldn't get address for 'resolver1.opendns.com': failureWhat is likely to be happening here and how to get proxychains to correctly anonymise my console commands using the Tor network?Currently the Tor browser is working fine using port 9150 and socks5. Changing socks4  127.0.0.1 9150 to socks5  127.0.0.1 9150 in proxychains.conf does not fix the problem.
proxychains is revealing my public IP, not properly using Tor proxy
networking;kali linux;proxy;tor;proxychains