Home how to redirect TCP packages to a proxy without losing the original destination?
Reply: 0

how to redirect TCP packages to a proxy without losing the original destination?

user833
1#
user833 Published in April 21, 2018, 3:33 pm

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?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313766 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO