OpenBSD RDomains

Intro Let’s assume you have a Mikrotik Router which got a Mgmt Interface with IP: ‘’ and DHCP Server enabled. You wann Access the Router via HTTP/HTTPS while offering Internet Services for the Mikrotik Router. You have an APU and OpenBSD running. What do you do ? Setup 2 NIC’s em0: dhcp client, default route, rdomain 0 em3: dhcp client, rdomain 3 Interfaces Interface em0 cat << 'EOF' > /etc/hostname.em0 # Public Internet inet autoconf inet6 autoconf EOF Interface em3

APU - Firmware Upgrade

intro as we all know, the apu’s from pcengines are eol. but it’s worth to bring the existing ones to the latest firmware. if you have openbsd running on your boxes, you can upgrade it with like this: add packages doas pkg_add -i flashrom pciutils set hostname based on apu version and mac of em0 type=$(dmesg |grep ^bios0: |tail -1 |sed 's/.*gines //') mac=$(ifconfig em0 |awk '/lladdr/ {print $2}' |awk -F':' '{printf "%s-%s-%s\n",$4, $5, $6}') echo "${type}-${mac}" |tee /etc/myname; hostname $(cat /etc/myname) sample

Debian on APU4

debian on apu boot menu -> tab -> debian-installer/i386/linux vga=788 initrd=debian-installer/i386/initrd.gz — console=ttyS0,115200 enter space :) english country switzerland nic0 hostname apu005 domain planet mirror ch -> ftp.ch.debian.org root password Partitioning: entire Disk & LVM Separate /home /var /tmp survey no soft: standard system utilities & ssh server grub yes braucht ca. 30min ! automated https://www.debian.org/releases/stable/amd64/apbs02.en.html https://www.debian.org/releases/buster/example-preseed.txt Packages apt-get -y install net-tools git htop Reboot geht 40 Sekunden Any Comments ?

OpenBSD APU Serial Console

How to Access APU “B” from APU “A” via Serial Console (USB to Serial Device) APU “A” Connect USBtoSerial Adapter Connect to Serial Console on APU “B” APU “B” /etc/ttys tty00 "/usr/libexec/getty std.115200" vt220 on secure APU “A” cu -s 115200 -l /dev/tty00 cu -s 115200 -l /dev/cuaU0 (8 Port USB2Serial Device) -> you have now Console Access to APU “B” Hardware https://www.amazon.de/LogiLink-AU0033-USB-Adapter-Serial/dp/B00BBXHOAY Any Comments ? sha256: 28cee1e19429893ed3a288609d580ce28305a3c80961771d3a495403af3cf3c5

OpenBSD 6.x Diskusage

How much Disk is used with Default Partitioning puffy66# df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 1005M 96.1M 858M 10% / /dev/sd0k 9.6G 2.0K 9.1G 0% /home /dev/sd0d 1.8G 12.0K 1.7G 0% /tmp /dev/sd0f 2.5G 955M 1.4G 39% /usr /dev/sd0g 1005M 202M 752M 21% /usr/X11R6 /dev/sd0h 4.2G 218K 3.9G 0% /usr/local /dev/sd0j 5.8G 2.0K 5.5G 0% /usr/obj /dev/sd0i 1.7G 2.0K 1.6G 0% /usr/src /dev/sd0e 2.8G 5.9M 2.7G 0% /var Example with 32 GB puffy66# df -h Filesystem Size Used Avail Capacity Mounted on /dev/sd0a 3.