Archive for January 5th, 2018
5
Jan
apache benchmarking
ab -n 1000 -c 10 http://192.168.100.1/
iptables -A INPUT -p tcp –tcp-flags FIN FIN -j DROP
-A OUTPUT -p tcp –tcp-flags RST RST -j REJECT –reject-with tcp-reset
two more falgs PSH and FIN
# cd /proc/sys/net/ipv4
# echo 1 > tcp_orphan_retries
# cat tcp_fin_timeout
# echo 5 > tcp_fin_timeout
#for ((i=2;i<255;i++)); do ip addr add 192.168.100.$i dev eth4 ; done
for ((j=1;j<1000;j++)); do
for ((i=2;i<255;i++)); do
usleep 20000;
echo $i; echo -n “GET / HTTP/1.0″ | nc -w 2 192.168.100.1 80 &
done ;
done
# netstat -nat | awk ‘{print $6}’ | sort | uniq -c | sort -n