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

    Packet Capture - Leave Page - Still Running

    2.0-RC Snapshot Feedback and Problems - RETIRED
    3
    7
    1.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.
    • T
      tnelson
      last edited by

      Greetings all-

      I'm running 2.0-RC1 on i386. If I start a capture via 'Diagnostics' -> 'Packet Capture', then leave the page and come back to the capture page, it looks as though there is no capture currently running. Instead of displaying a 'Stop' button, it shows the usual 'Start' and 'Download Capture' options. The only way to stop the capture is to kill it by PID (via shell or web command).

      There was a similar capture issue reported here, but not quite the same:

      http://forum.pfsense.org/index.php/topic,35523.0.html

      Thoughts?

      –Tim

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        Is it actually still running? Sounds like it just hit the packet count limit and stopped itself, and that maybe you're killing the tcpdump on pflog (which is firewall logs, has nothing to do with packet capture). Confirmed it does work correctly.

        1 Reply Last reply Reply Quote 0
        • T
          tnelson
          last edited by

          I always set the packet count on my captures to 0. I just retested to confirm. I started a capture with packet count at 0, went to another page (ARP tables, not overly important, just providing details…). I went back to the packet capture page and it appears as though there is no capture running. However, when running 'ps aux | grep tcpdump', I see two processes:

          $ ps ax | grep tcpdump | grep -v grep
          24522  ??  S      0:00.15 /usr/sbin/tcpdump -i pppoe0 -s 0 -w /root/packetcaptu
          19022  v0- S      0:21.34 /usr/sbin/tcpdump -s 256 -v -l -n -e -ttt -i pflog0
          

          So, we have the regular pflog process, AND, the capture process I started on my WAN (pppoe0).

          Please let me know if you need further information, and/or how I can help further.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            Do you have the same problem if you run a capture on LAN or another interface? It could be related to how it's looking up the interface related to pppoe0 when trying to find its tcpdump process.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              Also, you should be on the most recent snapshots to eliminate any other potential issues, we have committed many fixes to the packet capture page since the official RC1 dropped, you could be hitting a bug that has already been fixed (especially since we can't reproduce it).

              https://github.com/bsdperimeter/pfsense/commits/master/usr/local/www/diag_packet_capture.php

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • T
                tnelson
                last edited by

                Testing on a different interface (LAN which is fxp1/VLAN192) proved the same behavior.

                But yes, very good point. I'll upgrade to the latest snapshot to see if the issue is fixed. I have a feeling this commit could be relevant:

                https://github.com/bsdperimeter/pfsense/blob/0c951d9bee2af9a48f297b90a11c9b3911c4ca05/usr/local/www/diag_packet_capture.php

                –Tim

                1 Reply Last reply Reply Quote 0
                • T
                  tnelson
                  last edited by

                  My apologies for the noise… this issue appears to be resolved after updating to:

                  2.0-RC2 (i386)
                  built on Thu May 19 19:44:17 EDT 2011

                  Thanks!

                  --Tim

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