meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
sw:opnsense:shell [2019/03/26 07:31] – niziak | sw:opnsense:shell [2020/05/25 17:04] (current) – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Shell ====== | ||
+ | |||
It is based on FreeBSD | It is based on FreeBSD | ||
+ | |||
+ | ====== OPNSense custom ====== | ||
+ | <code bash> | ||
+ | pkg update | ||
+ | |||
+ | |||
+ | pkg upgrade | ||
+ | pkg upgrade dnsmasq | ||
+ | |||
+ | opnsense-update | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ===== shell menu ===== | ||
+ | <code bash> | ||
+ | # opnsense-shell | ||
+ | |||
+ | 0) Logout | ||
+ | 1) Assign interfaces | ||
+ | 2) Set interface IP address | ||
+ | 3) Reset the root password | ||
+ | 4) Reset to factory defaults | ||
+ | 5) Power off system | ||
+ | 6) Reboot system | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | ====== webgui ====== | ||
+ | |||
+ | <code bash> | ||
+ | / | ||
+ | / | ||
+ | cat / | ||
+ | |||
+ | # Reinitialize circular log file (clog) after size change in webui: | ||
+ | / | ||
+ | |||
+ | </ | ||
====== firewall ====== | ====== firewall ====== | ||
+ | |||
+ | <code bash> | ||
+ | ipfw -a list | ||
+ | pftop | ||
+ | |||
+ | pfctl -vvsr | ||
+ | |||
+ | # Routing table | ||
+ | netstat -nr | ||
+ | |||
+ | </ | ||
+ | |||
+ | ====== network interfaces ====== | ||
+ | |||
+ | <code bash> | ||
====== hardware related ====== | ====== hardware related ====== | ||
Line 19: | Line 76: | ||
</ | </ | ||
- | **camcontrol** - CAM control program | + | ===== benchmark ===== |
<code bash> | <code bash> | ||
- | camcontrol devlist | + | # seek time and transfer rates benchmark |
+ | diskinfo -tv /dev/cd0 | ||
</ | </ | ||
+ | |||
+ | ===== networking ===== | ||
+ | <code bash> | ||
+ | sockstat -4 -l | ||
+ | </ | ||
+ | |||
+ | ===== system / ps ===== | ||
+ | <code bash> | ||
+ | # top with command line names | ||
+ | top -a | ||
+ | |||
+ | swapinfo | ||
+ | |||
+ | pkg install sysinfo | ||
+ | sysinfo mem | ||
+ | sysinfo storage | ||
+ | |||
+ | iostat -x 1 | ||
+ | |||
+ | mount -t procfs proc /proc | ||
+ | |||
+ | $ fetch https:// | ||
+ | ## or use curl command ## | ||
+ | ## $ curl -O https:// | ||
+ | $ sh freebsd-memory.sh | ||
+ | |||
+ | # Check who is performing huge disk IO: run top and switch to ' | ||
+ | </ | ||
+ | |||
+ |