Blog & Playground


By Daniel Stocker |  Nov 28, 2019  | openbsd, mtu, trace
Scamper umweg ~# scamper -c "trace -M" -i traceroute from 130.60.xx.xx to 1 130.60.xx.xx 0.418 ms [mtu: 1500] 2 130.60.xx.xx 0.411 ms [mtu: 1500] 3 1.658 ms [mtu: 1500] 4 2.284 ms [mtu: 1500] 5 0.848 ms [mtu: 1500] 6 0.994 ms [mtu: 1500] 7 0.774 ms [mtu: 1500] 8 1.491 ms [mtu: 1500] 9 2.975 ms [mtu: 1500] 10 172.
Continue Reading...

Dig Dns Whois

By Daniel Stocker |  Oct 28, 2019  | dns, dig, whois
whois puffy200 ~# whois Domain Name: EGAL.COM Registry Domain ID: 1979745_DOMAIN_COM-VRSN Registrar WHOIS Server: Registrar URL: Updated Date: 2019-09-25T20:43:47Z Creation Date: 1996-03-25T05:00:00Z Registry Expiry Date: 2022-03-26T04:00:00Z Registrar:, Inc. Registrar IANA ID: 625 Registrar Abuse Contact Email: Registrar Abuse Contact Phone: 7202492374 Domain Status: clientTransferProhibited Name Server: NS1CNY.NAME.COM Name Server: NS2KRY.NAME.COM Name Server: NS3DKZ.NAME.COM Name Server: NS4BHT.NAME.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.
Continue Reading...

OpenBSD APU Serial Console

By Daniel Stocker |  Oct 17, 2019  | 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
Continue Reading...

Openbsd upgrade 6.6

By Daniel Stocker |  Oct 17, 2019  | openbsd
OpenBSD 6.6 is released today. here is my upgrade procedure: run sysmerge reboot run script: #!/bin/sh # be nice and verbose e() { echo "\n$1 **" } e "** vars" _mydir=$(pwd) e "** build base urls" _path_base= _path_pkg= echo "_path_base: ${_path_base}" echo "_path_pkg: ${_path_pkg}" e "** make all devices" cd /dev ./MAKEDEV all || exit 1 e "** cd /tmp" cd /tmp e "** install boot loader" _boot=$(mount |awk -F'[/ ]' '/ on \/ / {print $3}') installboot ${_boot%?
Continue Reading...

How to Create Bootable USB Stick for OpenBSD

By Daniel Stocker |  Oct 17, 2019  | openbsd, usbstick
Download “install66.fs” Open balenaEtcher on OSX Proceed -> seems not to work :( build USB Stick with DD mount /dev/disk4s1 on /Volumes/Ohne Titel (hfs, local, nodev, nosuid, journaled, noowners) Open DiskUtils Unmount “Ohne Titel” DD osx$ sudo dd if=install66.fs of=/dev/disk4s1 bs=1m wait 10min done
Continue Reading...

OpenBSD 6.6 Diskusage

By Daniel Stocker |  Oct 16, 2019  | openbsd, 6.6
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.
Continue Reading...

BasicAuthentication with Nginx

By Daniel Stocker |  Oct 13, 2019  | openbsd, basicauth, nginx
NOT YET WORKING … Install NGINX pkg_add -v nginx rcctl enable nginx rcctl restart nginx Enable BasicAuth server { ... auth_basic "Administrator’s Area"; auth_basic_user_file conf/htpasswd; location /public/ { auth_basic off; } } Create File and User htpasswd -c /etc/apache2/.htpasswd user1 Restart Service rcctl restart nginx Source
Continue Reading...

BasicAuthentication with httpd

By Daniel Stocker |  Oct 13, 2019  | openbsd, basicauth, webserver
Enable Auth server "default" { listen on * port 80 authenticate "secure area" with "/htpasswd.conf" } create htpasswd file htpasswd /var/www/htpasswd.conf user-x Password: Retype Password: chown www /var/www/htpasswd.conf chmod 600 /var/www/htpasswd.conf Restart Service rcctl restart httpd
Continue Reading...