Redirect local service to custom proxy
- by Pedro Laguna
Hello,
I'm trying to create a custom proxy program but I have a problem.
My program connects to a fixed port from a random port and I need to tunnel all this traffic by my local proxy.
I think the solution is using iptables, but all the topics I found are related to redirect incoming connections, not outbounds.
How can I redirect all the traffic from a local port to another local port and later to the internet?
Thanks,