Questions tagged [openbsd]
OpenBSD is a BSD variant with a strong security and code correctness focus.
498
questions
0
votes
0
answers
8
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 ...
1
vote
0
answers
65
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 ...
0
votes
0
answers
32
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/...
0
votes
0
answers
21
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 ...
0
votes
0
answers
39
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=...
0
votes
2
answers
270
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
0
votes
1
answer
83
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....
1
vote
2
answers
91
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 ...
5
votes
1
answer
124
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);
...
1
vote
1
answer
161
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++ ...
0
votes
1
answer
521
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 ...
2
votes
0
answers
201
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 ...
0
votes
1
answer
248
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 ...
0
votes
2
answers
79
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 ...
2
votes
1
answer
179
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&...
0
votes
2
answers
331
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 ...
1
vote
0
answers
280
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 ...
0
votes
0
answers
49
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....
1
vote
0
answers
104
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.
...
2
votes
1
answer
348
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 ...
2
votes
1
answer
438
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=...
2
votes
1
answer
546
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 ...
1
vote
2
answers
311
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?
2
votes
1
answer
289
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 ...
1
vote
1
answer
104
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 ...
3
votes
0
answers
354
views
EdgeRouter Lite OpenBSD traffic routing limits
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 ...
-1
votes
1
answer
714
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 ...
4
votes
1
answer
164
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 ...
3
votes
1
answer
488
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 ...
1
vote
1
answer
177
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 ...
5
votes
1
answer
279
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 ...
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 ...
3
votes
0
answers
890
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 ...
5
votes
2
answers
423
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 ...
2
votes
1
answer
725
views
OpenBSD: stop resolvd from prepending nameservers to /etc/resolv.conf
After upgrade to 7.1
I notice that resolvd always adds a nameserver received via dhclient to /etc/resolv.conf
$ cat /etc/resolv.conf ...
4
votes
0
answers
835
views
mDNS on OpenBSD; resolving names in the ".local" domain using the standard resolver
I have a collection of macOS, Ubuntu Linux, and OpenBSD systems. They use mDNS to publish their dynamic IP addresses to the local network, making themselves available under the .local domain name.
My ...
1
vote
2
answers
266
views
OpenBSD netstart order
I have two interfaces on my VPS. One is a vio(4) interface as egress. My hostname.vio0 file is just
inet autoconf
up
The second one is a wg(4) interface. My hostname.wg0 file contains a command at ...
2
votes
0
answers
195
views
Why does OpenBSD consider xterm mouse tracking a security issue?
In the OpenBSD 7.1 release notes:
Security improvements:
Disabled xterm(1) mouse tracking by default.
From the commit:
Disable mouse tracking by default.
This causes extra control sequences to be ...
1
vote
2
answers
631
views
Openbsd wireguard to wireguard
I build a server (vps) which play the role of my gateway. My whole personal network is connected behind through wireguard. Every think works well, I follow more or less https://openbsdrouterguide.net ...
1
vote
1
answer
168
views
Referencing disk image on OpenBSD rather than disk partition
I am unable to find any online help for the following problem. I am trying to make a disk image copy on OpenBSD from one disk to another.
On Linux, this is how I would do it:
dd if=/dev/sda of=/dev/...
1
vote
1
answer
279
views
How to change a key stored on a keydisk so it can decrypt a drive on OpenBSD?
Following the guide from https://www.openbsd.org/faq/faq14.html#softraidFDEkeydisk I know how to encrypt a drive and store a key on a usb stick.
Suppose I've lost a copy of the key or suspect someone ...
3
votes
2
answers
392
views
How to get HTTPS response from a Website using OpenBSD base tools?
Using tools like curl or wget it's easy to "get" the response of an HTTP GET request, but both tools aren't installed by default on OpenBSD, and writing a portable shell script, it cannot be ...
1
vote
1
answer
54
views
Does a symlink from a wxallowed mounted partition apply wxallowed when the target is a partition without wxallowed?
If I configured the following symlink:
/usr/local/symlink@ -> /var/target/
Using default disklabel partitions, is the wxallowed mount option applied to the target?
4
votes
2
answers
635
views
How to launch my web application on startup? OpenBSD
I just migrated a web application from NodeJS to Go, and I am having troubles getting it to run on startup. Previously using my Node app, I would use pm2 to handle starting the app. However I cannot ...
1
vote
1
answer
120
views
When to use "pkill..." flag in newsyslog.conf?
I'm configuring relayd to log to its own log, and I'm not clear on whether I should run "pkill...".
I can see the following in the default newsyslog.conf:
# logfile_name owner:group ...
2
votes
1
answer
3k
views
Error: "failed to preserve ownership" when trying to move files to a FAT32 partition on OpenBSD
I'm following a tutorial on how to install firmware on OpenBSD. The tutorial has me creating a new msdos file system on the usb with: newfs_msdos -F 32 /dev/rsd2c then to take usb to a system with an ...
1
vote
1
answer
457
views
Why doesn't the terminal window title change when logging into OpenBSD from Linux Mint?
From a Linux Mint terminal window, when I ssh into OpenBSD, the terminal window title remains the same as just the terminal username@localhostname:~, whereas logging into Ubuntu the terminal window ...
0
votes
1
answer
332
views
OpenBSD core dump and /var size
I'm trying to figure out my partitioning
which leads to https://man.openbsd.org/disklabel#AUTOMATIC_DISK_ALLOCATION which says:
/var 13% of disk. 80M – 2x size of crash dump
But how do I ...
-2
votes
1
answer
733
views
How do I install softwares in openbsd?
I want to install Firefox but been having issues. So how do I install softwares and games in OpenBsd?
I was following this guide: https://www.cyberciti.biz/faq/openbsd-install-firefox-web-browser/
1
vote
1
answer
481
views
Kernel panic while install OpenBSD
Kernel panic while install OpenBSD.
I tried installing the system but this is the error message that I have got:
Steps I tried:
Reinstalling on the same ISO file.
I have tried by reinstalling the ...