Answer the question
In order to leave comments, you need to log in
How to proxy traffic without changes on the client?
Given:
There is Host A, for which the analogue of Roskomnadzor banned access to Host C.
There is Host B, to which Host A has access.
Host B has Host C not banned.
On Host A only user rights.
The software on Host A does not know how to use a proxy.
Host B is completely in control.
Host A really wants to communicate with host C using an unknown protocol.
On hosts A and B linux.
Question:
How can I make a sort of proxy on Host B that would redirect requests from Host A to Hot C and responses from Host C to Host A, while not manipulating Host A? Simply by changing the address of Host C to the address of Host B in the software on Host A.
UPD:
Maybe I put it wrong, don’t cling to the word “proxy”, in fact, it’s just about redirecting Host A traffic to Host C on Host
B. Something tells me that a few iptables rules on B will suffice
. set or change nothing, just change the connection address (from address C to address B)
Answer the question
In order to leave comments, you need to log in
$ man socat
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.
...
It is possible through iptables on host B
If on A linux, and the software does not know how to use a proxy, then torsocks will help
google soxifiers - programs wrapping packets into sox-proxy.
option 2: extend vpn from A to B
How to make a kind of proxy on Host B that would redirect requests from Host A to Hot C and responses from Host C to Host A, without manipulating Host A? Simply by changing the address of Host C to the address of Host B in the software on Host A.Masquerading. iptables rule.
Something tells me that a few iptables rules on B will suffice.Two or three rules depending on the situation. Normal NAT in fact.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question