Home Learn Linux Linux Answers Hardware How to capture and count pktgen packets ?
  • u can do it with iptables
    assume that A ip is and B ip is
    ur pkgen sends packets to udp port number 15000

    add rule to the input chain of the B machine

    #iptables -A INPUT -p udp --dport 15000 -s
    and u can list accounting data with

    #iptables -L INPUT -v

    more information in

    Answered by medhat
    5 years ago
    0 2
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Hardware

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    05 Jan » 09 Jan - Virtual
  2. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
  3. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual

View All Upcoming Courses

Community Answers - Search

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board