I have a setup comprising of a server, a proxy server and a client. I need to test out a simple feature where I want to ensure that all the requests are going to the server through the proxy server only and no requests can be sent to the server directly from the client. Ideally I can block this direct communication by setting up a rule on the server's firewall to block the requests from the client directly.
Unfortunately I cannot modify any configurations on the server and the only option I can see is blocking any request to the server on my Windows client. I have tried setting up the the inbound and outbound rules for the same on my client but it doesn't seem to work.
The service I'm trying to test uses cURL internally to make these requests.
Is there anything I can do on my client to ensure that no requests can be made to the server from the client directly?