Skip to main content

Questions tagged [openbsd]

OpenBSD is a BSD variant with a strong security and code correctness focus.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Where to install custom software packages on FreeBSD?

In Linux, according to the Filesystem Hierarchy Standard, /opt is the designated location for add-on application software packages. Thus, when developing my own software package, which is not a ...
user149408's user avatar
  • 1,255
0 votes
0 answers
11 views

How to disable logical processors in OpenBSD?

It is well known that OpenBSD disables hyper-threading by default. However, htop shows 16 CPUs: 8 online and 8 offline, which takes extra space on the screen and is not very informative. Moreover, ...
nalzok's user avatar
  • 369
0 votes
1 answer
26 views

What is a good way to perform a SHA256d hash (double SHA256) on an OpenBSD fresh install?

What is a good way to perform a SHA256d hash (double SHA256) on the default terminal of an network isolated OpenBSD fresh install? Here's what I'm doing: echo test > testfile cat testfile | openssl ...
Lee's user avatar
  • 507
3 votes
2 answers
111 views

Is it possible to find out when a user changed their password?

Or to see which user caused the security notice that /etc/spwd.db was changed?
tink's user avatar
  • 6,784
0 votes
1 answer
54 views

Configuring IPv6 ULA addresses in OpenBSD via SLAAC

I would like to have devices on my network autoconfigure ULA addresses in a prefix generated by https://www.unique-local-ipv6.com/ on my network, which is predominantly IPv6-only. My main router is ...
neezer's user avatar
  • 31
0 votes
1 answer
145 views

Understanding the auto-allocated disk layout on OpenBSD

I am attempting to install OpenBSD7.4 on an amd64 arch with a 1TB drive. The machine will run an X windows system and need plently of room to store files. I selected "whole disk GPT" at the ...
Lee's user avatar
  • 507
1 vote
1 answer
60 views

async mount for read-only filesystem?

It seems OpenBSD's /usr/X11R6 is only written when I upgrade the base system (specifically, the X11 sets). For regular use cases, I want to speed up every read of /usr/X11R6. I wanted to mount the ...
Someone1611's user avatar
0 votes
1 answer
82 views

How to resume after a system crash (panic) in OpenBSD?

A crash of some acpi process causes OpenBSD to enter ddb. Is it possible to exit ddb and keep the system running after that?
andreoss's user avatar
2 votes
1 answer
89 views

How to prevent relayd on OpenBSD from using all memory

I have an OpenBSD "firewall" with relayd, where relayd starts to consume all available memory to the point that the system becomes completely non responsive. This happens when a user starts ...
VagrantPaladin's user avatar
2 votes
1 answer
117 views

OpenBSD boot hangs after “256 targets”

I'm trying to boot OpenBSD 7.4 on my desktop with ASUS B650E-i motherboard, but after scsibus3 at softraid0: 256 targets, it hangs. Is OpenBSD incompatible with hardware this recent?
jobukkit's user avatar
  • 411
1 vote
1 answer
32 views

How many paths can be unveiled by a single process on OpenBSD?

The OpenBSD manual page for unveil mentions this in the errors section [E2BIG] The addition of path would exceed the per-process limit for unveiled paths. Which raises the question, what is the ...
Justine Krejcha's user avatar
0 votes
1 answer
55 views

ksh88 string substitution in alias | mpv streaming [duplicate]

tl;dr how can I substitute a string (i.e. a youtube/streaming url) in an alias such as alias mpvyt='yt-dlp <URL> -o - | mpv - ' ? I live in a mezzanine studio using a M1 macbook for a ...
sylvainsab's user avatar
0 votes
0 answers
409 views

XTLS Xray - connection ends > proxy/vless/inbound: id is not able to use "". Note that the pure TLS proxy has certain TLS in TLS characters

I am trying to setup a XTLS Xray server (Version 1.8.3) on an OpenBSD VPS. I am not using any CA issued certificate, instead one generated with xray tls cert to maintain server's anonymity. The server ...
prmethus's user avatar
1 vote
1 answer
181 views

Compiling GCC failed on Openbsd 7.4 (configure: error: .... libgomp)

I'm yak shaving: to compile gcc (especially with libgccjit for ultimately compiling emacs with native-comp) on openbsd 7.4. The reason behind is libgccjit isn't available via pkg_add. Thus I'm trying ...
Garid Z.'s user avatar
  • 542
1 vote
1 answer
82 views

The IP address of the server is modified in relation to the client once the VPN connection is established using WireGuard

I've a below wireguard configuration at the server side [Interface] ListenPort = 51820 PrivateKey = oPernzzF+Kl499z2TMwemZLUN6/e630Q= [Peer] PublicKey = yyhY5Blx+PxCHu/wK7QgiL/veRrXHQ34RmTi//zynVA= ...
SOUBHEEK NATH's user avatar
1 vote
1 answer
154 views

OpenBSD and Wireguard hub and spoke: spoke to spoke communication

I have successfully set up an OpenBSD system running Wireguard [wg0] which I have designated "the centre" at 192.168.100.1/24. I also have clients successfully running Wireguard, of various ...
Christopher Causer's user avatar
0 votes
0 answers
23 views

PHP-FPM - "IntlException thrown"

I have correctly installed php-8.1.23, php-fpm and php-intl-8.1.23 on OpenBSD 7.3 When I create a file locally with the following code and run it with PHP $example_var = new Collate('en_US'); it ...
prmethus's user avatar
2 votes
0 answers
349 views

Is it possible to get a resolution greater than 1920x1200 on openbsd in qemu ( virt-manager)?

How to increase screen resolution in openbsd if it possible? It is necessary to have a resolution such as 2k or 4k. Tried virtio, qxl there is even smaller than in VGA, checked the maximum resolution ...
daswer's user avatar
  • 21
0 votes
0 answers
41 views

Is it possible for /etc/skel/.dotfile to have contents changed to match the username?

I want to create a ~/.nanorc file with a default backupdir path for each user: set backup set backupdir /var/nanobackup/username Does this have to be customized after I create a new user or does /etc/...
Paul's user avatar
  • 507
0 votes
1 answer
133 views

OpenSMTPD: Mails that should be in root user's mbox is in default user's mail box

So I have setup an OpenSMTPD server on my OpenBSD VPS. I have specified the aliases file path and configured action "local_mail" to forward the mails to specific users based on their ...
prmethus's user avatar
1 vote
0 answers
96 views

Vagrant OpenBSD Box not starting up through Libvirt Provider

So I have created a OpenBSD 7.3 VM in libvirt with the following shell command. virt-install --name openbsd7.3 --os-variant openbsd7.0 \ --virt-type kvm --vcpus 1,maxvcpus=2 --memory 256,maxmemory=...
prmethus's user avatar
0 votes
2 answers
1k views

How can I restart pf in OpenBSD?

I want to restart pf service after some edits in my /etc/pf.conf but rcctl restart pf does not work
somenxavier's user avatar
0 votes
1 answer
174 views

Removing smptd smtpq service in OpenBSD bare installation

In a recent installation of OpenBSD, I noticed that the smtpd daemon is present. gelima# ps aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND [...] root 90899 0.0 0....
somenxavier's user avatar
1 vote
2 answers
195 views

OpenBSD mail server getting too many hits to non existing emails

Server: OpenBSD 6.6 GENERIC#3 I'm recently working on an OpenBSD mailserver, it daily gets hits to not existing accounts, May 31 16:00:23 Makmx01 smtpd[57197]: 05844daf9b176227 smtp failed-command ...
AnilCpanel's user avatar
5 votes
1 answer
193 views

Is there a *BSD equivalent of MacOS renameatx_np, atomic swap file renaming?

I am looking to create a *BSD compatible C function like the one below: int fs_ext__swap (const char *from, const char *to) { int res = renameatx_np(AT_FDCWD, from, AT_FDCWD, to, RENAME_SWAP); ...
Lee's user avatar
  • 507
1 vote
1 answer
213 views

OpenBSD: npm install sodium-native, interpret error messages

I am attempting to install sodium native as an npm package on OpenBSD 7.3 amd64. Aside: As a dependency of Hypercore, Hyperbee and Corestore. This needs node-gyp. Following this, I set the C and C++ ...
Lee's user avatar
  • 507
0 votes
1 answer
2k views

OpenBSD USB install; how to mount usb and find file sets:

During an OpenBSD install from USB, if one has reached the Pathname to the sets? prompt and the USB stick is not mounted, how does one find the usb device name, mount the usb drive and direct the ...
Lee's user avatar
  • 507
4 votes
1 answer
473 views

How to pass extra options to OpenBSD's EFI boot loader with systemd-boot?

I have an extra systemd-boot entry for OpenBSD. $ cat /boot/loader/entries/bsd.conf title OpenBSD efi /extra/bootx64.efi It works and I manage to get into boot shell, The problem is that by default ...
andreoss's user avatar
0 votes
1 answer
445 views

NFS client (ubuntu) froze after a while with openbsd server / FIN_WAIT_2

I have an openbsd server sharing directories through NFS protocol. After I installed a new version of ubuntu on the client, I still mount NFS directories however after a (random) time: nautilus, ls ...
Airwan's user avatar
  • 81
0 votes
2 answers
104 views

Not enough arguments for capability `setaf` in OpenBSD

I want to change the text colour in a shell. I can use tput to get the correct escape codes. For example, echo "$(tput setaf 5)My text$(tput sgr0)" outputs My text in a pink-ish tone. This ...
FWDekker's user avatar
  • 101
2 votes
1 answer
326 views

How to install packages in chroot when chroot is launched with doas?

On OpenBSD 7.2 stable, I've setup my chroot using this script: #!/bin/ksh dir="/jails/$1" mkdir -p "$dir" tar -C "$dir" -xzf /usr/src/base/base72.tgz tar -C "$dir&...
neezer's user avatar
  • 31
0 votes
2 answers
676 views

OpenBSD: how to make backup / snapshot of mounted disk?

I'm planning to launch a server on latest OpenBSD. (Web, cloud and more.) I have to make regular backups of my ffs2 partitions (e. g. using cron). But there are no documentation about this, only man ...
НЕВСКИЙ БЛЯДИНА's user avatar
1 vote
0 answers
396 views

OpenBSD 7.2 NanoPi R4S sdmmc0: can't enable card

I am facing the following issue with SD card when trying to install OpenBSD 7.2 on Nanopi R4S (Rockchip RK3399 ARM64 SoC). The same problem as previously described on OpenBSD 7.1 here. sdmmc0: can't ...
Krakonoš's user avatar
0 votes
0 answers
87 views

Using OpenBSD /usr/libexec/auth/login_* from command line or other program

This may be an x-y problem and please feel free to point me in other directions as well. I'm trying to write a login mechanism to dovecot's passdb, using either a Lua plugin or a CheckPassword program....
Bex's user avatar
  • 768
1 vote
0 answers
165 views

How to configure OpenBSD for multiple X Window sessions of different users?

I want to configure an OpenBSD (7.2 amd64) system to support multiple users logged in and each having separate X Window sessions, but being able to easily switch whose session is on the terminal. ...
Kyle Markley's user avatar
2 votes
1 answer
508 views

OpenBSD, relayd and acme-client: Unable to read TLS-certs for subdomains: "Empty reply from server"

OpenBSD server with relayd/httpd/acme-client. Attempting to run https://mydomain.com (app server on port 32489), https://webmail.mydomain.com (48293) and https://forum.mydomain.com (28192). All three ...
Mark Boulder's user avatar
2 votes
1 answer
832 views

How to set character encoding for OpenBSD tty session?

On OpenBSD, in order to appropriately see language specific characters in X sessions all I need to do is set LC_CTYPE to one of the values listed using locale -a. I do this by adding export LC_CTYPE=...
zajer's user avatar
  • 213
2 votes
1 answer
918 views

Port Fowarding on an OpenBSD Router with a PF Firewall

I’ve followed the guide in the OpenBSD FAQs for setting up a firewall and doing port forwarding. https://www.openbsd.org/faq/pf/example1.html https://www.openbsd.org/faq/pf/rdr.html The reason I am ...
user avatar
1 vote
2 answers
463 views

How do I check the BIOS version number on OpenBSD?

On Linux I would do something like dmidecode -s bios-version as root. What is the equivalent for OpenBSD?
cat pants's user avatar
  • 475
2 votes
1 answer
371 views

Isssues forwarding port / Nat on openbsd

I am unable to make port 80 available on the WAN and I am not sure why. My setup is just my home network acting as the wan and my ‘lab’ as the lan. Wan 192.168.0.0/24 and lan is 192.168.5.0/24. Router ...
asdfagain's user avatar
2 votes
1 answer
137 views

(n)vi - Erase in ex mode

How does one erase characters in ex mode (':' command line) of (n)vi 1.79 or make 'Backspace' behave as in Vim? 'Backspace' and 'Delete' only move the cursor left, from where new keystrokes overwrite ...
zatg98n4qwsb8heo's user avatar
3 votes
0 answers
454 views

EdgeRouter Lite OpenBSD traffic routing limits [closed]

When routing traffic between (virtual) interfaces on Ubiquiti EdgeRouter Lite it is hitting some sort of limit. I'd like to get some help to determine what sort of limit is that and how it can be ...
Vlad's user avatar
  • 153
-1 votes
1 answer
1k views

Bridging Ethernet Interface on OpenBSD and Other Problems

I am currently setting up an OpenBSD firewall, router, and dns server. I've been following various guides online with the bulk of my configuration coming from the OpenBSD site and the pf configuration ...
user avatar
4 votes
1 answer
226 views

What is the most native way to generate desktop notification in BSD unixes

macOS has its "osascript" with "display notification", Linux has its "notify-send". Both are the most native way to generate DE notifications. What is the most native way ...
codepoet's user avatar
  • 586
3 votes
1 answer
756 views

A GNU Parallel Job Queue Script

I found a script on GitHub which I've slightly modified to fit the needs of the program I'm trying to run in a queue. It is not working however and I'm not sure why. It never actually echos the jobs ...
user avatar
1 vote
1 answer
206 views

Is it possible to increase the size of OpenBSD's bsd.rd without building it from source?

Having a bsd.rd extracted from an installation image and mounted as a vnode I can see there is 0.2MB free space available for additional files such as used during unattended installation. I want to ...
zajer's user avatar
  • 213
5 votes
1 answer
357 views

Key-presses happening multiple times during OpenBSD installation

I am trying to install OpenBSD on HP Chromebook 11 G4 with CoreBoot (UEFI) installed through MrChromeBox firmware-util script. During the initial boot prompt (when you see the boot>) I can easily ...
zajer's user avatar
  • 213
0 votes
0 answers
12 views

openbsd file permissions for new user [duplicate]

I'm trying to learn the basics of OpenBSD coming from CentOS ... so I've created a new certificate for my domain.tld with certbot and a new user - newuser I've added newuser to wheel group and even ...
cybernet2u's user avatar
3 votes
0 answers
1k views

How to install OpenBSD 7.1 on NanoPi R4S using SD card as root disk?

I would like to install OpenBSD 7.1 on the NanoPi R4S (Rockchip RK3399 ARM64 SoC). Following the instructions in INSTALL.arm64, I managed to make the NanoPi R4S boot miniroot71.img. I wrote the ...
Harald Hetzner's user avatar
5 votes
2 answers
546 views

What is the equivalent of "freebsd-update" on OpenBSD?

I have been using FreeBSD for quite some time. Now I want to dive into OpenBSD some more. Currently I'm trying to figure out what is the "recommended" way to keep my system up-to-date. On ...
c4p1's user avatar
  • 53

1
2 3 4 5
11