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

    Alternative for MS TMG 2010 = pfSense ???

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    90 Posts 9 Posters 61.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.
    • C
      canefield
      last edited by

      Marcello,

      I now fully understand the whole concept of it. Thanks for you explanation.
      Still it does't function for me.

      Network
      LAN; IP: 192.168.120.254 /24
      WAN; IP: 192.168.2.254 /24, GW: 192.168.2.253 (DMZ)

      Installation and configuration

      1. I have changed the webGUI port from 443 to 9443 and disbaled the redirect rule
      2. Configured firewall rule to allow 443 from WAN (TCP;;;WAN address; HTTPS)
      3. Installed Squid3 package
      4. Enabled listening port Reverse Proxy on port 80 and 443 (just for now I only use port 443)
      5. Added webserser (127.0.0.1;9443;HTTPS)
      6. Added Mappings (Peer to 127.0.0.1; URI (*;<empty>))

      Now I should get my own webGUI of pfSense if I went to https://www.domain.com/. Sadly it does't work for me. What could have gone wrong? Related to block private networks on the WAN-interface? Any other configuration mismatch I should be aware of? How hard could it be? I really don't have the slightest idea.

      Thank a lot,
      Canefield</empty>

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

        @canefield:

        1. Configured firewall rule to allow 443 from WAN (TCP;;;WAN address; HTTPS)
        2. Enabled listening port Reverse Proxy on port 80 and 443 (just for now I only use port 443)

        Did you selected wan interface to listen on?

        @canefield:

        Now I should get my own webGUI of pfSense if I went to https://www.domain.com/. Sadly it does't work for me. What could have gone wrong? Related to block private networks on the WAN-interface? Any other configuration mismatch I should be aware of? How hard could it be? I really don't have the slightest idea.

        Does https://www.domain.com/ points to firewall wan ip address?
        Did you tried this access from internet or from lan?
        You have private address assigned to wan interface(WAN; IP: 192.168.2.254 /24), why did you checked block private networks on the WAN-interface? ???

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

        Help a community developer! ;D

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

          @marcelloc:

          @canefield:

          1. Configured firewall rule to allow 443 from WAN (TCP;;;WAN address; HTTPS)
          2. Enabled listening port Reverse Proxy on port 80 and 443 (just for now I only use port 443)

          Did you selected wan interface to listen on? =>YES

          @canefield:

          Now I should get my own webGUI of pfSense if I went to https://www.domain.com/. Sadly it does't work for me. What could have gone wrong? Related to block private networks on the WAN-interface? Any other configuration mismatch I should be aware of? How hard could it be? I really don't have the slightest idea.

          Does https://www.domain.com/ points to firewall wan ip address? =>YES
          Did you tried this access from internet or from lan? =>Internet
          You have private address assigned to wan interface(WAN; IP: 192.168.2.254 /24), why did you checked block private networks on the WAN-interface? ??? =>No I did not, I wanted to check my settings

          I did some research…I saw that my Squid3 service was for no reason down. I wasn't able to get it online via settings of GUI so I restarted pfSense. Now the service was online, but no results whatever. I checked if my port where open. That's the thing that supprised me the most. Both the ports aren't open; although I have the appropiate firewall rules in place on the right interface. I've also tried using the floating rule, but without any result. Is it Linux that always give 'stealth' back by a portscan? I think not, so what can it be? I assume that it ain't listening on port 80 and 443. What other ports are needed? None so far my understanding.

          Thanks again,
          Canefield

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

            Marcello,

            After a mysterious reboot it worked like a charme. Still I'm confused what was tha part that broke and fixed everything.
            Now I have only one rule in the reverse proxy.

            When I want to make a difference by FQDN, what should I add/change to make it work?

            Let's say I have four servers:

            • 127.0.0.1 on 9443 => webGUI pfSense
            • 192.168.150.3 on port 443 => MS Exchange OWA, Outlook Anywhere, Autodiscover
            • 192.168.150.7 on port 443 => MS SharePoint
            • 192.168.150.12 on port 80 => Corporate website

            I would say first add choose to the 'web server' by IP-address and Listening port. Second add 'mappings'; so make a group and add the corresponding peers to it and make use of URIs. So for the first server (127.0.0.1) I have added the URI *; remote.domain.com (HTTPS), the second URI *; webmail.domain.com/owa, URI2 *; mail.domain.com/owa (HTTPS) and the third *; extranet.domain.com and the fourth URI *; www.domain.com (HTTP). But somehow the URI is not working as I thought it should be. I only want that is listenens to the specified URI. Everything else should be bounced. Could you give me several examples?

            Thanks a lot,
            Canefield

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

              @canefield:

              I would say first add choose to the 'web server' by IP-address and Listening port.

              yes.

              I've moved this answer to your squi3 package question.

              http://forum.pfsense.org/index.php/topic,48709.msg257571.html#msg257571

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

              Help a community developer! ;D

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

                So thanks again!

                If the Squid URI works like it should be -futher explanations in the mentioned topic- this topic is almost finished. My next accomplishment will be the backup/fallback Postfix with Anti-SPAM/Virus. You already provided some information. I will look that up and will post my findings and problems :-).

                As far I can remember you placed Postfix in front, but I want it to be as backup/fallback for the Exchange servers. So if those server become inaccessible/offline Postfix should be there in front as backup/fallback. All messeages may be stored in the Postfix mailqueue and if the Exchange servers are back online again all messages will be forwarded to them. I think of a configuration regarding message retainment and stuff. Also I am interested in the picture in 'vice versa', because I want to know about this too. Perhaps I will configure it the other way around? Any suggestions/considerations/ideas?

                KR,
                Canefield

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

                  canefield,

                  On postfix topic you can see a lot of suggestions.

                  I recomend postfix in front of your exchange server, but you can use it this way. configure postfix as a backup mx on your domain with a high value. Just like on dns round robin, mx choice is made by client. this way you will have mail servers sending messages to both mx.

                  Use postfix thread if have any other question.

                  att,
                  Marcello Coutinho

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

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • R
                    rmpf
                    last edited by

                    Hi, I'll very happy to move from Isa to PFsense but some details still confused to me. You already know how ISA rules work. For example when creating a new rule you have the possibility to specify to whom apply that rule, maybe a user, maybe a group. How do Pfsense work with that???

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

                      @rmpf:

                      For example when creating a new rule you have the possibility to specify to whom apply that rule, maybe a user, maybe a group. How do Pfsense work with that???

                      AFAIK, you can only apply firewall rules to ips/ networks.

                      Using proxy servers like squid/squidguard/dansguardian you can apply http rules to users.

                      att,
                      Marcello Coutinho

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

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • R
                        rmpf
                        last edited by

                        Hi, Marcello, you said firewall rules only apply to ips/ networks, but with proxy servers like squid/squidguard/dansguardian http rules can be apply to users. Ok, I have read
                        "Tutorial PFFense 2.0: Active Directory -> User Manager - http://forum.pfsense.org/index.php/topic,44689.0.html" but how to apply and specific dansguardian or squidguard rule to an specific user or group??? I don't see any space to assign an active directory user or group???? Because our inmediate situation with ISA we already have some groups created on Active Directory Like Internet Users and IT so the question is how to implement dansguardian or squidguard to limit or allow traffics to specific sites on those groups?

                        1 Reply Last reply Reply Quote 0
                        • R
                          rmpf
                          last edited by

                          @marcelloc:

                          @rmpf:

                          For example when creating a new rule you have the possibility to specify to whom apply that rule, maybe a user, maybe a group. How do Pfsense work with that???

                          AFAIK, you can only apply firewall rules to ips/ networks.

                          Using proxy servers like squid/squidguard/dansguardian you can apply http rules to users.

                          att,
                          Marcello Coutinho

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

                            Dansguardian has an ldap tab to fetch users from ad based on groups, take a look on dansguardian topic at packages to see how it works.

                            with auth popup, you can follow this how-to(it's in portuguese but translate.google.com can help you)
                            http://www.pfsense-br.org/blog/2012/01/pfsensesquidsquidguard-logando-no-active-directory/

                            without auth popup, you will need a more advaced setup to apply it, including installing and configuring samba on pfsense.

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

                            Help a community developer! ;D

                            1 Reply Last reply Reply Quote 0
                            • R
                              rmpf
                              last edited by

                              Thanks!!! So then is possible to install samba for no auth popup but samba is not on the listed packages… Am I correct?

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

                                This is the topic(in portuguese again  :)) with a smailll tutorial to setup ntlm authentication on squid

                                http://forum.pfsense.org/index.php/topic,47532.msg249812.html#msg249812

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

                                Help a community developer! ;D

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rmpf
                                  last edited by

                                  Thanks for the tip!! After completing the configuration witn samba It is possible to log the usernames for audit purposes?????

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

                                    @rmpf:

                                    Thanks for the tip!! After completing the configuration witn samba It is possible to log the usernames for audit purposes?????

                                    Sure. You can use sarg to create reports.

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

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Supermule Banned
                                      last edited by

                                      What will then happen if some of the packages get updated and it breaks the config that replaces TMG??

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

                                        @Supermule:

                                        What will then happen if some of the packages get updated and it breaks the config that replaces TMG??

                                        In this case, package maintainers or anyone else can fix the problem or depending on the package and the problem, you can buy some commercial support hours and ask to fix it.

                                        And what will then happen if microsoft decides to stop TMG development and keep it just fixing bugs?

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

                                        Help a community developer! ;D

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

                                          Dear all,

                                          I was on holiday a couple of days. I'm back and did a lot of testing and thing are actually working ::). Still I have some questions.

                                          1. Has somebody thorough tested the build in OWA functionality? I encounter problems regarding the 'Outlook Anywhere' and 'AutoDiscover' aspects. It can not verify the servers nor the auto configuration. Only the webbased functionality is working like it suppose to be.

                                          2. I also could use the 'webservers' and 'mappings' instead. But is it not so that I should than configure all URI's Exchange is using? Or can I use wildcard after the domain, e.g.: ;mail.domain.com/ ?

                                          3. Than something else but related ofcourse. Is it possible to create some kind of redirect from HTTP to HTTPS? More specific, when browsing to 'http://webmail.domain.com' it get redirected to 'https://webmail.domain.com/owa'? Yes, all regarding M$ Exchange ;)

                                          4. I'm hosting some kind of test-website right now (.NET ASPX). When browsing to that site I get some parts of the page, but seconds later IE is complaining and wants to reload the page. Why is not everything loaded into the page? Pictures especially and links won't work? How, why?

                                          5. Related to #4, should I configure Squid Proxy first? Instead of currently only using Reverse Proxy? Anybody a good manual for Squid Proxy with caching, Windows Update, etc.?

                                          Thanks a lot,
                                          Canefield

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

                                            @canefield:

                                            1. Has somebody thorough tested the build in OWA functionality? I encounter problems regarding the 'Outlook Anywhere' and 'AutoDiscover' aspects. It can not verify the servers nor the auto configuration. Only the webbased functionality is working like it suppose to be.

                                            I didn't  :(

                                            @canefield:

                                            1. I also could use the 'webservers' and 'mappings' instead. But is it not so that I should than configure all URI's Exchange is using? Or can I use wildcard after the domain, e.g.: ;mail.domain.com/ ?

                                            I think wildcards are accepted by config but there are so many paths for owa?

                                            @canefield:

                                            1. Than something else but related ofcourse. Is it possible to create some kind of redirect from HTTP to HTTPS? More specific, when browsing to 'http://webmail.domain.com' it get redirected to 'https://webmail.domain.com/owa'? Yes, all regarding M$ Exchange ;)

                                            The easiest way to do this is and redirect html on webserver

                                            @canefield:

                                            1. I'm hosting some kind of test-website right now (.NET ASPX). When browsing to that site I get some parts of the page, but seconds later IE is complaining and wants to reload the page. Why is not everything loaded into the page? Pictures especially and links won't work? How, why?

                                            take a look on access log file for access_denied urls using tail -f

                                            @canefield:

                                            1. Related to #4, should I configure Squid Proxy first? Instead of currently only using Reverse Proxy?

                                            You can use only reverse functions. I'm planning to build when time permits two conf files one for normal proxy and one for reverse proxy with no changes on gui. This way you can have two log files, one for normal proxy and other for reverse.

                                            @canefield:

                                            Anybody a good manual for Squid Proxy with caching, Windows Update, etc.?

                                            Squid3 package on local cache tab, has these dynamic options o gui.

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

                                            Help a community developer! ;D

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