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

    Strange behaviour for ICMP (ping) rule on WAN interface

    General pfSense Questions
    3
    92
    14.9k
    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.
    • M
      mauro.tridici @mauro.tridici
      last edited by

      @stephenw10 I would like to ask you another important question:

      what is the gateway I should set on the VM/host belonging to the "public LAN"?

      y.y.y.1 that is the router IP address or y.y.y.2 that is the pfsense WAN address?
      in my case, which is the upstream gateway I should set in the VM network configuration file?

      Thank you in advance,
      Mauro

      1 Reply Last reply Reply Quote 0
      • M
        mauro.tridici @stephenw10
        last edited by

        @stephenw10 mmmh no, I didn't move the bridge filtering. I simply added the interfaces to the bridge.

        1 Reply Last reply Reply Quote 0
        • M
          mauro.tridici @stephenw10
          last edited by

          @stephenw10

          Do you see the client at .5 ARPing for the gateway at .1?

          And you don't see the gateway responding?

          Yes, but please note that I set the pfsense WAN address "y.y.y.2" as gateway for the VM.
          I hope it is the right choice...

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

            No the VM should use the main gateway at .1 since it's in that subnet.

            M 1 Reply Last reply Reply Quote 0
            • M
              mauro.tridici @stephenw10
              last edited by

              @stephenw10 ok, thank you. I changed the VM gateway. Now, it is pointing to y.y.y.1 IP address. I started a "ping y.y.y.1" from VM and the output now is:

              From y.y.y.5 icmp_seq=1 Destination Host Unreachable
              From y.y.y.5 icmp_seq=2 Destination Host Unreachable
              From y.y.y.5 icmp_seq=3 Destination Host Unreachable
              ...

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

                Hmm, do you see an ARP entry for the gateway on the VM?

                I would expect to see 'host is down' if ARP was failing. That error seems more like a routing issue which shouldn't occur inside the same subnet. Are you sure the subnet mask is correct there?

                M 1 Reply Last reply Reply Quote 0
                • M
                  mauro.tridici @stephenw10
                  last edited by

                  @stephenw10

                  Hmm, do you see an ARP entry for the gateway on the VM?

                  How can check that?
                  I executed the "arp -a" command on the VM and the result is:
                  gateway (y.y.y.1) at <incomplete> on ens192

                  The subnet mask seems to be ok.

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

                    Ok, so it isn't seeing ARP replies from the gateway. Are there any complete ARP entries there beyond it's own IP? Presumably it has the pfSense y.y.y.2 IP because it does send ICMP packets to that.

                    The next thing I would do then is run a pcap on the pfSense WAN and see traffic is there. It should have the ARP requests from the VM.

                    Steve

                    M 2 Replies Last reply Reply Quote 0
                    • M
                      mauro.tridici @stephenw10
                      last edited by

                      @stephenw10

                      Ok, so it isn't seeing ARP replies from the gateway. Are there any complete ARP entries there beyond it's own IP? Presumably it has the pfSense y.y.y.2 IP because it does send ICMP packets to that.

                      Mmmh, unfortunately no. After changing the VM gateway from y.y.y.2 to y.y.y.1, no complete ARP entries are listed.
                      Using the old (but wrong) configuration (with y.y.y.2 as gateway for the VM), I can see the complete ARP entry for y.y.y.2 IP.

                      The next thing I would do then is run a pcap on the pfSense WAN and see traffic is there. It should have the ARP requests from the VM.

                      Let's try! I executed the "ping y.y.y.1" from the VM and I captured the pcap file on WAN interface, IPv4, Any protocol, host address y.y.y.0/25 (at the end, I revealed the subnet...). If I'm not wrong the .5 IP is not listed in pcap. I will send you the subnet details in a private message.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mauro.tridici @stephenw10
                        last edited by

                        @stephenw10 packetcapture.cap

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

                          That pcap spans only 2.2 seconds. You will probably need to filter it by something. Here what we are looking for is ARP requests from .5 for .1 so I'd filter for just ARP in initially.
                          Also run the pcap on the Public LAN interface too to make sure they are arrivign there.

                          The bridge should just pass those.

                          Also you should still be able to try to ping the .2 address and see the ARP table populated for that.

                          Steve

                          M 2 Replies Last reply Reply Quote 1
                          • M
                            mauro.tridici @stephenw10
                            last edited by

                            @stephenw10 ok, I'm going to do it soon. How can I filter for ARP? I'm using the pfsense GUI. Do you think that I should do it using the command line?

                            1 Reply Last reply Reply Quote 0
                            • M
                              mauro.tridici @stephenw10
                              last edited by

                              @stephenw10

                              In attachment the pcap files.

                              em0 is the wan interface
                              em6.90 is the lan interface

                              thanks,
                              Mauro

                              em0_wan.pcap

                              em6.90_lan.pcap

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

                                Ok, so we can see the VM at .5 ARPing for the gateway at .1 and on both interfaces, both sides of the bridge.
                                But the gateway is not responding.

                                What is the upstream device at .1? It has a VMWare MAC address.

                                M 1 Reply Last reply Reply Quote 1
                                • M
                                  mauro.tridici @stephenw10
                                  last edited by

                                  @stephenw10 many thanks for your patience and analysis.

                                  Ok, so we can see the VM at .5 ARPing for the gateway at .1 and on both interfaces, both sides of the bridge.
                                  But the gateway is not responding.

                                  The upstream device at .1 is a VMware virtual machine that acts as virtual router (is a Zeroshell instance that has to be replaced very soon). It works as expected for the other pfsense interfaces, but it is not working for this kind of needs.

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

                                    Can you check it's ARP table? Does it have an entry for .5?

                                    Can you run a pcap on there and see if the ARP requests from .5 are arriving?

                                    Either something is filtering them or it's just not or unable to respond.

                                    Steve

                                    M 1 Reply Last reply Reply Quote 0
                                    • M
                                      mauro.tridici @stephenw10
                                      last edited by

                                      @stephenw10

                                      Can you check it's ARP table? Does it have an entry for .5?

                                      I just checked the arp table, but I can't see an entry for .5 (please, take a look at file arp_table.txt

                                      Can you run a pcap on there and see if the ARP requests from .5 are arriving?

                                      I can create a pcap, but I captured the output of "tcpdump -I ETH02 arp" (please, take a look at file arp_requests.txt)

                                      Either something is filtering them or it's just not or unable to respond.

                                      I think there is no filter on .5 IP address.

                                      arp_requests.txt

                                      arp_table.txt

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

                                        Hmm Ok. So we don't see the ARP requests from the VM at .5 arriving at the gateway. Even though they are on both interfaces in the bridge in pfSense.

                                        However we do see the gateway ARPing for the .5 IP address and those packets never make it to pfSense.

                                        pfSense is also in VMWare here?
                                        It looks like something in the hypervisor filtering that traffic to me. The interfaces not in promiscuous mode maybe.

                                        M 1 Reply Last reply Reply Quote 0
                                        • M
                                          mauro.tridici @stephenw10
                                          last edited by

                                          @stephenw10

                                          Hmm Ok. So we don't see the ARP requests from the VM at .5 arriving at the gateway. Even though they are on both interfaces in the bridge in pfSense.
                                          However we do see the gateway ARPing for the .5 IP address and those packets never make it to pfSense.

                                          Yes, you are right.

                                          pfSense is also in VMWare here?

                                          Yes, virtual router and pfsense are on the same VMware hypervisor.
                                          So, if the problem is that the shared virtual nic has to be in promiscuous mode, we can try to make a single change for both the service virtual machines.

                                          It looks like something in the hypervisor filtering that traffic to me. The interfaces not in promiscuous mode maybe.

                                          And I think that you are almost there because in the kernel log of the virtual router I see the following lines:

                                          16:22:07 [9966861.866976] device ETH02 entered promiscuous mode
                                          16:23:35 [9966950.185907] device ETH02 left promiscuous mode
                                          18:48:06 [9975620.740132] device ETH02 entered promiscuous mode
                                          18:49:13 [9975688.367374] device ETH02 left promiscuous mode
                                          18:49:49 [9975724.468174] device ETH02 entered promiscuous mode
                                          18:51:11 [9975806.502600] device ETH02 left promiscuous mode
                                          18:52:07 [9975861.736268] device ETH02 entered promiscuous mode
                                          18:56:19 [9976114.647032] device ETH02 left promiscuous mode

                                          Ad the ETH02 is the involved interface (on the router side).
                                          Do you think that I can simply try to enable the promiscuous mode on the virtual switch or should I do something also both on pfsense and router "operating system"?

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

                                            It's more likely to be a settings on the pfSense WAN virtual NIC because that is trying to send traffic using a different MAC address and that's probably filtered.

                                            Thought that doesn't explain why it doesn't see the broadcast ARP requests for .5 from the gateway. Perhaps those simply weren't happening during that capture.

                                            Steve

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