Setting up an HTTP proxy with ruby

Do you know what: It’s that simple to setup an HTTP forwarding proxy
with ruby. The only thing you need is webrick’s HTTPProxyServer-class.

Hope you find this article interesting
https://www.fedux.org/articles/2015/04/11/setup-a-proxy-with-ruby.html.

In this article I share my thoughts about webrick’s http proxy class and
cover the following architectures:

  • Simple Forward Proxy
  • Forward Proxy Requiring Authentication
  • Proxy Chain with Upstream and Downstream Proxy
  • Downstream Proxy With Authentication Against Upstream Proxy

Besides that I show you how to setup an HTTP and HTTPS server using
webrick.

Cheers
Herbert Hurtig