r1n0 has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I have been playing with HTTP::Proxy with support from you, and I appreciate your help. I have been testing it this week for use as a transparent proxy. This is where the network user does not know, nor do they need to setup their browser to point to the proxy. I have iptables (on a linux gateway box) setup to redirect all traffic to an outside server on port 80, to be redirected to port 8080 (proxy port) of the gateway box. From this, the proxy should handle the connection (transparently). I am experiencing performance problems and page completion issues. I know HTTP::Proxy is working when the browser is told to point to it. But, when I turn off the proxy use in the browser, and allow the transparent proxy setup to run, I have issues.

Can anyone tell me if they have used HTTP::Proxy in this manner?

The Proxy needs to account for some differences over use as a typical proxy. I am sure the author of HTTP::Proxy has accounted for this, but I would like to hear from anyone that has had a similar experience.


Thanks!

Replies are listed 'Best First'.
Re: Transparent proxying with HTTP::Proxy
by Khen1950fx (Canon) on Feb 25, 2010 at 23:24 UTC
      Today, after running quite a bit of testing and collection of traffic, I added an option to my HTTP::Proxy setup and it worked well, as I suspected it would. I was a little concerned about my iptables setup on linux, to force packets to the proper port, but that wasn't the problem. What I ended up doing was set the max_keep_alive_requests to 1, and everything was smooth from that point forward. I will continue to learn about this module, and have additional questions. I will be posting another question before the end of the night. I really like the module and enjoy using it. My thanks to the author!!