From: Francis Cianfrocca Date: 2008-02-07T05:57:13+09:00 Subject: Re: simple ruby proxy server? ------=_Part_15799_1748867.1202331439047 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Feb 6, 2008 3:49 PM, dusty 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. ------=_Part_15799_1748867.1202331439047--