diff --git a/commands.md b/commands.md index cf8320e..a7b8a2f 100644 --- a/commands.md +++ b/commands.md @@ -90,10 +90,14 @@ ifconfig inet alias # configure IP address alias on interfac ifconfig del # remove IP address from interface route add -net default # add default route route add -net # add a custom route for given network -netstat -rn # display routing table -netstat -an # display all connections /etc/rc.d/netif restart && \ # restart networking and routing after changing the configuration /etc/rc.d/routing restart without rebooting. Execute in tmux or screen session +netstat -rn # display routing table +netstat -an # display all connections +netstat -m # display buffer usage +netstat -Lan # display status of listen queues +sysctl kern.ipc.numopensockets # display number of open sockets + ``` # Firewall