OpenBSD
1.18K subscribers
38 photos
2 videos
6 files
405 links
Download Telegram
OpenBSD's 'spinning' CPU time category.

Unix systems have long had a basic breakdown of what your CPU (or CPUs) was spending its time doing. The traditional division is user time, system time, idle time, and 'nice' time (which is user time for tasks that have their scheduling priority lowered through nice(1) or the equivalent), and then often 'interrupt' time, for how much time the system spent in interrupt handling. Some Unixes have added 'iowait', which is traditionally defined as 'the system was idle but one or more processes were waiting for IO to complete'. OpenBSD doesn't have iowait, but current versions have a new time category, 'spinning'...

https://utcc.utoronto.ca/~cks/space/blog/unix/OpenBSDCpuSpinTime

#cpu #spinning
Tale of OpenBSD secure memory allocator internals - malloc(3)

So
, again I started reading OpenBSD source codes with debugger after reducing my sleep timings and managing to get some time after professional life. This time I have picked one of my favourite item from my wishlist to learn and share, that is, OpenBSD malloc(3), secure allocator

I will try to keep it as n part series due to lengthy content and this series will be mostly focussed on user-space code of malloc(3) and friends

First of all, I would like to thanks Otto Moerbeek, Bryan Steele and Fabien Romano for helping me to understand the malloc(3) internals and cleared all my queries.

So, we should start now... :)

https://bsdb0y.github.io/blog/deep-dive-into-the-OpenBSD-malloc-and-friends-internals-part-1.html

#malloc
An OpenBSD E-Mail Server Using OpenSMTPD, Dovecot, Rspamd, and RainLoop.

This tutorial demonstrates a full-featured email server running on OpenBSD using OpenSMTPD, Dovecot, Rspamd, and RainLoop. OpenSMTPD is the default mail server for OpenBSD. Choose a Vultr Compute Cloud instance with plenty of storage for the expected number of users.

https://www.vultr.com/docs/an-openbsd-e-mail-server-using-opensmtpd-dovecot-rspamd-and-rainloop

#opensmtpd #mail
Setting up an email server in 2020 with OpenSMTPD and Dovecot

Another one link... https://prefet.ch/blog/2020/email-server/

#mail #opensmtpd #dovecot
We are approaching the 6.7 release. The ports tree is not locked yet, but it's time to slowly take the foot off the pedal and to refrain from far-reaching changes...

https://marc.info/?l=openbsd-ports&m=158652906719327&w=2
Cute, fast and secure chroots with Jailkit on OpenBSD

I recently found a super cool software jailkit, which I updated over at OpenBSD

I used to wonder how to properly deploy unpledged/un-unveiled apps on OpenBSD in a nice manner, specifically python/nodejs apps which are known to be shoddily written and insecure beyond measure (I should probably cite something). This cute little beast popped up in my google-fu voyage and helped me set up my chroots in a really awesome manner.

https://wiki.epsilonknot.xyz/en/jailkit

#chroot #jailkit
OpenBSD Virtualization in Action

OpenBSD VMM have been around for 1-2 years maybe and i decided to try it now.

https://dswsis.com/2020/04/12/openbsd-virtualization-in-action/

#virtualisation
Crontab random.

Add support for random values using the '~' operator. For example "0~30" will result in a random value between 0 and 30 inclusive... https://marc.info/?l=openbsd-cvs&m=158691599313802&w=2

#cron
rpki-client is a FREE, easy-to-use implementation of the Resource Public Key Infrastructure (RPKI) for Relying Parties (RP) to facilitate validation of the Route Origin of a BGP announcement. The program queries the RPKI repository system and outputs Validated ROA Payloads in the configuration format of OpenBGPD, BIRD, and also as CSV or JSON objects for consumption by other routing stacks.

https://www.rpki-client.org/

#network #bgp #rpki
Notes and automation pertaining to my home internet appliance (PCEngines/coreboot/OpenBSD/Ansible). The router is built almost entirely of PCEngines components, running coreboot and OpenBSD, with all modifications to the base install immutable by way of Ansible....

https://github.com/martinbaillie/homebrew-openbsd-pcengines-router

#hardware
An important safety note about chown and symlinks (also chmod and chgrp).

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/ChownSymlinkSafety

#chown #chmod #chgrp
I have created a guide to install OpenBSD as a Whonix-Custom-Workstation...

https://forums.whonix.org/t/whonix-openbsd-port/9443

#tor #whonix
Re: Integrating "safe" languages into OpenBSD (2017)?

https://marc.info/?l=openbsd-misc&m=151233345723889&w=2
OpenBSD, relayd, httpd and Puma.

Hosting your static sites and Rails apps on the same server...

https://gist.github.com/anon987654321/4532cf8d6c59c1f43ec8973faa031103

#relayd #httpd #rails