Answer the question
In order to leave comments, you need to log in
How to intercept all traffic and redirect to a proxy in C# or C++ (I'm writing in VS)?
What should I write in C# so that when the compiled program is running, all traffic in the OS goes through a proxy?
The program must redirect traffic through itself to the proxy.
This is due to the fact that the proxy uses an encryption system and in order to use the proxy it is necessary to have a (de)encoder on the client side, that is, the program must pass all traffic through itself.
Of course, you can run a server on a client that will act as a proxy, specify the address of the local server in the proxy settings, and this server will (de)encrypt data and send / receive to a remote proxy.
But I don't want to write a server (I'm not sure how much work it takes, I'm still new to C #), and I want everything to work without configuration.
Just in case, I’ll say that the proxy does not have a dedicated IP address, there is only a domain (due to NAT hosting restrictions).
Answer the question
In order to leave comments, you need to log in
c# in this case just performs OS configuration no more
these actions (registry editing)
stackoverflow answer
should be translated into code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question