• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.9k 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.
  • D
    doktornotor Banned
    last edited by Oct 13, 2015, 12:30 PM

    Starting to get an impression that you simply need to configure your Exchange properly, rather than messing with the package code.

    Autodiscover service

    1 Reply Last reply Reply Quote 0
    • S
      stanthewizard
      last edited by Oct 13, 2015, 12:57 PM

      Sorry but those lines

      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

      could not work at all
      http://autodiscover.com/

      this is a single domain

      at least this sould be

      http://autodiscover.MYDOMAIN.com/

      And in this case my settings are fine ;)
      (and I check …I think they are)

      1 Reply Last reply Reply Quote 0
      • S
        stanthewizard
        last edited by Oct 13, 2015, 1:18 PM

        Made a little tweaking on exchange with this

        Get-AutodiscoverVirtualDirectory -server MYEXCHANGESERVER | Set-AutodiscoverVirtualDirectory -ExternalUrl ‘https://autodiscover.MYDOMAIN.com/Autodiscover/Autodiscover.xml’ -InternalUrl ‘https://autodiscover.MYDOMAIN.com/Autodiscover/Autodiscover.xml’

        After that
        Squid reverse is working perfectly for autodiscover

        Thank you for the issue in exchange

        BUT the issue with mapi resides
        and I have doubt on one of the syntax for autodiscover (uper comment)

        1 Reply Last reply Reply Quote 0
        • S
          stanthewizard
          last edited by Oct 13, 2015, 1:42 PM

          OK for MAPI
          issue too on my part

          Get-MapiVirtualDirectory | Set-MapiVirtualDirectory -ExternalUrl https://MYDOMAIN.com/mapi
          IISRESET /noforce

          Everything is fine with Exchange

          MY BAD  :-X

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by Oct 13, 2015, 4:43 PM

            So, there are no more problems with this? As said, it's possible to put some hints in the GUI if you provide them, however I cannot see the package being the issue here?

            1 Reply Last reply Reply Quote 0
            • S
              stanthewizard
              last edited by Oct 14, 2015, 6:17 AM

              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 Oct 14, 2015, 8:15 AM Oct 14, 2015, 7:56 AM

                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 Oct 15, 2015, 8:13 PM

                  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 Oct 15, 2015, 8:29 PM

                    Thanks for testing.

                    1 Reply Last reply Reply Quote 0
                    • S
                      stanthewizard
                      last edited by Oct 16, 2015, 5:05 AM

                      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 Oct 16, 2015, 9:12 AM Oct 16, 2015, 6:00 AM

                        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 Oct 16, 2015, 6:09 PM

                          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 Oct 16, 2015, 7:30 PM

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

                            1 Reply Last reply Reply Quote 0
                            • S
                              stanthewizard
                              last edited by Oct 17, 2015, 6:33 AM

                              working

                              and in patch 4.1.1

                              YOU ROCK !

                              1 Reply Last reply Reply Quote 0
                              • D
                                doktornotor Banned
                                last edited by Oct 17, 2015, 8:47 AM

                                Uh, finally… Thanks for report.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stanthewizard
                                  last edited by Oct 17, 2015, 10:03 AM

                                  You're very welcome

                                  1 Reply Last reply Reply Quote 0
                                  15 out of 21
                                  • First post
                                    15/21
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received