Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid-reverse

    Scheduled Pinned Locked Moved pfSense Packages
    77 Posts 16 Posters 44.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sam0r
      last edited by

      Could you post a sample configuration?

      I've been trying on and off to get this working for months, and still can't.

      Everything looks right, but it just won't forward anything!

      1 Reply Last reply Reply Quote 0
      • T
        trendchiller
        last edited by

        Hi !
        You are trying to use the reverse part and it does not work ?
        First:
        Did you add Firewall-Rules from ANY to WAN-Address for 80 / 443 ?

        The three config fields are as follows:

        HOST_SSL;192.168.1.1;443;HTTPS
        HOST;192.168.1.1;80;HTTP

        WEBAPP_SSL;faq;https://gw.domainname.com
        WEBAPP;faq;http://gw.domainname.com

        HOST_SSL;WEBAPP_SSL
        HOST;WEBAPP

        here it works great !

        1 Reply Last reply Reply Quote 0
        • G
          gtr33m
          last edited by

          Are there instructions anywhere, or do I simply follow something like this? http://wiki.squid-cache.org/SquidFaq/ReverseProxy

          Thanks,

          Mark

          1 Reply Last reply Reply Quote 0
          • T
            trendchiller
            last edited by

            Hi !
            the packages should be self-explanatory, under each input field there are explanations…

            for further held, please ask ;-)

            1 Reply Last reply Reply Quote 0
            • S
              Sam0r
              last edited by

              I've configured it like you suggested, and all I get when I try to browse to a page on it is:

              While trying to retrieve the URL: http://wi.atlantis.me.uk/

              The following error was encountered:

              Access Denied.
              Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.

              1 Reply Last reply Reply Quote 0
              • T
                trendchiller
                last edited by

                is your subnet allowed under access control ?
                or any destimation blocked ?

                1 Reply Last reply Reply Quote 0
                • S
                  Sam0r
                  last edited by

                  Ive left everything on default except the reverse proxy section, should i change anything on the other tabs?

                  Also, on your URI Definitions, what does the faq part mean?

                  1 Reply Last reply Reply Quote 0
                  • T
                    trendchiller
                    last edited by

                    you should check the access tab if your subnet is allowed and if there are any sites blocked…

                    the faq reflects the uri- after the fqdn http://server.domain.tld: for http://server.domain.tld/faq

                    FAQ_HTTP;faq;http://server.domain.tld will be http://server.domain.tld/faq

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sam0r
                      last edited by

                      Sorted it.

                      I was trying to publish the root of the site.

                      Turns out you have to put a * in there for that.

                      So, my config looks like this:

                      Peer Definitions:
                      prometheushttp;192.1.22.6;80;HTTP

                      URI Definitions:
                      atlantisweb;;http://www.atlantis.me.uk
                      atlantisweb;
                      ;http://atlantis.me.uk
                      atlantiswi;*;http://wi.atlantis.me.uk

                      ACL Definitions:
                      prometheushttp;atlantisweb
                      prometheushttp;atlantiswi

                      I added my subnet into the top box in access control.

                      Then I enabled logging in the general settings, SSH'd to the box and entered the shell.

                      I ran tail -F /var/squid/logs/access.log so i could see all the incoming HTTP requests.

                      Now to get OWA, Outlook anywhere and active sync working over HTTPS.

                      Any ideas if this can do other HTTPS streaming things? I have a citrix secure gateway server that uses HTTPS to connect on port 443. It's not a web page though. I guess it's similar to activesync. At the moment it's running on 4430 but i'd like to run that through squid too.

                      1 Reply Last reply Reply Quote 0
                      • marcellocM
                        marcelloc
                        last edited by

                        @Sam0r:

                        I have a citrix secure gateway server that uses HTTPS to connect on port 443. It's not a web page though. I guess it's similar to activesync.

                        If its not http, you may need to use haproxy or native pfSense load balancer to balance tcp connections.

                        Treinamentos de Elite: http://sys-squad.com

                        Help a community developer! ;D

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sam0r
                          last edited by

                          Actually I've just realised a day after getting it working that it doesn't support Exchange 2010 Web Services, this makes the package totally useless for me.

                          I just want a reverse proxy, like in forefront TMG/ISA Server!

                          1 Reply Last reply Reply Quote 0
                          • marcellocM
                            marcelloc
                            last edited by

                            @Sam0r:

                            Actually I've just realised a day after getting it working that it doesn't support Exchange 2010 Web Services, this makes the package totally useless for me.

                            I just want a reverse proxy, like in forefront TMG/ISA Server!

                            I have it working with varnish, haproxy and apache.

                            To get balance with https without having certificate issues, you may need a wildcard certificate.

                            Varnish does all http balance/cache
                            Haproxy does the https balance
                            Apache has the certificates and mod_security

                            Treinamentos de Elite: http://sys-squad.com

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • S
                              Sam0r
                              last edited by

                              I think I'll just go back to using Forefront TMG.

                              As good as pfsense  is, it does't work for me. I need something up and running, and with documentation, not something put together by people in their spare time with next to no documentation.

                              No offence to the community, it's a great work in progress, but its not for me.

                              thanks for your time.

                              1 Reply Last reply Reply Quote 0
                              • jimpJ
                                jimp Rebel Alliance Developer Netgate
                                last edited by

                                @Sam0r:

                                I think I'll just go back to using Forefront TMG.

                                As good as pfsense  is, it does't work for me. I need something up and running, and with documentation, not something put together by people in their spare time with next to no documentation.

                                No offence to the community, it's a great work in progress, but its not for me.

                                thanks for your time.

                                There are so many things wrong with that statement I don't know where to begin. But you are right, there is no one perfect solution for everyone, use whatever works best for you.

                                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                Need help fast? Netgate Global Support!

                                Do not Chat/PM for help!

                                1 Reply Last reply Reply Quote 0
                                • marcellocM
                                  marcelloc
                                  last edited by

                                  @jimp:

                                  There are so many things wrong with that statement I don't know where to begin. But you are right, there is no one perfect solution for everyone, use whatever works best for you.

                                  I second that.

                                  pfSense works great to me.

                                  Treinamentos de Elite: http://sys-squad.com

                                  Help a community developer! ;D

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    dhatz
                                    last edited by

                                    I think a big difference has to do with the scale of such setups:

                                    iirc marcelloc is overseeing a large-scale setup (Exchange 2010 with tens of thousands of mailboxes), so he can probably justify spending many hours to intimately learn those different packages in order to integrate and properly test them.

                                    Someone with a much smaller installation, say 100-200 users, may just want a reverse-proxy solution that "simply works" and offers commercial support, because he's probably busy with a dozen other IT-related subjects.

                                    So, as jimp noted, there is no one perfect solution for everyone.

                                    1 Reply Last reply Reply Quote 0
                                    • marcellocM
                                      marcelloc
                                      last edited by

                                      @dhatz:

                                      I think a big difference has to do with the scale of such setups:

                                      iirc marcelloc is overseeing a large-scale setup (Exchange 2010 with tens of thousands of mailboxes), so he can probably justify spending many hours to intimately learn those different packages in order to integrate and properly test them.

                                      Someone with a much smaller installation, say 100-200 users, may just want a reverse-proxy solution that "simply works" and offers commercial support, because he's probably busy with a dozen other IT-related subjects.

                                      So, as jimp noted, there is no one perfect solution for everyone.

                                      You are 100% right.
                                      All features that I needed in pfsense that was not part of it, I have published to help many others to reach same result with less effort.

                                      Seeing Sam0r difficult on get a simple web proxy solution, maybe I can improve varnish package to require less configuration or dependencies for example.

                                      Treinamentos de Elite: http://sys-squad.com

                                      Help a community developer! ;D

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        maybe have a wizard to setup exchange forwarding in Varnish. Steps through and asks, host name, IP, etc.

                                        No need to dumb down the whole GUI just find a way to make some common tasks easier.

                                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                        Need help fast? Netgate Global Support!

                                        Do not Chat/PM for help!

                                        1 Reply Last reply Reply Quote 0
                                        • marcellocM
                                          marcelloc
                                          last edited by

                                          @jimp:

                                          maybe have a wizard to setup exchange forwarding in Varnish. Steps through and asks, host name, IP, etc.

                                          No need to dumb down the whole GUI just find a way to make some common tasks easier.

                                          great idea!  :)

                                          I'll try it when I finish dansguardian.

                                          Treinamentos de Elite: http://sys-squad.com

                                          Help a community developer! ;D

                                          1 Reply Last reply Reply Quote 0
                                          • H
                                            Hobby-Student
                                            last edited by

                                            Hey guys,

                                            I'm very new to pfSense, but I like the box and packages :)

                                            EDIT #2:
                                            Sorry… My fault. haven't seen it... squid.inc.. now it works like a charm :) I really like this box

                                            I also use squid as reverse-proxy to get access to OWA and ActiveSync. My main problem is, that I had to manually edit the .conf, because I need more than one https port. Everything is working great, until I reboot pfSense…

                                            What I found in the forum is, that this seems to be a general problem. But how can I fix it?! I already added "-f /path/to/my/conf.conf" to the startup script in /usr/local/etc/rc.d/squid.sh, but this won't work. Squid startsup with the "empty" config in /usr/local/etc/squid.

                                            Could someone please point me to the right direction, so the config will survive a reboot of pf Sense?

                                            Thanks in advance

                                            EDIT:
                                            pfSense 2.0.1 release and squid 2.7.9_2

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.