justcoding121 / titanium-web-proxy

A cross-platform asynchronous HTTP(S) proxy server in C#.
MIT License
1.93k stars 612 forks source link

Does Titanium support transparent proxy? #58

Open wind39 opened 8 years ago

wind39 commented 8 years ago

Does it?

justcoding121 commented 8 years ago

It does. However Server Name Indication is not supported, which means HTTPS requests will get certificate warning.

You would need to use TransparentEndPoint to create the end point instead of ExplicitEndPoint during initialization.

jpreese commented 8 years ago

Adding onto this, I'm unable to get OnRequest() to print out the URL when using TransparentEndPoint's

justcoding121 commented 8 years ago

How did you forward request to TransparentEndPoint? Did you use port forwarding on Router?

jpreese commented 8 years ago

I honestly just swapped out the Explicit for the Transparent from the given example as a desperation attempt to resolve #59. Based on your comment, I'll assume it's just a setup issue on my end.

justcoding121 commented 8 years ago

Okay. I haven't properly tested transparent end points either. Since I don't have the right testing environment required for transparent endpoints. Even if we forward request to the proxy we would need to have a different gateway to avoid infinite loop. An isolated subnet for client is the way to go for testing.

minhtri22 commented 8 years ago

Hi justcoding121, I have use example source code to running as a Proxy server, then setting on clients browsers. Everything run success. Can you guide me to setup on SOHO router to use transparent proxy? Do I need to change anything on example source code to run as transparent proxy? Thank you Tri

honfika commented 4 years ago

@jpreese, @minhtri22: Is this issue still relevant?