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

    Packet Capture: received vs. sent

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 434 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.
    • K
      kj32
      last edited by

      When using Packet Capture, is there a way to distinguish packets received on the interface vs. packets sent?

      I am aware that in some situations this can be readily deduced from addresses in the packets. I have an SG3100 configured as a filtering bridge (works for us). In this configuration it would be handy sometimes to clearly see received vs sent packets.

      Thanks,

      K

      GertjanG JKnottJ 2 Replies Last reply Reply Quote 0
      • GertjanG
        Gertjan @kj32
        last edited by

        @kj32 said in Packet Capture: received vs. sent:

        I am aware that in some situations this can be readily deduced from addresses in the packets.

        No some, but all.
        Ethernet packets always have a source and destination IP address.
        And if they aren't there, as for example ARP doesn't use IP as it is used get get IP info, the local MAC addresses are used. And these are unique on every network. You should know them ?!

        So, if you know the devices on your network, you know the direction of the packets.

        What's left is the special stuff, like when an IP = 0.0.0.0 is used, as these are broadcast packets.

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

        1 Reply Last reply Reply Quote 0
        • JKnottJ
          JKnott @kj32
          last edited by

          @kj32 said in Packet Capture: received vs. sent:

          When using Packet Capture, is there a way to distinguish packets received on the interface vs. packets sent?

          Filter on the MAC address. Everything leaving should have the same MAC. The filter can either select or reject that MAC.

          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...

          K 1 Reply Last reply Reply Quote 0
          • K
            kj32 @JKnott
            last edited by

            @JKnott

            Er, no. That's not how bridges work. Bridges preserve the mac address of the previous sender.

            Regards,

            K

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

              You can still see the source and destination MACs so if you know where those are you can see which way across the bridge the packet is moving.

              If you run ifconfig bridge0 addr you can see the MAC addresses learned by the bridge and which interface they are on.

              K 1 Reply Last reply Reply Quote 0
              • K
                kj32 @stephenw10
                last edited by

                @stephenw10

                Thanks, I did not know about that.

                1 Reply Last reply Reply Quote 0
                • K
                  kj32
                  last edited by

                  OK, I take it that the answer to my question is 'no'. That's fine. The technique suggested by stephenw10 certainly allows me to confirm which port on the bridge is connected where. Or, I can go on-site and verify which bridge port is connected at which end. (The bridge is deliberately configured so that the ports are symmetric, and it will work if the upstream cable and downstream cable are swapped.)

                  I stand by this assertion, however: "In this configuration it would be handy sometimes to clearly see received vs sent packets." Not essential, there are obviously work-arounds. But handy.

                  1 Reply Last reply Reply Quote 0
                  • JKnottJ
                    JKnott @kj32
                    last edited by

                    @kj32

                    Sorry, I missed the bridge part.

                    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
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      A bridge interface is tricky because there is no sent/received really. Every packet crosses it. Unless the interface is assigned in which case pfSense can send/receive from it and will use the generate bridge MAC.

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