I want to set up a proxy server on a VPS.
What I want is that some web requests are routed through the VPS, such that after 'x' number of requests(one request means retrieving the content of one web page via the proxy), the IP address through which the request is made, is switched to the next available IP address.
Also, I want that access to this proxy server with multiple IPs, is given only to one of my cloud hosted web apps (The web app runs on Amazon EC2- Elastic Beanstalk).
Is such a set up possible? How do I set it up/configure it?
The VPS in question is a linux VPS.(The one which i want to set up as a proxy server).