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
    16 Feb » 20 Feb - Atlanta - GA
  2. LFD331 Developing Linux Device Drivers
    16 Feb » 20 Feb - San Jose - CA
  3. LFS220 Linux System Administration
    16 Feb » 19 Feb - 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