Proxychains is a Linux command-line tool that supports rerouting all network of a command through a configured proxy (e.g., proxychains nmap $IP
; note that SYN scans won’t work over the proxy since the proxy doesn’t forward individual segments). See /etc/proxychains.conf
.