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

    Strange VLAN icmp thing on hyper-v (only pfsense not replying)

    L2/Switching/VLANs
    4
    17
    1.3k
    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.
    • N
      nblazincic
      last edited by

      Short disc: Pfsense not replying to icmp over vlan interface in hyper-v setup, only from VM's from other host

      Environment:
      2 Hyper-V host, directly connected (no switch)
      One host (Host1) running pfsense with multiple VLANs, I have trunking configured on one virutal (hyper-v) interface. I have no issues on this host.

      VM's from other host (Host2) can ping other VM's on same VLAN (no matter on which host they are), but are unable to ping pfsense itself (that is on Host1)

      Funny thing is, I can see arp entries on both vm's and pfsense. I can also get IP address from pfsense. But no ICMP ping, no routing to/from other vlans or internet.
      I triple checked my firewall setup, I tried to change VLANs, I tried pinging from other host. So any ping from other host to pfsense is a no go, but ping to other servers on same vlan/subnet works.
      Aditionally, same thing is when I use native vlan (ie. I ping phyisical interface of psense (not tagged) from Host2. No ping, arp-s are populated, but can ping Host1 (also not on vlan)

      Cant figure this out.

      Thank you very much guys/girls.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by A Former User

        Do you have spanning tree protocol enabled on (edit) the passthrough interfaces? Edit, sorry is late over here for me and a headache. The hyper v virtual switch as well before I edited it the first time

        JKnottJ 1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @A Former User
          last edited by

          @sparkyMcpenguin

          Spanning tree has nothing to do with ICMP or ARP. In fact, it has nothing to do with IP. It's a layer 2 protocol for avoiding loops.

          PfSense running on Qotom mini PC
          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
          UniFi AC-Lite access point

          I haven't lost my mind. It's around here...somewhere...

          ? 1 Reply Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8
            last edited by

            i can't help with hyper-v but maybe if you show us your firewall rules we can "quadruple" check if they are good ☺

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            N 1 Reply Last reply Reply Quote 0
            • ?
              A Former User @JKnott
              last edited by

              @JKnott I mentioned STP only because in my network environment with vlan traffic, I needed to leave it enabled on my physical switch otherwise I would eventually encounter.. loops.. it broke network connectivity until reenabling STP (I attribute this more to unifi controller software for the time being, considering renaming the alias of each port also completely borked the install. I just went through this 3 days ago

              JKnottJ 1 Reply Last reply Reply Quote 0
              • N
                nblazincic @kiokoman
                last edited by

                @kiokoman said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                i can't help with hyper-v but maybe if you show us your firewall rules we can "quadruple" check if they are good ☺

                29827b94-3222-4844-9cc5-5e28f4a1d1db-image.png

                N 1 Reply Last reply Reply Quote 0
                • kiokomanK
                  kiokoman LAYER 8
                  last edited by

                  well the first rule permit everything 🤷

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                  1 Reply Last reply Reply Quote 0
                  • N
                    nblazincic @nblazincic
                    last edited by

                    @nblazincic First one should do it right ?
                    Don't know how dhcp is working but ping not.

                    ? 3 Replies Last reply Reply Quote 0
                    • kiokomanK
                      kiokoman LAYER 8
                      last edited by

                      maybe there is a solution here ? https://serverfault.com/questions/805167/hyper-v-cannot-ping-vm-from-host

                      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                      Please do not use chat/PM to ask for help
                      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @nblazincic
                        last edited by A Former User

                        @nblazincic said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                        @nblazincic First one should do it right ?
                        Don't know how dhcp is working but ping not.

                        Is the virtual switch an"external switch"? Is the host OS passing vlan traffic? Is the host OS routing through the (if external) switch as well?

                        By host OS I also mean the hypervisor

                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @A Former User
                          last edited by

                          @sparkyMcpenguin said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                          @nblazincic said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                          @nblazincic First one should do it right ?

                          By host OS I also mean the hypervisor

                          Sorry, referring to your (host2)

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @nblazincic
                            last edited by

                            @nblazincic said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                            @nblazincic First one should do it right ?
                            Don't know how dhcp is working but ping not.

                            Also by default, windows firewall blocks icmp. Check windows firewall settings (hyperv)

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @nblazincic
                              last edited by A Former User

                              @nblazincic
                              on your host2 if ICMP is blocked by the host firewall (windows firewall hyperv - this specific case i do not experience personally because the windows clients on my network don't use windows firewall, but a third party av solution. with that solution, it completely disables windows firewall, allowing ICMP traffic, but blocking excessive ICMP or other things (bitdefender av with ips enabled)

                              from my experience and training with hyperv, more so with server2016, if that's the firewall on the hypervisor, you need to check ICMP settings on its firewall. your pfsense seems fine IMO

                              edit additional: hyperv is a type1 hypervisor, so once enabled even the host os is now a vm (just a tid bit probably not exactly helpful)

                              N 1 Reply Last reply Reply Quote 0
                              • JKnottJ
                                JKnott @A Former User
                                last edited by

                                @sparkyMcpenguin

                                You only need STP to prevent loops, as you experienced. Otherwise, it has absolutely no effect. It also has nothing to do with VLANs. Does the OP have any loops? Bottom line, it should be enabled, but I doubt it has anything to do with the problem. If loops were the issue, there would be a lot of traffic going around the loop and hogging the bandwidth.

                                PfSense running on Qotom mini PC
                                i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                                UniFi AC-Lite access point

                                I haven't lost my mind. It's around here...somewhere...

                                1 Reply Last reply Reply Quote 0
                                • N
                                  nblazincic @A Former User
                                  last edited by

                                  @sparkyMcpenguin said in Strange VLAN icmp thing on hyper-v (only pfsense not replying):

                                  @nblazincic
                                  on your host2 if ICMP is blocked by the host firewall (windows firewall hyperv - this specific case i do not experience personally because the windows clients on my network don't use windows firewall, but a third party av solution. with that solution, it completely disables windows firewall, allowing ICMP traffic, but blocking excessive ICMP or other things (bitdefender av with ips enabled)

                                  from my experience and training with hyperv, more so with server2016, if that's the firewall on the hypervisor, you need to check ICMP settings on its firewall. your pfsense seems fine IMO

                                  edit additional: hyperv is a type1 hypervisor, so once enabled even the host os is now a vm (just a tid bit probably not exactly helpful)

                                  Firewall is disabled, but host machine is treated the same way as VM. So no firewall rules on host2 can prevent vm from comunicatting. Host is pluged in VM switch as any other VM (simple setup, one vm-switch, host and vm's are using same switch).

                                  Additionally, if I migrate VM from host1 to host2, that same VM also can not ping its gateway. Same thing happens on native VLAN.

                                  What is intersting, if do a packet capture on pfsense interface, I dont even get packet to it, but DHCP services functions normally.

                                  I already tried to recreate vswitch, remove host from networking. Will try to update host2 to see if that helps.

                                  ? 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @nblazincic
                                    last edited by

                                    @nblazincic you also said "directly connected", I assume this to mean machine to machine, no switch.

                                    You also said static, is it possibly a gateway IP configuration issue in the adapter settings for each machine? (I assume this is set up properly or not needed to be set up as well) just trying to rule out things not mentioned

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by

                                      i just saw this, maybe related?:

                                      @kiokoman said in Allowing ICMP/Ping From WAN to Machine On LAN for Ptunnel:

                                      i tested it and it work for me, what machine is it? windows?
                                      if it's windows maybe you need to do this
                                      https://forum.netgate.com/post/895254

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