How to proxy traffic without any changes on the client?

This:
There is a Host And for which the analogue of Roskomnadzor blocked access to Host C.
There is a Host to which access from a Host And is.
The Host In the Host is not banned.
On the Host And only ozerskie law.
On Host A is not able to proxy.
Host fully under control.
Host a wants for an unknown Protocol to communicate with host C.
On the hosts and In linux.

Question:
As the Host To make a kind of proxy that forwards requests Host And the Hoth With and responses from a Host With Host A, without making the manipulation of the Host As well? Just changing in on the Host And the Host address With the Host address B.

UPD:
Maybe put it wrong, do not cling to the word "proxy" in fact, it is just about redirecting on the Host To Host traffic, And Host C.
Something tells me I will have a few rules for iptables V.

In terms of tasks And not to put anything or to change it only to change the connection address (from address With address)
April 3rd 20 at 17:19
4 answers
April 3rd 20 at 17:21
Solution
$ socat man
Socat is a command line based utility that establishes two bidirectional byte streams and transfers data between them. Because the streams can be constructed from a large set of different types of data sinks and sources (see address types), and because lots of address options may be applied to the streams, socat can be used for many different purposes.
...


The answer to this question, there is also a usage example.

In terms of tasks And not to put anything or to change it only to change the connection address (from address With address)

It is possible through iptables on the host B
Thank you, what you need! - donald commented on April 3rd 20 at 17:24
April 3rd 20 at 17:23
If And linux, and the software is not able to proxy, it will help torsocks
On And nothing can be changed except the address of the connection - donald commented on April 3rd 20 at 17:26
April 3rd 20 at 17:25
Googly socksificator - programki turning in socks-proxy packages.
option 2: to extend the vpn from A to B
No it's not, all settings must be performed on the Host In - donald commented on April 3rd 20 at 17:28
not work either I do not understand.
in principle, two options and both don't work...

need some way to intercept traffic on a host and redirect to the host B. this iptables with NAT, etc.
and the Rue of law. otherwise, the system is quite logical And will not allow you to filter your traffic ( anti-virus/Trojan activity).

option 2: run the software on the system And the container/virtual reality, etc. and having the route rights to intercept traffic and redirect it to system B.

вар2а: to scratch at the side of the sandbox, there was something on the network restrictions for a child program. - Alexie.Deck commented on April 3rd 20 at 17:31
April 3rd 20 at 17:27
As the Host To make a kind of proxy that forwards requests Host And the Hoth With and responses from a Host With Host A, without making the manipulation of the Host As well? Just changing in on the Host And the Host address With the Host address B.
Masquerading. The iptables rule.

Something tells me I will have a few rules for iptables V.
Two or three rules depending on the situation. Normal NAT in fact.
Google - port forwarding iptables examples on the net bunch.

Find more questions by tags LinuxSystem administrationIptablesProxy