[SOLVED] Squid 3 Package - Reverse proxy



  • I have installed the Squid3 package (3.1.20 pkg 2.0.6) onto pfsense 2.1-RELEASE (amd64) in order to make some internally hosted services available.  As this is a test setup, it's not connected to a WAN yet - so I have a LAN port that I'm (trying) to bind squid to, so that I can test totally within my LAN.

    I only need the ReverseProxy functionality (I think).

    Firstly, how do I tell the reverse proxy to bind to port 80? or does it use the same port as the regular proxy (default:3129)?

    I'm also confused aboout what I need to do to set the thing up.  What I'm trying to implement is the equivalent of an apache2 ProxyPass directive

    ProxyPass /some/url http://10.0.0.118/otherurl
    

    Do I need to define Webservers, Mappings and Redirects? And does Redirect mean browser redirect or ProxyPass (browser transparent) redirect?



  • You need first to disable web gui redirect option on system-> advanced. Then try to follow reverse proxy menu options.



  • @marcelloc:

    You need first to disable web gui redirect option on system-> advanced. Then try to follow reverse proxy menu options.

    Disabling the gui redirect helped - thanks. I now have the reverse proxy working, bit I didn't realize that to get the reverse proxy working I had to enable Reverse HTTP mode and bind onto port 80. I thought Reverse HTTP was for creating connections (reversing HTTP roles) not reverse proxying…

    Marked as solved. Thx


Log in to reply