Update commands.md

pull/11/head
John-Paul Bader 2022-02-02 15:41:04 +01:00 committed by GitHub
parent 233e8d3eaa
commit ded4cca3f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -131,6 +131,9 @@ 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 # display current content of hostcache with its parameters per IP
ssh <host> sudo tcpdump \ # Send remote tcpdump output to local wireshark for live analysis
-i em0 -U \
-w - "not port 22" | /path/to/Wireshark -i - -k
```
# Firewall