Bsd
PF_firewall_config_tips_tricks
Changing the amount of open files
openbsd_with_vlan_and_LACP_trunking
ISAKMPD_reconfiguration_on_fly
Kernel reconfiguration and driver disabling
During boot:
boot -c disable acpi
on running system update kernel with changes done during startup
config -u -e -f /bsd
fixing acpi problem (instead of disbling whole acpi disabling only unused device drivers)
disable acpiec disable acpiac disable acpibat disable acpitz
Console configuration:
add to .profile
export PKG_PATH='http://127.0.0.1:5000/pub/OpenBSD/5.3/packages/amd64/' export PS1="[\u@\h \w]#" export FTPMODE="passive" alias vi='/usr/local/bin/vim'
Vim configuration to make all keys works as at Linux and support pf syntax highlight
add to the top of .vimrc:
set backspace=indent,eol,start set nocompatible " must be the first line filetype on filetype indent on filetype plugin on syntax on set laststatus=2 set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P set ofu=syntaxcomplete#Complete
Network reconfiguration
If you made changes to interface called pnc0 by editing /etc/hostname.pnc0, type the following command to restart / reset / update TCP/IP configuration including routing table and set up the default routes:
- sh /etc/netstart pnc0
Mark an interface down i.e. stop networking service and transmission via interface called pnc0:
- ifconfig pnc0 down
To bring back interface, type:
- ifconfig pnc0 up
Network troubleshooting
netstat -s -p carp
Shutdown and poweroff
shutdown -ph now