OpenBSD

iperf3 - rdomain

how do i run a iperf3 server in a rdomain ? if you don’t know what a rdomain is, just have a look at the man pages show interface with rdomain -> rdomain 1 show that this Interface is not running in the Default RDomain 0 ifconfig em3 em3: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> rdomain 1 mtu 1500 lladdr de:ad:be:ef:be:ef description: connected to Switch (Gi0/1) index 4 priority 0 llprio 3 media: Ethernet autoselect (1000baseT full-duplex) status: active inet 192.

OpenBSD - ansible-pylibssh

wanna build ansible-pylibssh on OpenBSD 7.3 ? Build failed ? $ pip install ansible-pylibssh Defaulting to user installation because normal site-packages is not writeable Collecting ansible-pylibssh Using cached ansible-pylibssh-1.1.0.tar.gz (106 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: ansible-pylibssh Building wheel for ansible-pylibssh (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for ansible-pylibssh (pyproject.

HTMX & Nginx

Little Test with HTMX & Nginx recently, i saw the Keynote - “Full-Stack Python” (Andy “Pandy” Knight) and i read an article about html & websockets. So I thought why not give it a try? Preview Requirements the usual stuff: Virtual Machine (here: OpenBSD VM) FQDN Pointing to your Box SSL Cert Webroot on your webserver, create a new webroot wherever you have your pages located. su - webmaster mkdir -p /var/www/virtual/your.

OpenBSD - Smokeping

How to Install Smokeping on OpenBSD Requiremens running Server with OpenBSD Root Permission FQDN with Cert Install Software pkg_add smokeping Update Config cat << 'EOF' >/etc/smokeping/config *** General *** owner = YOUR NAME contact = YOUR@EMAIL.NET mailhost = localhost sendmail = /usr/sbin/sendmail # NOTE: do not put the Image Cache below cgi-bin # since all files under cgi-bin will be executed ... this is not # good for images. imgcache = /var/www/htdocs/smokeping/cache imgurl = cache datadir = /var/db/smokeping piddir = /var/run cgiurl = https://YOUR.

Anycast IPv6 - YourSelf

How to Build your own AnyCast Network you’re using anycast every day. all public resolvers (1.1.1.1, 8.8.8.8, 9.9.9.9) for example are anycast ip’s and hence, many servers distributed around the world which listen and announce the same ip address. we can build a proof of concept, how to build such a network, for a few $. Requirements AS Number Anycast heavily depends on BGP. So, you need a own AS Number.

OpenBSD - HTTPD CGI

Let’s have a look a the old and simple “cgi-bin” stuff on OpenBSD. The Webserver is written by the OpenBSD Guys, and it runs in a chrooted environment. switch to cgi-bin dir cd /var/www/cgi-bin/ ip.cgi create the file under /var/www/cgi-bin called ‘ip.cgi’ cat << 'EOG' > ip.cgi #!/bin/sh cat << EOF Content-type: text/html <html><head> <title>IP: $REMOTE_ADDR</title> </head><body> <p>Your IP address is: $REMOTE_ADDR</p> </body></html> EOF EOG Set Owner & Permission chmod 500 ip.

OpenBSD - PHP 8.2

Running PHP on OpenBSD yes, i know … it’s not rocket science .. but why not make a short post so other (or myself) can have a quick look if needed ? pkg_info -Q php pkg_add php--%8.2 pkg_add php-sqlite3--%8.2 pkg_add php-curl--%8.2 Set TimeZone and allow short open tags sed -i s'#date.timezone = UTC.*#date.timezone = Europe/Zurich#' /etc/php-8.2.ini sed -i s'#short_open_tag = Off.*#short_open_tag = On#' /etc/php-8.2.ini Install all Modules if needed .. does not make sense for me :(

OpenBSD 7.3

OpenBSD 7.3 finally released. Today, the 54th Release of OpenBSD was announced. The Upgrade Script is available here … one cool thing to mention: Added initial support in the installer for guided disk encryption for amd64, i386, riscv64 and sparc64. Script as root cd /root ftp https://blog.stoege.net/scripts/.helpers ftp https://blog.stoege.net/scripts/upgrade_to_73.sh chmod u+x upgrade_to_73.sh Execute ./upgrade_to_73.sh Any Comments ? sha256: 000c2b0afa4739a87a7e921ec1fcfa4fb9113effd47e2f2456dfb2b66f65a34f

OpenBSD 7.3 - Diskusage

New Proposal for 7.3 there is an request for at least 1.1GB free Storage at the /usr Partition when upgrading your systeme with sysupgrade. so, i have to adapt my settings a bit for new vm’s with at least 25GB Storage. Example with 20GB a 4G / a 1G swap a 1G /tmp a 4G /var a 6G /usr a * /home (ca. 4 GB) Example with 25GB (Vultr) a 4G / a 2G swap a 2G /tmp a 6G /var a 6G /usr a * /home (ca.

OpenBSD - NTopNG

NTOPNG with Self Signed Cert ntopng is a network traffic probe that provides 360° Network visibility, with its ability to gather traffic information from traffic mirrors, Netflow exporters, SNMP devices, Firewall logs, Intrusion Detection systems. package as root pkg_add ntopng Cert To use HTTPS on the built-in web server, create /etc/ssl/ntopng-cert.pem containing both the private key and certificate in the same file and make this readable by the _ntopng user. Use the -W flag to listen on HTTPS.