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

    Redirect to https

    Firewalling
    4
    6
    1.7k
    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.
    • G
      gigaforall
      last edited by

      is there a way to redirect a specific site to https even if the clients behind pfsense requested the http edition, there is a firefox plugin "SSL everywhere" that does that for specific sites, I would like to have that on my installation, like http://www.wikipedia.org forced to https://www.wikipedia.org .
      PS: I use bind for DNS and squid for proxy.

      Thank you

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        If you use a proxy and you proxy http and https traffic you can try with the "rewrite" rules and rewrite http sites to https sites. This "could" work. The problem is that proxying httpS sites you cannot use transparent proxy.

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

          @Nachtfalke:

          If you use a proxy and you proxy http and https traffic you can try with the "rewrite" rules and rewrite http sites to https sites. This "could" work. The problem is that proxying httpS sites you cannot use transparent proxy.

          I tried to do so, but didn't have luck in forwarding to https, and I couldn't understand why the https should be proxied since the request were http, squid reads the http request-> rewrites into https -> and now the browser handles the request directly, like when the site force you to be forwarded to the https edition "like when loging in", anyhow can anyone think of another way? thank you.

          1 Reply Last reply Reply Quote 0
          • C
            craigduff
            last edited by

            Are you hosting the sites yourself? Or are they public websites?

            Kind Regards,
            Craig

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              you do understand that NOT all sites are available via https - so sounds like what your wanting to do would break most of the internet for your users.  Any site that is not https would not work.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              1 Reply Last reply Reply Quote 0
              • C
                craigduff
                last edited by

                LOL

                Kind Regards,
                Craig

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