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

    Problem with pfSense – Need help please

    Hardware
    4
    8
    3.8k
    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.
    • J
      jim.thornton
      last edited by

      Okay…  Here is my setup (if you can understand it):

      I'm running the HOST under ESXi.

      
      Internet -> ESXi (pfSense)
          192.168.1.1 - Desktop
          192.168.2.2 - Zimbra Mail  (mail.mydomain.com)
      
      

      My connections and everything are working fine.  Zimbra is working fine.  I have full access to the internet on all machines on the network.

      However, here is my issue:  Whenever I try to connect to my Zimbra webmail from within the network (ie. Desktop/iPhone/anything) I get a rebind attack error message:

      Potential DNS Rebind attack detected, see http://en.wikipedia.org/wiki/DNS_rebinding
      Try accessing the router by IP address instead of by hostname. 
      

      If I make an entry into my HOSTS file on my destop to point to 192.168.2.2 for mail.mydomain.com then everything works fine.  While I can do this for my desktop, I cannot do this for my iPhone because I might not always be inside the network with my iphone.

      Is there a way that I can stop this error from happening?

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

        Does mail.mydomain.com resolves to a public ip address?

        If so, you may need to have a internal dns server to answer 192.168.2.2 - mail.mydomain.com when you are locally.

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

        Help a community developer! ;D

        1 Reply Last reply Reply Quote 0
        • J
          jim.thornton
          last edited by

          Yes, mail.mydomain.com resolves to a public IP address.

          I have a DNS server in my network already (on the Zimbra box).  Is there a way that I can add an extra DNS server to my browser/mail client/iphone?  Meaning, right now I have 192.168.1.1 (which is my pfSense router).  Maybe I can just add 192.168.2.2 (my Zimbra box) as a secondary or third DNS server.  Will that work?

          1 Reply Last reply Reply Quote 0
          • J
            jim.thornton
            last edited by

            Or, is there a way that I can add that to pfSense somewhere?  Anything from within the network contacting mail.mydomain.com will automatically be redirected by pfSense?

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

              yeah you can just add a record on pfsense to resolve mail.mydomain.com to your internal address 192.168.2.2

              So when your phone is on your wifi network, it would use your wifi network dns to resolve mail.mydomain.com to your private 192.168.2.2, and while its outside your network it would resolve the public IP address for that and access it that way.

              So your saying your internal dns on your Zimbra box resolves to the public IP for mail. ?

              So where does your phone and desktop get dns from currently, zimbra box or pfsense?

              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
              • J
                jim.thornton
                last edited by

                Sorry, the whole network gets the DNS from 192.168.1.1 (pfSense).

                However on the Zimbra box my DNS is setup to itself.  I installed BIND on the Zimbra box to setup all the records that it needed.  I would just leave that alone because that box is working perfectly.  But for the others, where would I add the record into pfSense to have it resolve mail.mydomain.com to the internal IP of 192.168.2.2?

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  If you're using the pfSense DNS forwarder then you need to enable NAT reflection or set a DNS override.

                  See: http://doc.pfsense.org/index.php/Why_can%27t_I_access_forwarded_ports_on_my_WAN_IP_from_my_LAN/OPTx_networks%3F

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • J
                    jim.thornton
                    last edited by

                    Thank you for the link.  I enabled the split DNS and it is working beautifully.

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