1
0
mirror of https://github.com/hukl/freebsd-toolbox.git synced 2025-11-20 03:08:43 +01:00

Update commands.md

This commit is contained in:
John-Paul Bader
2014-05-17 13:26:11 +02:00
parent b2b6131435
commit c02d86b05e

View File

@ -90,10 +90,14 @@ ifconfig <iface> inet <ip/mask> alias # configure IP address alias on interfac
ifconfig <iface> del <ip> # remove IP address from interface
route add -net default <gw_ip> # add default route
route add -net <ip/mask> <gw_ip> # 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