I have an application that tries to connect to 10.0.0.172. I would like these connections to be redirected to localhost. What is the best way to achieve this?
(I've just learned that /etc/hosts only works for DNS requests, and not for IP addresses.)
I think I need to write some iptables commands but I've never used those before.