My scenario:
I would like to setup a HTTP proxy server in a Linux VM using node.js.
It will only accept whitelisted inbound traffic, and route it to external services.
I assigned 4 public IP to the VM NIC as 4 different IP configurations.
However, all outbound traffic from this VM still uses the primary IP, never uses the other 3.
How do I route outbound traffic to each IP randomly/round robin?
I am also open is using other OS/Services to achieve this goal.
Thank you!
I found this to work.
Example on a website using tags - https://altify-chs.netlify.app/html/proxychoose