Trace: tips_openbsd
  • Restart service di OpenBSD, misal mau restart sshd
kill -HUP `cat /var/run/sshd.pid`
  • Menambahkan variabel PKG_ATH
export PKG_PATH=ftp://repo.ugm.ac.id/openbsd/4.4/packages/
  • Install paket
pkg_add -iv nama_paket (interactive, verbose)
  • Mengetahui default gw
route show | grep default

atau

netstat -rnf inet | grep default
  • Network Config

Interface

/etc/hostname.vr0 (sample)

Gateway

/etc/mygate
  • Menampilkan IP gateway
route -n show -inet

atau

netstat -rn
  • Resolve Domain

File konfigurasi DNS resolution terdapat pafa file /etc/resolve.conf, contoh isi file resolver

nameserver 172.xx.xx.xx
  • Kill process
 ps ax | grep process_name | awk '{print$1}' | xargs kill -9
  • Cek traffic yang melewati interface, pertama install ifstat
pkg_add -iv ifstat

Untuk melihat report gunakan perintah berikut

ifstat -TAb 5
  • View swap usage
swapctl -l

Set arp statis on network interface

arp -s 10.xx.xx.xx 00:0b:6a:xx:xx:xx:xx permanent
  • Update OpenBSD packages
pkg_add -ui -F update -F updatedepends

openbsd terminal type

vt100
  • Reseting pf firewall automatically
/sbin/pfctl -f /etc/pf.conf && sleep 160 && /sbin/pfctl -d
  • System statistic Monitoring dengan libstatgrab
pkg_add -iv libstatgrab

Untuk menjalankan

/usr/local/bin/saidar
  • Interface Statistic dengan ifstat
pkg_add -iv ifstat

untuk menjalankan

ifstat -i rl0 -TAb 5
  • OpenBSD Mariadb-server install
pkg_add -iv mariadb-serber
mkdir /var/mysql
chown -R _mysql:_mysql /var/mysql
mysql_install_db --user=_mysql --ldata=/var/lib/mysql/
mysql_install_db
/etc/rc.d/mysqld
/usr/local/bin/mysql_secure_installation
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki