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

    Issues with internet connectivity only for linux systems on a subnet

    Scheduled Pinned Locked Moved General pfSense Questions
    16 Posts 3 Posters 509 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
      cde @stephenw10
      last edited by

      @stephenw10

      How exactly are you doing that?

      i go to the interface as seen in the image below, and without making any changes i click save at the bottom of the page
      570a966d-8a51-4986-bea3-c71f5826889a-image.png

      c4e52544-e49d-4b0b-845d-33fa6b9b2961-image.png

      and this makes the interface "refresh". So basically without making any changes the linux systems are conencted to the internet.

      After they regain connectivity what happens to make it fail again?

      The linux hosts lose connectivity after this if they are rebooted or their networkmanager is rebooted.

      When they are unable to connect what error is shown if, for example, you try to ping pfsense.org?

      no error when pinging pfsense.org, it is not even starting in fact (i havent tried that in the past) which means that it cannot find a dns server i guess, while for pinging 8.8.8.8 the ping utility starts but nothing happens.
      fba15834-eafa-4371-b0e2-cf72781699bf-image.png

      the next image is after the refresh and no other changes on the vm:

      04639c64-71ff-4060-8c36-157dfcfa10d5-image.png

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

        If it's unable to resolve it I'd expect some error there but you can confirm by just trying to resolve it:

        steve@steve-NUC9i9QNX:~$ host pfsense.org
        pfsense.org has address 208.123.73.78
        pfsense.org has IPv6 address 2610:160:11:11::78
        pfsense.org mail is handled by 10 aspmx2.googlemail.com.
        pfsense.org mail is handled by 1 aspmx.l.google.com.
        pfsense.org mail is handled by 10 aspmx3.googlemail.com.
        pfsense.org mail is handled by 5 alt1.aspmx.l.google.com.
        pfsense.org mail is handled by 5 alt2.aspmx.l.google.com.
        

        Do you see anything blocked in the firewall log?

        Check the state table in Diag > States when you are trying to ping 8.8.8.8 from a linux client. Do you see the states created? On which interfaces?

        If you don't see any states then check a packet capture on the pfSense LAN.

        If you see no packets then check the ARP table on the client device. Is it still showing the correct MAC for the pfSense LAN?
        If it isn't then you probably have some IP conflict. Though pfSense would normally log that if it can see the arp requests.

        C 1 Reply Last reply Reply Quote 0
        • C
          cde @stephenw10
          last edited by

          @stephenw10
          connection refused before refresh:
          1f7591a2-b0dd-426d-af47-ba43d84de712-image.png

          Nothing is blocked and I do not see any packets in the packet capture.
          The IP and correct mac address are on the ARP table.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @cde
            last edited by Gertjan

            @cde

            Please confirm that you have not installed pfBlockerng(-devel) and that you are not plan to install it.

            Be ware that pfBlockerng will use the same IP for its own need (can be changed) :

            6234c248-0e2e-4886-9dce-7af53454bfe2-image.png

            cd6495ef-1d09-41d9-bedc-f287c9e5795a-image.png

            Unbound (or dnsmasq) is listening ?

            sockstat | grep 'unbound'
            

            Btw : "Connection refused" tells me that unbound did get the DNS request, but unbound was informed to 'refuse' it.
            Nothing special unbound ACLs ?

            eadbd046-cc93-48a8-a4fc-9e9862462007-image.png

            Normally, default, ACL isn't used ...

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            C 1 Reply Last reply Reply Quote 0
            • C
              cde @Gertjan
              last edited by

              @Gertjan i am using unbound and i do not have pfBlockerng

              53a6f607-e089-4665-9415-187a00828596-image.png

              abd092ae-bbcb-446e-a6e4-3357285725c2-image.png

              Btw : "Connection refused" tells me that unbound did get the DNS request, but unbound was informed to 'refuse' it.
              Nothing special unbound ACLs ?

              nothing on ACL
              da99c3f8-67dc-44db-98b7-d086c10fdf2b-image.png

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

                Check the ARP table.

                C 1 Reply Last reply Reply Quote 1
                • C
                  cde @stephenw10
                  last edited by

                  @stephenw10 there is an entry for the system but no internet access. still i am able to ping the pfsense and other systems on the subnet

                  323c1fda-eba3-4f49-bdd7-2dec279138d9-image.png

                  38efaa1f-ca56-43de-bc18-23e39f5c6703-image.png

                  e99f99d8-0e03-40f4-bf04-fb16ea91ca57-image.png

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cde @cde
                    last edited by

                    @stephenw10 on the otherside, the firewall cannot ping the same system
                    2043cbc1-0c64-4864-9bed-925239039d3b-image.png

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

                      No check the ARP table in Kali for the 10.10.10.1 address. It seems at least possible something else is using it and sending the wrong MAC.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        cde @stephenw10
                        last edited by

                        @stephenw10 top is before and bottom is after the refresh.

                        e1f938bf-cce8-4fb2-9b46-73091b341a2a-image.png

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

                          Aha, well there you go. Only one of those MACs is correct. Where is that other MAC coming from?

                          C 1 Reply Last reply Reply Quote 0
                          • C
                            cde @stephenw10
                            last edited by

                            @stephenw10 thank you so much! i found the culprit!

                            on my proxmox i had setup the switch interface to be on the 10.10.10.1/24 and so I had two interfaces with the same IP... you are a god thank you!

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

                              Ah, that would do it! Interesting that it only seemed to affect Linux hosts though. I suspect eventually Windows would also have hit it.

                              C 1 Reply Last reply Reply Quote 1
                              • C
                                cde @stephenw10
                                last edited by

                                @stephenw10 who knows... thanks again! I was going crazy for two weeks now until I decided to reach out to this forum! i was asking coworkers and people on mastodon but all i needed to do in the end was arp-scan and see that there was a conflict with two macs on the same IP. Saddly I cannot upvote you because of my low reputation.

                                For future readers please give stephenw10 an upvote for me <3

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