Without resorting to iptables /nftables or a proxifier, does traceroute (or similar tool) support options for using a local port for a sock5 proxy?
Here's an example of what I can do with curl. I thought I might be able to do the same with traceroute, but I didn't find such an option in the man page.
curl -sS --connect-timeout 3 --max-time 7 -x socks5://127.0.0.1:1234 mysite.com
In this case, curl is downloading the page at mysite.com via a socks5 proxy running at my local port 1234. Again, my reason for asking this question is, "Can I do the same with traceroute?"
Edit: as per Stephen Harris's comment, it cannot be done.
proxychains traceroute google.com
I get different results that when usingtraceroute google.com
– AlexOnLinux May 28 '22 at 11:48proxychains
you can proxy a lot of programs. – AlexOnLinux May 28 '22 at 11:48