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. LFD320 Linux Kernel Internals and Debugging
    03 Nov » 07 Nov - Virtual
  2. LFS416 Linux Security
    03 Nov » 06 Nov - Virtual
  3. LFS426 Linux Performance Tuning
    10 Nov » 13 Nov - 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