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

    Squi 0.4.0 Reverse proxy for Exchange 2013

    Scheduled Pinned Locked Moved Cache/Proxy
    21 Posts 2 Posters 4.8k 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
      stanthewizard
      last edited by

      You're 90% right

      acl OWA_URI_pfs url_regex -i ^http://autodiscover.com/AutoDiscover/AutoDiscover.xml
      acl OWA_URI_pfs url_regex -i ^https://autodiscover.com/AutoDiscover/AutoDiscover.xml

      are not correct

      this should work better
      acl OWA_URI_pfs url_regex -i ^http://autodiscover.mydomain.com/AutoDiscover/AutoDiscover.xml
      acl OWA_URI_pfs url_regex -i ^https://autodiscover.mydomain.com/AutoDiscover/AutoDiscover.xml

      Thanks for tips
      ;D

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        But that's NOT what the code is doing? https://github.com/pfsense/pfsense-packages/blob/master/config/squid3/34/squid_reverse.inc#L211

        
        if (($settings['reverse_owa'] == 'on') && (!empty($settings['reverse_owa_ip'])) && ($settings['reverse_owa_autodiscover'] == 'on')) {
        		$reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.');
        		$conf .= "acl OWA_URI_pfs url_regex -i ^http://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
        		$conf .= "acl OWA_URI_pfs url_regex -i ^https://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
        		$conf .= "acl OWA_URI_pfs url_regex -i ^http://autodiscover{$reverse_external_domain}/AutoDiscover/AutoDiscover.xml\n";
        		$conf .= "acl OWA_URI_pfs url_regex -i ^https://autodiscover{$reverse_external_domain}/AutoDiscover/AutoDiscover.xml\n";
        	}
        }
        
        

        You are still misconfiguring something somewhere… Are you putting things like example.com there, instead of hostname.example.com? You can try this via System Patches:

        
        --- a/usr/local/pkg/squid_reverse.inc       2015-10-12 20:05:27.278005880 +0200
        +++ b/usr/local/pkg/squid_reverse.inc    2015-10-14 10:14:29.035540786 +0200
        @@ -209,7 +209,11 @@
                        }
        
                        if (($settings['reverse_owa'] == 'on') && (!empty($settings['reverse_owa_ip'])) && ($settings['reverse_owa_autodiscover'] == 'on')) {
        -                       $reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.');
        +                       if (substr_count($settings['reverse_external_fqdn'], ".") > 1) {
        +                               $reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.');
        +                       } else {
        +                               $reverse_external_domain = $settings['reverse_external_fqdn'];
        +                       }
                                $conf .= "acl OWA_URI_pfs url_regex -i ^http://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
                                $conf .= "acl OWA_URI_pfs url_regex -i ^https://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
                                $conf .= "acl OWA_URI_pfs url_regex -i ^http://autodiscover{$reverse_external_domain}/AutoDiscover/AutoDiscover.xml\n";
        
        
        1 Reply Last reply Reply Quote 0
        • S
          stanthewizard
          last edited by

          My settings are good this time
          In your 0.4.1 … All is good

          Thank again

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Thanks for testing.

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

              Double checked the squid.conf

              Still an issue

              Now it's right
              Autodiscover.mydomai.com

              BUT missing The point between autodicover and mydomain
              In mynconf it's
              Autodiscovermydomain.com

              :-\

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                Kindly test this. I won't be doing another 25 pull requests for this nonsense.

                
                --- /usr/local/pkg/squid_reverse.inc    2015-10-15 20:07:31.681133006 +0200
                +++ /usr/local/pkg/squid_reverse.inc    2015-10-16 08:23:52.568083417 +0200
                @@ -212,7 +212,7 @@
                                        if (substr_count($settings['reverse_external_fqdn'], ".") > 1) {
                                                $reverse_external_domain = strstr($settings['reverse_external_fqdn'], '.');
                                        } else {
                -                               $reverse_external_domain = $settings['reverse_external_fqdn'];
                +                               $reverse_external_domain = ".{$settings['reverse_external_fqdn']}";
                                        }
                                        $conf .= "acl OWA_URI_pfs url_regex -i ^http://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
                                        $conf .= "acl OWA_URI_pfs url_regex -i ^https://{$settings['reverse_external_fqdn']}/AutoDiscover/AutoDiscover.xml\n";
                
                

                This will be fixed in 0.4.1.1; if it still doesn't work for you, kindly produce some fixes here yourself.

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

                  ok my pleasure

                  How do I test this ?
                  thanks again and again

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    Use the system patches package. Or edit the one line manually.

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

                      working

                      and in patch 4.1.1

                      YOU ROCK !

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        Uh, finally… Thanks for report.

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

                          You're very welcome

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