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

    Pfsense blocking all but pings to IP addresses

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    27 Posts 8 Posters 5.3k 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.
    • KOMK Offline
      KOM
      last edited by

      I was asking if you could replace your DNS servers in System - General Setup with the Google ones.

      I have tried with DNS forwarder enabled and disabled.

      pfSense has two built-in DNS services.  I was asking which one you are using.  You shouldn't use both simultaneously.  If you are using DNS Forwarder only and you turn it off then you have no DNS at all.

      Here is what I would do:

      • Disable DNS Forwarder.

      • Enable DNS Resolver.

      • Check the DNS Query Forwarding checkbox under Services - DNS Resolver - General settings.

      • Replace your DNS servers under System - General Setup - DNS Server Settings with Google 8.8.8.8 and 8.8.4.4.

      • Save & test.

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

        is this pfsense virtual?

        Your blocks are OUT of state blocks.. not blocking of syn packets..  Do you have asymmetrical routing issue.  How are you clients connect to pfsense.. And they use pfsense as their only gateway right??

        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.8, 24.11

        1 Reply Last reply Reply Quote 0
        • D Offline
          d4t4str34m
          last edited by

          Here is what I would do:
          Disable DNS Forwarder.
          Enable DNS Resolver.
          Check the DNS Query Forwarding checkbox under Services - DNS Resolver - General settings.
          Replace your DNS servers under System - General Setup - DNS Server Settings with Google 8.8.8.8 and 8.8.4.4.
          Save & test.

          Tried the DNS resolver and it didn't work. I have changed the dns numbers in the general setup and that didn't work.

          is this pfsense virtual?

          Your blocks are OUT of state blocks.. not blocking of syn packets..  Do you have asymmetrical routing issue.  How are you clients connect to pfsense.. And they use pfsense as their only gateway right??

          It is the pfsense appliance. It is not virtual. The pfsense box is the only gateway. As soon as I unplug pfsense and hook up the old cipa firewall everything works. It has the dns numbers in it that I have given you.

          1 Reply Last reply Reply Quote 0
          • D Offline
            d4t4str34m
            last edited by

            For some reason when I plug my pfsense box in, it is doing something to my dns server. I have to manually put a dns address into client machine settings to get dns working and get them on the internet. Machines are getting ip settings properly from my dhcp server but the dns is not working. The dhcp and dns reside on the same server.

            I just noticed that pfsense works as a dns fine if I put that in my dhcp server to hand out.

            1 Reply Last reply Reply Quote 0
            • P Offline
              phil.davis
              last edited by

              I just noticed that pfsense works as a dns fine if I put that in my dhcp server to hand out

              Well then, pfSense is good.
              If you have an internal DNS server, and the gateway address of your pfSense LAN side is not the same as the LAN side gateway address of the previous router, then you will have to tell that internal DNS server what is the new way to get to the internet (and thus to resolve external DNS). Once that is working, then your internal DHCP server should be able to give out the internal DNS server IP, and the internal DNS server will successfully lookup all names.

              (I am guessing a bit about what exactly you have on your internal network and how it all talked before putting pfSense in place)

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • D Offline
                d4t4str34m
                last edited by

                If you have an internal DNS server, and the gateway address of your pfSense LAN side is not the same as the LAN side gateway address of the previous router, then you will have to tell that internal DNS server what is the new way to get to the internet (and thus to resolve external DNS).

                I have it all set up with the same addresses as the last firewall so nothing should have changed. I had a rule for tcp/udp port 53 open for all and I figured that would allow my internal DNS to get DNS info from the net. I disabled all my rules to try and figure out what the issue was. I will start re-enabling them tomorrow and see if I can figure out what is causing the problem.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  d4t4str34m
                  last edited by

                  So now the issue is my internal DNS server is not getting out. I can ping the IP of the firewall, LAN IP and WAN IP. I cannot ping the WAN gateway IP. I can from the other machines on the network. I cannot figure out why the Mac OD servers are having so many issues.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tim.mcmanus
                    last edited by

                    @d4t4str34m:

                    So now the issue is my internal DNS server is not getting out. I can ping the IP of the firewall, LAN IP and WAN IP. I cannot ping the WAN gateway IP. I can from the other machines on the network. I cannot figure out why the Mac OD servers are having so many issues.

                    Are you running MacOS X Server and using that as a DNS server?

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      d4t4str34m
                      last edited by

                      Are you running MacOS X Server and using that as a DNS server?

                      Yes. I ended up adding those machines into the host over ride in the DNS Resolver of pfsense. Now my machines can find the OD server for their accounts while on the network. I am still trying to figure out why it can't get out on the internet.

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tim.mcmanus
                        last edited by

                        @d4t4str34m:

                        Are you running MacOS X Server and using that as a DNS server?

                        Yes. I ended up adding those machines into the host over ride in the DNS Resolver of pfsense. Now my machines can find the OD server for their accounts while on the network. I am still trying to figure out why it can't get out on the internet.

                        I have a lot of experience with Mac OS X Server.  What's probably happening is that it's making IPv6 DNS queries.  I've complained to Apple engineers that it should do both IPv4 and IPv6, preferably using IPv4 as a default.  But they told me that's the way it's supposed to work.

                        Check your DNS logs on Mac OS X Server and you should see a lot of these:

                        24-Jun-2016 00:12:32.030 error (host unreachable) resolving 'ns-1272.awsdns-31.org/A/IN': 2001:500:40::1#53
                        24-Jun-2016 00:12:32.030 error (host unreachable) resolving 'ns-1272.awsdns-31.org/AAAA/IN': 2001:500:40::1#53
                        24-Jun-2016 00:12:32.030 error (host unreachable) resolving 'ns-1272.awsdns-31.org/A/IN': 2001:500:f::1#53
                        24-Jun-2016 00:12:32.030 error (host unreachable) resolving 'ns-1272.awsdns-31.org/AAAA/IN': 2001:500:f::1#53
                        

                        That's OS X Server trying to do IPv6 lookups and failing.  My ISP doesn't use IPv6, so I had to force OS X Server to do IPv4 lookups, which resolved the issue.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          d4t4str34m
                          last edited by

                          I don't think that is it. For some reason I can ping all the way through pfsense (LAN and WAN) by ip address from those apple servers but I can't ping the gateway for my WAN. If I plug in the old firewall everything works fine. If I run a traceroute from the apple server to the WAN gateway IP of pfsense, I get a hop from my LAN gateway number and then it stops. It seems to get hung up in the firewall.

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            d4t4str34m
                            last edited by

                            I am going to change my DHCP service from the problematic apple server to pfsense. The only issue is that I have a lot of static assignments so I wanted to do an export from the apple server and then import into pfsense. I have exported settings to a plist file and then used the plutil command to convert to xml. I have also tried running sudo serveradmin settings dhcp >/path/to/file.txt. I then opened the text file created in excel and save it as an xml.

                            I keep getting an error when importing the xml file in pfsense. The error says "An area to restore was selected but the correct xml tag could not be located." Is there something that needs to be in the xml file to make this work?

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              divsys
                              last edited by

                              It's not likely that any of your described attempts would create an xml file that the pfSense Restore system would understand.

                              If you're trying to do a batch setup of DHCP static addresses, try:

                              1. Manually create two or three static assignments in DHCP.
                              2. Export the xml data using the pfSense Backup system, selecting only DHCP for Backup.
                              3. Examine the xml file using a text editor and note the key data lines
                              4. Cut and paste a few lines of data from your previous attempts to modify the file exported in 2)
                              5. Import the modified file using the pfSense Restore facility and verify the DHCP changes occur as you expect.
                              6. Repeat the modification with rest of your data.

                              It's not that hard once you get an idea of what the file should look like internally.

                              -jfp

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                d4t4str34m
                                last edited by

                                @divsys:

                                It's not likely that any of your described attempts would create an xml file that the pfSense Restore system would understand.

                                If you're trying to do a batch setup of DHCP static addresses, try:

                                1. Manually create two or three static assignments in DHCP.
                                2. Export the xml data using the pfSense Backup system, selecting only DHCP for Backup.
                                3. Examine the xml file using a text editor and note the key data lines
                                4. Cut and paste a few lines of data from your previous attempts to modify the file exported in 2)
                                5. Import the modified file using the pfSense Restore facility and verify the DHCP changes occur as you expect.
                                6. Repeat the modification with rest of your data.

                                It's not that hard once you get an idea of what the file should look like internally.

                                I tried this and the xml files were completely different. I ended up just manually entering them in. It took a fair amount of work but it will be worth it.

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