From 24ef37ebb6782e130ec5de285ecd01b7521a1be8 Mon Sep 17 00:00:00 2001 From: John-Paul Bader Date: Wed, 21 May 2014 08:09:04 +0200 Subject: [PATCH] Update commands.md --- commands.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.md b/commands.md index 9d31689..fecdb5c 100644 --- a/commands.md +++ b/commands.md @@ -98,10 +98,11 @@ netstat -rn # display routing table netstat -an # display all connections netstat -m # display buffer usage netstat -Lan # display status of listen queues +netstat -s # display extensive statistics per protocol (use -p tcp to only show tcp) sysctl kern.ipc.numopensockets # display number of open sockets vmstat -z | egrep "ITEM|tcpcb" # number of hash table buckets to handle incoming tcp connections increase net.inet.tcp.tcbhashsize if hitting the limit -sysctl net.inet.tcp.hostcache.list # show current content of hostcache with its parameters per IP +sysctl net.inet.tcp.hostcache.list # display current content of hostcache with its parameters per IP ``` # Firewall