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

Internet on windows but not ubuntu bad pfsense configuration?

Scheduled Pinned Locked Moved General pfSense Questions
41 Posts 4 Posters 5.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.
  • F
    Farisse
    last edited by Jul 16, 2020, 1:16 PM

    Hi everyone,

    First of all sorry for my english, it's not my native language. I tried a few forums in my native language, but nobody could help me.

    A couple of days ago I posted a topic with what I thought dhcp problems but it wasn't.

    I made a complete new install of my ubuntu machine.

    The problem I have is I can access internet with my windows virtualized machine, but not with my Ubuntu virtualized machine on my DMZ. Here is my network diagram : 15072020_2.jpg

    My lan is my domain and dns server of my domain is 192.168.0.10 which is also my active directory.

    My DMZ should be only a web server. The windows server 2016 and windows professional 10 are in my dmz only for testing. The only machine who should be working in my DMZ is my Ubuntu web server.

    I noticed, when I restart the pfSense machine that I can get internet on Ubuntu and when I restart the ubuntu VM i lose the connection.
    a662137c-35b9-4b26-8482-c0fe6d0c8d54-image.png
    I don't know where to search i am practically sure it's something to do with the dns forwarder but can't fix it.

    Does anyone have an idea where to search or how i could fix it ?

    Thank you very much :)

    Farisse

    1 Reply Last reply Reply Quote 0
    • R
      Raffi_
      last edited by Jul 16, 2020, 1:50 PM

      For the DMZ are you using pfSense DNS Resolver in forwarding mode or DNS forwarder?
      Can you post screenshots of the DNS settings and if using forwarding also the DNS server settings in System / General Setup?

      1 Reply Last reply Reply Quote 0
      • F
        Farisse
        last edited by Jul 16, 2020, 2:01 PM

        Hi thank you for your answer,

        I actually enabled the DNS forwarder thinking it would forward the dns server that ar in my System / General Setup. But apparently not.
        Here are the screenshots :

        0e8c4045-74b2-4093-a7b9-3fd7f56ab4fa-image.png
        20448b15-a9d7-4b98-be5f-5753862fc8ff-image.png

        1 Reply Last reply Reply Quote 0
        • R
          Raffi_
          last edited by Jul 16, 2020, 2:20 PM

          I'm not familiar with the DNS forwarder (dnsmasq) but that seems like it should work. What you can try is DNS Resolver in forwarding mode. See if you get any difference.

          1 Reply Last reply Reply Quote 0
          • F
            Farisse
            last edited by Jul 16, 2020, 2:30 PM

            Yup, it should i don't understand either why its not working.

            How should i do to put the DNS resolver in forwarding mode ?

            1 Reply Last reply Reply Quote 0
            • R
              Raffi_
              last edited by Jul 16, 2020, 2:36 PM

              Before doing that maybe try some more troubleshooting.

              Try to run a dig from Ubuntu and maybe also from pfSense to compare the results.

              e.g.,
              dig google.com
              dig @8.8.8.8 google.com

              The first should use your default DNS server the second is using google's DNS server.

              F 1 Reply Last reply Jul 16, 2020, 2:52 PM Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Jul 16, 2020, 2:38 PM

                Check pfSense itself can resolve. Test something in Diag > DNS Lookup. Be sure all configured servers respond, that should include 127.0.0.1.

                Make sure both VMs appear in the pfSense DHCP lease table. You might have something else handing out leases.

                Steve

                1 Reply Last reply Reply Quote 0
                • F
                  Farisse @Raffi_
                  last edited by Jul 16, 2020, 2:52 PM

                  @Raffi_

                  2eb42ba1-1715-4f55-bf57-a10fe653508d-image.png

                  @stephenw10

                  149f5d2b-90d5-4625-8b71-fa81da98d375-image.png

                  Should the pfSense DHCP lease table show me the static ip from my vms ?

                  R 1 Reply Last reply Jul 16, 2020, 3:30 PM Reply Quote 0
                  • R
                    Raffi_
                    last edited by Jul 16, 2020, 3:03 PM

                    Woaw 8 seconds for a query could be your issue. Those DNS servers are used only for this DMZ?

                    b2ffc793-9b7b-4d3b-9b69-94409528d420-image.png

                    D 1 Reply Last reply Jul 16, 2020, 3:44 PM Reply Quote 1
                    • F
                      Farisse
                      last edited by Jul 16, 2020, 3:06 PM

                      Nope those are DNS servers on my school's network. :/ Can not work without them

                      R 1 Reply Last reply Jul 16, 2020, 3:07 PM Reply Quote 0
                      • R
                        Raffi_ @Farisse
                        last edited by Raffi_ Jul 16, 2020, 3:09 PM Jul 16, 2020, 3:07 PM

                        @Farisse said in Internet on windows but not ubuntu bad pfsense configuration?:

                        Nope those are DNS servers on my school's network. :/ Can not work without them

                        ...Can not work with them either.

                        Edit
                        Something is very wrong there. Even if your were to ping a server at the furthest possible point on the planet, I would not expect a number like that.

                        1 Reply Last reply Reply Quote 0
                        • F
                          Farisse
                          last edited by Jul 16, 2020, 3:11 PM

                          Haha got me ! But actually it work but only on windows VMs and not on Ubuntu. Idk if ubuntu is using different dns ports (not at my knowledge) Or if pfSense is sending the dns request to the wrong servers ?

                          R 1 Reply Last reply Jul 16, 2020, 3:14 PM Reply Quote 0
                          • R
                            Raffi_ @Farisse
                            last edited by Jul 16, 2020, 3:14 PM

                            @Farisse said in Internet on windows but not ubuntu bad pfsense configuration?:

                            Haha got me ! But actually it work but only on windows VMs and not on Ubuntu. Idk if ubuntu is using different dns ports (not at my knowledge) Or if pfSense is sending the dns request to the wrong servers ?

                            Could it be that Ubuntu's query timeout is shorter than Windows?

                            1 Reply Last reply Reply Quote 0
                            • R
                              Raffi_
                              last edited by Jul 16, 2020, 3:19 PM

                              I think using pfSense DNS resolver could help here since it would build up a cache.

                              676d0652-1ab4-445d-aaf7-8541847adbbe-image.png

                              3eee10ad-b053-4977-b3cd-44b5c2c0d520-image.png

                              1 Reply Last reply Reply Quote 0
                              • F
                                Farisse
                                last edited by Jul 16, 2020, 3:19 PM

                                Idk, but when i restart the services i can get internet on my ubuntu.
                                So maybe my ubuntu is making a link with the dns servers when nothing can intercept the packets.
                                And if pfsense if running again it can't 'wipe' packets when the connection is established so ubuntu vm still have internet.
                                But when i restart the ubuntu vm every connection is closed and could not be established again.

                                This is what i guess but i don't know how to fix it by a port forwarding or traceroute can't determine where it sucks :/

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Raffi_ @Farisse
                                  last edited by Jul 16, 2020, 3:30 PM

                                  @Farisse said in Internet on windows but not ubuntu bad pfsense configuration?:

                                  Should the pfSense DHCP lease table show me the static ip from my vms ?

                                  Also, going back to @stephenw10 question on DHCP leases. That needs to be cleared up.

                                  F 1 Reply Last reply Jul 16, 2020, 3:40 PM Reply Quote 0
                                  • F
                                    Farisse @Raffi_
                                    last edited by Jul 16, 2020, 3:40 PM

                                    @Raffi_ said in Internet on windows but not ubuntu bad pfsense configuration?:

                                    That needs to be cleared up
                                    ab03e6ef-f63e-4a24-965b-2c6d5d2510e0-image.png

                                    I activated dns resolver with forwarding but still doesn't work.

                                    I try it with Chrome and i receive this error:
                                    6789f615-6acc-4bd2-b805-6d46109a08df-image.png

                                    R 1 Reply Last reply Jul 16, 2020, 3:44 PM Reply Quote 0
                                    • S
                                      stephenw10 Netgate Administrator
                                      last edited by Jul 16, 2020, 3:41 PM

                                      Yeah that is catastrophically bad! Something is very broken there.

                                      I guess the DNS timeout in Windows is higher which is why it worked.

                                      You don't see localhost there so you probably have 'Do not use the DNS Forwarder/DNS Resolver as a DNS server for the firewall' set in System > General setup. That doesn't make much difference unless you have host overrides there the firewall should use.

                                      Steve

                                      R F 2 Replies Last reply Jul 16, 2020, 3:51 PM Reply Quote 0
                                      • D
                                        DaddyGo @Raffi_
                                        last edited by Jul 16, 2020, 3:44 PM

                                        @Raffi_ said in Internet on windows but not ubuntu bad pfsense configuration?:

                                        Woaw 8 seconds for a query could be your issue. Those DNS servers are used only for this DMZ?

                                        I thought I would note this too, but I rather skipped it, hihihihhi 👍 😉

                                        Cats bury it so they can't see it!
                                        (You know what I mean if you have a cat)

                                        1 Reply Last reply Reply Quote 1
                                        • R
                                          Raffi_ @Farisse
                                          last edited by Jul 16, 2020, 3:44 PM

                                          I activated dns resolver with forwarding but still doesn't work.

                                          I try it with Chrome and i receive this error:
                                          6789f615-6acc-4bd2-b805-6d46109a08df-image.png

                                          Try it a second time. Once unbound caches it, it should come right up the second time.

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