I have a rest self host client on one machine and a server on another. Authorization is used by certificate (httpClientHandler.ClientCertificates.Add (GetCertificate ());). At the same time, the server accepts requests only from certain ip (self host client is on the machine with ip, which the server does not accept). Task: write (very desirable) or use a ready proxy, which would be located on a machine with an allowed ip, through which requests from the client would go and which would replace the client's ip request with your own. Proxy certificate should not be stored. Please tell me the options, how to do it and where to dig?
- and what have you tried to do? - Monomax
- I tried to use TcpListener and TcpClient on a self-hosted proxy - from one connection initiated by the client to forward data to another connection opened by the proxy to the server. - Valentin Mironov
- I also tried to configure fiddler and ngix under windows. As a result, fidller required a sert for the connection, and ngix just broke the connection to the server - Valentin Mironov
|