Bsd

From Igor personal wiki
Jump to: navigation, search

OpenBSD-checklist

OpenBSD_network_configuration

PF_firewall_config_tips_tricks

IPSEC_VPN_configuration

RELAYD_configuration

OpenBSD_Tangoe_tips_tricks

Changing the amount of open files

Performance_tuning_pf

advanced_log_rules_pf

port_forwarding_pf

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:

  1. sh /etc/netstart pnc0

Mark an interface down i.e. stop networking service and transmission via interface called pnc0:

  1. ifconfig pnc0 down

To bring back interface, type:

  1. ifconfig pnc0 up

Network troubleshooting

netstat -s -p carp


Shutdown and poweroff

shutdown -ph now