Anda di halaman 1dari 1

*

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

*
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