simple question: "need a way to proxify a port"
I have a linux server and have a proxy server on another machine.
My linux server needs connect to port 'x' on ip 'y'
Is it possible to create iptables rule or another way to: when my linux server tries to connect to port 'x' on ip 'y' uses my proxy server on another machine?
In other words, I need to my server's ip changes when it needs to connect port 'x' on ip 'y' by using another proxy server machine.