a proxy for anonymous browsing

From: Magnus Hansen <maghansen#gmail.com>
Date: Mon, 31 Aug 2009 19:19:52 +0200


Hello.
I like HAproxy very much. I use it at work and it works like a charm. However i am still quite new to all of this...

My question is:
I need to set up a proxy simply for browsing showing the IP of the server.
My collegue needs it and has shown me how he wants just to setup a proxy in his firefox...
How can i make HAproxy do this? ( i would love to use HAproxy instead of something else )

I tried to look in the docs, but could not find it. Most likeliy because i dont know where to look.
My only attempt so far has been to use the example in option- http_proxy.cfg that kinda looked like what i needed.. When i tried to insert my ip and port of the proxy into firefox i get a 503.

The output from HAproxy is.

00000000:test-proxy.clireq[0006:ffff]: GET http://google.com/ HTTP/1.1
00000000:test-proxy.clihdr[0006:ffff]: Host: google.com
00000000:test-proxy.clihdr[0006:ffff]: User-Agent: Mozilla/5.0  
(Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.0.6) Gecko/ 2009011912 Firefox/3.0.6
00000000:test-proxy.clihdr[0006:ffff]: Accept: text/html,application/ xhtml+xml,application/xml;q=0.9,*/*;q=0.8
00000000:test-proxy.clihdr[0006:ffff]: Accept-Language: en-gb,en;q=0.5
00000000:test-proxy.clihdr[0006:ffff]: Accept-Encoding: gzip,deflate
00000000:test-proxy.clihdr[0006:ffff]: Accept-Charset:  
ISO-8859-1,utf-8;q=0.7,*;q=0.7
00000000:test-proxy.clihdr[0006:ffff]: Keep-Alive: 300
00000000:test-proxy.clihdr[0006:ffff]: Proxy-Connection: keep-alive
00000000:test-proxy.clihdr[0006:ffff]: Cookie:  
PREF=ID=793a11787bd5f6b1:TM=1226081674:LM=1251737857:S=_BeK_H4I2dhgftYB
00000000:test-proxy.clihdr[0006:ffff]: Cache-Control: max-age=0
00000000:test-proxy-srv.clicls[0006:ffff]
00000000:test-proxy-srv.closed[0006:ffff]


and my config is:

#
# demo config for Proxy mode
#

global

         maxconn         2000
         ulimit-n        16384
         log             127.0.0.1 local0

# uid 200
# gid 200
# chroot /var/empty
nbproc 4 daemon user root group root frontend test-proxy bind x.x.x.x:80 mode http log global option httplog option dontlognull option httpclose option nolinger option http_proxy maxconn 8000 clitimeout 30000 # layer3: Valid users acl allow_host src xx.xx.xx.xx/32 block if !allow_host # layer7: prevent private network relaying acl forbidden_dst url_ip 192.168.0.0/24 acl forbidden_dst url_ip 172.16.0.0/12 acl forbidden_dst url_ip 10.0.0.0/8 block if forbidden_dst default_backend test-proxy-srv backend test-proxy-srv mode http
# contimeout 5000
# srvtimeout 5000
retries 2 option nolinger option http_proxy
Received on 2009/08/31 19:19

This archive was generated by hypermail 2.2.0 : 2009/08/31 19:30 CEST