iptables-counter.sh
For measuring incoming and outgoing traffic. Used to measure nmap packets sent during scan
#!/bin/bash
#reset all counters and iptables rules
iptables -Z && iptables -F
#measure incoming traffic to 10.11.1.230
iptables -I INPUT 1 -s 10.11.1.230 -j ACCEPT
#measure outgoing traffic to 10.11.1.230
iptables -I OUTPUT 1 -d 10.11.1.230 -j ACCEPT#!/bin/bash
for i in `seq 1 99999`; do
date > iptable_nmap_UDP.log
iptables -vn -L >> iptable_nmap_UDP.log
sleep 5m
done
Last updated