Transparent Proxy and Redirecting Sockets

Luca Bongiorni bongio87 at gmail.com
Thu Feb 21 16:24:16 CET 2013


Hi all,
Around I have found plenty useful sources about TCP transparent proxies. However I am still missing how to make socket redirection.

What I would like to do is:

host_A <--> PROXY <--> host_B
              ^
              |
host_C <------

At the beginning the proxy is simply forwarding the data between A and B.
Subsequently, when a parser catches the right pattern, the proxy quit the communication between A and B and redirect all the traffic to the host_C.

I would be pleased if someone would suggest me some resources or hints.

Thank you :)
Cheers,
Luca




More information about the Python-list mailing list