Francis Cianfrocca
2/6/2008 8:57:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Feb 6, 2008 3:49 PM, dusty <dusty.doris@gmail.com> wrote:
> BTW - if you are just looking to do this on your computer so you can
> see what is going on while you hit remote sites, then I'd just use
> ethereal (or wireshark, I believe its called now). You can see the
> whole packet, probably the easiest way.
>
> Although, I'm sure someone on this list has written a ruby proxy
> server before, I haven't. Sounds interesting though, I might take a
> stab at it if I can find some spare time.
>
>
>
>
There was some discussion of HTTP proxies on the Ruby/Eventmachine mailing
list a few weeks back, so you might search through that archive. It sounds
like the OP wants to write a reverse proxy, which isn't hard to do at all
using EventMachine. The thing that made the subject more interesting,
however, was the requirement that the proxy be transparent, so that the
proxied traffic appears to be coming from the original peer's source IP
address. That takes kernel support and is not available on all platforms.