im trying to redirect tcp packages to my proxy but i lose the original ip destination in the process. because of that my proxy cant start a connection to
the original destination. my setup looks like this:
i have a normal tls linux server which i call C.
i have a man-in-the-middle proxy on my linux pc called B.
A is an android amulator in which a tls connection to C is started. A doesnt
use http or https. it just sends random data over tls.
i want A to connect to B and B to connect to C.
inside the android emulator i put in a iptables rule to redirect the tcp packages to my proxy server and it works. the only problem is that my
proxy doesnt know the destination ip of the original destination. do i need
to somehow add a header to the packages or how would i solve this problem?