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

    Wireshark - why I can only see outgoing traffic

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    17 Posts 5 Posters 2.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.
    • J
      johnmen
      last edited by johnmen

      Hi there,

      This is probably more related to SPAN port for network monitor hence I am posting it here.

      I am currently doing some network monitoring by using Wireshark with a SPAN port configured on the LAN interface of a pfSense firewall box. The intention is to capture all traffics originated from the LAN to the Internet and the returning traffics.

      However, no matter how I tried, I can only see traffic originating from hosts on LAN, I cannot see any returning traffic back to those hosts.

      Note that Wireshark by default uses "promiscuous mode" which enables us to see traffics not destined to our monitoring host. In my case turning on or off this "promiscuous mode" makes no differences at all.

      I give two examples here, DHCP and SIP Register conversations.

      For DHCP conversation, I can capture the DHCP discover and request packets, but no DHCP offer or ack packets ever been captured. DHCP works fine on my network hence I know my hosts did get the DHCP offer and ack packets from DHCP server.
      DHCP conversations.png

      For SIP register conversation, I can capture the 1st SIP register packet and 2nd register packet that contains authorisation portion (username, password etc.) but I didn't see any SIP challenge packets that were sent from SIP server to SIP clients. SIP clients on my network work fine hence I know they did get the SIP challenge packet and that is why they would send out the 2nd register packet that returns a correct response to SIP's challenge.
      SIP conversation.png

      I tried this capture on three different flavours of Linux including the Kali Linux running live off USB, and tried Wireshark on a Windows 10 laptop. The result is consistent, I do not see any returning traffic at all!

      I started suspecting the small computer box that runs pfSense is having fault. But as soon as I remove the port that was configured as SPAN port and join it to the LAN bridge it started working fine. Or at least I cannot find anything wrong other than cannot capture returning traffic. Note that I tried using all 3 available LAN ports to be the SPAN port and still the same issue. Hence this is not port specific.

      Regards.

      J 1 Reply Last reply Reply Quote 0
      • J
        johnmen @johnmen
        last edited by

        Update:
        Last night I tried network capture with Wireshark on a Windows 10 laptop at a different site and saw the exact same behaviour, only seeing the outgoing traffic originiated from LAN hosts, not seeing the returning traffic from the Internet. At the other site I also have a pfSense firewall box that runs on exactly the same hardware. The pfSense version on this box is 2.4.4 p2, slightly older than the site A's pfSense.

        However, I also tried a Wireshark remote capture that uses SSH tunnel to get the TCPdump data from pfSense box, and this time the issue is gone. I can see both outgoing and incoming traffics. Note that this is the TCPdump running locally on the pfSense box and feeding the captured data through SSH tunnel to my laptop.

        Now I started to suspect the firewall hardware is the culprit for such strange issue. Not sure if I can verify my thinking somehow.

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

          i've search the internet, the only thing that they suggest is to check for firewall/av or anything that can interfere with pcap...
          so maybe you have additional packages on pfSense that can interfere with that?
          i have a SPAN port configured on my cisco to a raspberry with wireshark (my raspberry have a dedicated usb network card up but without ip) so i don't know where could be your problem, no one is answering,here, which means they don't have an answer so i put my 2 cents

          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
          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.

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

            @johnmen said in Wireshark - why I can only see outgoing traffic:

            with a SPAN port configured on the LAN interface of a pfSense firewall box

            How exactly do you have this setup? Your spanning the port on your switch that is connected pfsense?

            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

            J 1 Reply Last reply Reply Quote 0
            • NogBadTheBadN
              NogBadTheBad @johnmen
              last edited by NogBadTheBad

              @johnmen said in Wireshark - why I can only see outgoing traffic:

              Update:

              Now I started to suspect the firewall hardware is the culprit for such strange issue. Not sure if I can verify my thinking somehow.

              Err your network just wouldn't work if this was the case, you could verify this by doing a packet capture on pfSense itself.

              Screenshot 2019-09-27 at 15.08.50.png

              What switch are you using?

              https://wiki.wireshark.org/CaptureSetup/Ethernet

              Andy

              1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

              J 1 Reply Last reply Reply Quote 0
              • J
                johnmen @NogBadTheBad
                last edited by johnmen

                @NogBadTheBad
                This is funny now that you mentioned "packet capture on pfSense itself". I have tried this built-in function for many times over the years of using pfSense. 5 out of 10 capture sessions I would get nothing from the capture. I always wonder if the capture function is not working or not. Having said that when it captures traffic it looks completely normal. Therefore I didn't dig any deeper into this.

                In terms of switch, I am not using any switch. The firewall hardware comes with 4 ports, one used as WAN, two as LAN ports bridged into a LAN interface, the last one as SPAN port. This hardware uses Intel WG82583 gigabit network chip, which I assume to be pretty robust. My monitoring laptop connects to the SPAN port to try to capture traffic sent from the LAN bridge.

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

                  I use the capture feature ALL the time.. it works just fine.

                  You still have not stated how you "spanned" this port? Sounds like you did it on some bridge port actually on pfsense?

                  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 1
                  • J
                    johnmen @johnpoz
                    last edited by

                    @johnpoz
                    My setting is as follows, note that there is no switch or hub involved here.

                    My pfSense firewall hardware box has 4 ports, port 1 configured as WAN, port 2 and 3 configured as members of a bridge called LAN, my internal network connects to these two ports. Port 4 configured as SPAN port member of the LAN bridge. This is the setting you can do when going into the bridge configuration on pfSense webGUI. In other words, my SPAN port is part of the pfSense firewall hardware.

                    My monitoring laptop connects to the SPAN port directly. My internal hosts connect to either port 2 or 3. my WAN port connects to a fibre connection's ONT (On-premises Network Terminal).

                    1 Reply Last reply Reply Quote 0
                    • J
                      johnmen @kiokoman
                      last edited by

                      @kiokoman
                      Thanks for chiming in. I run pfSense vanilla, no additional packages installed at all.

                      1 Reply Last reply Reply Quote 0
                      • dotdashD
                        dotdash
                        last edited by

                        This may be an issue with using the span port on the bridge, which I expect is rarely done. If not using an actual switch, I just capture direct from the firewall, and haven't ever (except for version 1.2.3) had any trouble with it. Here's a similar problem on stock FreeBSD (well, five years ago stock FreeBSD)
                        https://forums.freebsd.org/threads/span-port-only-sees-incoming-side-of-traffic.47591/

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

                          this also remind me of another 3d of last week where we was unable to make dhcpv6 working on a l2 bridge, we see requests but not the answer

                          ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                          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
                          • J
                            johnmen @dotdash
                            last edited by

                            @dotdash
                            I am not aware of anyway other than inside a bridge where you can setup a SPAN port on pfSense. The port configuration itself on pfSense has very limited options, certainly does not have SPAN option to be configured.

                            1 Reply Last reply Reply Quote 0
                            • dotdashD
                              dotdash
                              last edited by

                              My point was that what you are doing is probably an edge case, most use a managed switch, or capture as needed using the Diagnostics, packet Capture function. There could well be an issue with the way pfSense or FreeBSD does the span port, but you may not find another user here who has tried to do what you are doing. In the linked post, he put the ip on the physical port, not the bridge, but I haven't tried to see if that configuration is possible via the gui.

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                johnmen @dotdash
                                last edited by johnmen

                                @dotdash
                                You may be right in that not many people use port on pfSense firewall itself to do the network capture. Although I think the "opt" port that comes with many firewall including Netgate SG-1100 is meant for something like this.

                                In regards to the post you linked it looks similar to my issue but there is one important difference: the TCPdump on my pfSense box can in fact capture traffic from both directions. In other words, issue only exists with physical SPAN port in my case.

                                Update:
                                Err, I was wrong. The post you linked, the guy only did TCPdump on the SPAN port, whereas I did the TCPdump on the bridge. We tapped on the different interfaces. I shall try tapping on to the SPAN port and see how it goes.

                                Update again:
                                Alright, I have just done the TCPdump experiment. What I found is that if I dump traffic from the network port that is configured as the SPAN port inside the LAN bridge, I see nothing! Literally no traffic was captured. Dumping from other network ports such as "bridge0" or "em1" (one of the nics on my firewall box), I could capture traffic without any issue.

                                This is different from capturing traffic by physically connecting a Cat5 cable to the SPAN port to my monitoring laptop's NIC. Physical capture works with one direction traffic captured only, tcpdump on the same network port remotely however captured nothing.

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

                                  @johnmen said in Wireshark - why I can only see outgoing traffic:

                                  Although I think the "opt" port that comes with many firewall including Netgate SG-1100 is meant for something like this.

                                  No... Not sure where you would get that idea ;)

                                  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
                                  • NogBadTheBadN
                                    NogBadTheBad
                                    last edited by NogBadTheBad

                                    If you are doing a packet capture on port that is a bridge have you tweaked the kernel settings as per:-

                                    https://docs.netgate.com/pfsense/en/latest/interfaces/interface-bridges.html

                                    net.link.bridge.pfil_member
                                    net.link.bridge.pfil_bridge

                                    Andy

                                    1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      johnmen @NogBadTheBad
                                      last edited by

                                      @NogBadTheBad
                                      Thanks for pointing this out. I have tried setting the net.link.bridge.pfil_bridge to 1 and tested the network capture, sadly still the same result. Therefore this kernel setting doesn't seem to be related. Remember I mentioned remote capturing works properly, and that was done against "bridge0" bridge interface instead of member interfaces whilst the net.link.bridge.pfil_bridge was the default value 0.

                                      Regards.

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