I wanted to simulate a situation where when I send some packets say ping x.x.x.x, some of my packets outgoing from my Linux box should be dropped out and number of dropped packets should be then captured through Tx
dropped packets in ifconfig
tool.
I know some of option/rule that we can provide in iptables
but not sure about them.
Can anybody let how to simulate packet drop and dropped packet capture in Linux?