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
    4 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. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
  2. LFS520 OpenStack Cloud Architecture and Deployment
    08 Sep » 11 Sep - Virtual
  3. LFD320 Linux Kernel Internals and Debugging
    15 Sep » 19 Sep - 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