Linux.com

Home Learn Linux Linux Answers Hardware How to capture and count pktgen packets ?
Answers
  • u can do it with iptables
    assume that A ip is 10.0.0.1 and B ip is 10.0.0.2
    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 10.0.0.1
    and u can list accounting data with

    #iptables -L INPUT -v

    more information in
    http://www.faqs.org/docs/linux_network/x-087-2-accounting.kernel.config.html
    http://www.frozentux.net/iptables-tutorial/iptables-tutorial.html

    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. LFD331 Developing Linux Device Drivers
    25 Aug » 29 Aug - Virtual
    Details
  2. LFS422 High Availability Linux Architecture
    08 Sep » 11 Sep - Raleigh, NC
    Details
  3. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details

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