====== Openbsd ====== The OpenBSD project produces a FREE, multi-platform 4.4BSD-based UNIX-like operating system. Our efforts emphasize portability, standardization, correctness, proactive security and integrated cryptography. As an example of the effect OpenBSD has, the popular OpenSSH software comes from OpenBSD. ===== Links ===== [[https://ftp.spline.de/pub/OpenBSD/|Berlin Mirror]]\\ ===== FAQ ===== [[https://www.openbsd.org/faq/index.html|Global FAQ]]\\ [[https://www.openbsd.org/faq/pf/index.html|PF FAQ]]\\ [[https://www.openbsdhandbook.com/|OpenBSD Handbook]]\\ ==== cheats ==== List USB devices usbdevs -v LogFW tcpdump -s 160 -n -e -ttt -i pflog0 action block Sysmerge -d (behaelt deine aenderungen) -i (loescht deine aenderungen) List Memory sysctl hw | grep mem List Hardware sysctl hw List disks sysctl | grep -i hw.disknames List Partiions doas disklabel -h sd1 Unlock HDD doas bioctl -c C -l sd1a softraid0 doas mkdir -p /mnt/mphdd doas mount /dev/sd3a /mnt/mphdd Unlock backup usb stick doas bioctl -c C -l sd1a softraid0 doas mkdir -p /mnt/mpstick doas mount /dev/sd3c /mnt/mpstick Change HDD Password doas bioctl -P sd2 Play Webcam (check permissions on /dev/video0) mpv av://v4l2:/dev/video0 dhcprelay rcctl enable dhcrelay rcctl set dhcrelay flags -i $INTERFACE $DHCPSERVER rcctl start dhcrelay trace ktrace -t + python 1.py kdump -f ktrace.out | grep -2 -i 'permission denied' sync folders (cd /mnt/home; tar cf - .) | (cd /mnt2; tar xpf -) tcpdump tcpdump -netolv -i vim remote vim scp://user@remotehost//etc/hosts smtpd smtpctl flush all # kill all smtpctl schedule all # try again Backup File doas cp /etc/hosts{,.bak} PF - insert rule on the fly echo "pass log proto tcp from any to self port 22" | pfctl -nvf - | sort