Blog & Playground

Dig Dns Whois

By Daniel Stocker |  Oct 28, 2019  | dns, dig, whois
whois egal.com puffy200 ~# whois egal.com Domain Name: EGAL.COM Registry Domain ID: 1979745_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.name.com Registrar URL: http://www.name.com Updated Date: 2019-09-25T20:43:47Z Creation Date: 1996-03-25T05:00:00Z Registry Expiry Date: 2022-03-26T04:00:00Z Registrar: Name.com, Inc. Registrar IANA ID: 625 Registrar Abuse Contact Email: abuse@name.com Registrar Abuse Contact Phone: 7202492374 Domain Status: clientTransferProhibited https://icann.org/epp#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 https://www.amazon.de/LogiLink-AU0033-USB-Adapter-Serial/dp/B00BBXHOAY
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=https://cdn.openbsd.org/pub/OpenBSD/6.6/amd64/ _path_pkg=https://cdn.openbsd.org/pub/OpenBSD/6.6/packages/amd64/ 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 https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
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...

Ansible tricks

By Daniel Stocker |  Oct 5, 2019  | ansible
Show Hostvars ansible -m debug -a "var=hostvars['puffy']" localhost Build Encrypted Variable echo -n 'letmein' | ansible-vault encrypt_string --stdin-name 'vault_my_var' vault_my_var: !vault | $ANSIBLE_VAULT;1.1;AES256 31366161316337383034303536623932613436333530333435366132383637643366333931663732 3761653137313030323036336435633134663861313939380a663939393263383934323864663265 34353632646137356535323536643565616561376133313936313763386164333234663233643561 6364396632663133380a356132343239386632356562333538633236646665653531333438653165 6465 Ansible Loops Overview https://chromatichq.com/blog/untangling-ansibles-loops Anstom Log Source: https://github.com/octplane/ansible_stdout_compact_logger/commit/d8effb3c85d1b9364d3efab9360f8470bc76fc26
Continue Reading...