Questions tagged [openbsd]
OpenBSD is a BSD variant with a strong security and code correctness focus.
478
questions
1
vote
0
answers
28
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
34
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 ...
3
votes
1
answer
32
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 ...
2
votes
1
answer
38
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
21
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
133
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
11
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
111
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
102
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 ...
1
vote
0
answers
90
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 ...
2
votes
0
answers
144
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
1
answer
40
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 ...
0
votes
0
answers
66
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
90
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
42
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
69
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 ...
2
votes
2
answers
104
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
32
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?
2
votes
2
answers
104
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
57
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 ...
0
votes
0
answers
55
views
OpenBSD "UNEXPECTED INCONSISTENCY" on boot after changing disk lables
I needed a additional Partition on my openbsd installation
So i unmounted /home.
I decreased its size and added a new partition using disklabel -E.
then i tried to reboot and now its complaining about ...
1
vote
1
answer
280
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
125
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
0
answers
41
views
An oddity implementing fibers on OpenBSD
So I have a little header library that implements stackful coroutines/fibers for a variety of systems/ABIs. (https://github.com/slembcke/Tina) I've used it quite a bit now in my games and some other ...
0
votes
0
answers
31
views
OpenBSD ipsec routing working only in one direction
I have an OpenBSD Server and a Ubiquity Edge Router connected via ipsec & PSK. The problem is that the tunnel is working only in one direction: from Edge Router to OpenBSD.
When i try to ping 192....
0
votes
0
answers
40
views
Shared linking error for fundamental standard library function
On OpenBSD 7.0 amd64, with gcc 11.2.0 from ports, I get a linker error from an extremely simple program. Things aren't as broken as this makes it appear, because lots of other programs compile and ...
0
votes
1
answer
116
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
137
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/
0
votes
1
answer
96
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 ...
-1
votes
1
answer
168
views
In OpenBSD, what is a service?
I am trying to understand some fundamentals that I had some misunderstandings on, and in looking at OpenBSD I find that I'm not clear what a service is. (Note that I am not referring to web services, ...
1
vote
1
answer
314
views
OpenBSD run script on Startup
I was trying to run a .sh script on my OpenBSD machine on startup.
I've made the script executable using the chmod +x command. I've also added the script to cron via an entry reading
@reboot sh /dir/...
0
votes
0
answers
145
views
Can't ping to OpenBSD router's globally routable IPv6 addresses
My router's IP address layout is as follows, anonymized to protect my network's privacy:
11.22.33.44 IPv4 WAN address
192.168.42.1 IPv4 LAN ...
3
votes
1
answer
178
views
OpenBSD's sh: shebang is not being used
I have three scripts, two of them are used as a shebang
shebang-1
#!/bin/sh
echo "#1"
exec sh -- "$@"
shebang-2 which uses shebang-1
#!/home/a/ex/shebang-1
echo "#2"
...
0
votes
1
answer
199
views
Shrink ufs partition in OpenBSD
I have just installed OpenBSD and I need to free some space for another system. Earlier I did it with gparted, but here is not an option. fdisk only can grow partitions filling the subsequent free ...
0
votes
1
answer
158
views
OpenBSD GCC Upgrade [closed]
I'm attempting to upgrade the GCC library in OpenBSD from 4.2.1 to 11.2.0 (for a project, and a personal challenge). So far, everywhere I looked was unsuccessful. I know it's probably something ...
0
votes
0
answers
203
views
Can't mount USB during OpenBSD installation
I'm trying to install OpenBSD and I need to mount USB with wifi firmware, but can't find it inside /dev. sysctl shows that it is inserted and no errors in dmesg about it.
$ sysctl hw.disknames
sd0:...
0
votes
1
answer
140
views
What might be an equivalent to Linux /opt/ in OpenBSD?
In OpenBSD there is no /opt/, as there is with Linux.
From man hier in Ubuntu Server 18.04:
/opt This directory should contain add-on packages that contain static files.
What would be a ...
1
vote
1
answer
265
views
SSH Session freezes when running 'high bandwidth' commands (like htop)
My client, OpenBSD is connected to a VPN, and the server, OpenBSD is also connected to a VPN with the SSH port being forwarded.
I can complete any number of tasks just fine, but if, for example, I tar ...
0
votes
0
answers
46
views
ssh into a server which is connected to a VPN service, using ifconfig and route not ip
Same issue as described here:
ssh into a server which is connected to a VPN service
However I have no access to the "ip" utility. Just good 'ol ifconfig and route commands as I'm working on ...
4
votes
1
answer
277
views
Is there a way to tell if a process is chrooted?
I am still new to understanding chroot. Some packages install their own users (_packagedaemon) and create their own directories (/var/package/).
However, I cannot tell if the process is configured to ...
0
votes
0
answers
226
views
bioctl: How to use both keydisk and passphrase?
Is it possible to use both a keydisk and a passphrase with encrypted bootable drive?
I specified both keydisk and passphrase when creating the encrypted volume:
# bioctl -c C -p /tmp/passphrase -k /...
2
votes
1
answer
81
views
How to change the installation image to use COM as default console?
I want to avoid attaching keyboard in order to type set tty com0 in the boot loader during installation.
How to change the image itself to use com0 as tty by default?
1
vote
1
answer
192
views
How to add CPUs to OpenBSD in VirtualBox post-install?
Whenever I install OpenBSD in VirtualBox, I need to set CPU count prior to install, as changing the count later won't make the new cores visible. Is there a command I could run that would reset this ...
0
votes
0
answers
42
views
OpenBSD 6.9 - ENOMEM error on execve (execvp)
I've compiled a program on OpenBSD 6.9 and when I execute the program, I get an enomem error related specifically to execvp which the man pages say is a font-end for execve.
The execve man page ...
0
votes
0
answers
191
views
OpenBSD boot color
Is there a way to set the OpenBSD console foreground/background color?
With the wscons configuration, I can only modify the kernel colors:
option WS_KERNEL_FG = WSCOL_XXX
option WS_KERNEL_BG = ...
2
votes
1
answer
182
views
OpenBSD as VirtualBox guest halts on reboot on Linux host (not on macOS host)
I have an installation of OpenBSD-current running headlessly within VirtualBox 6.1.16 on a headless Ubuntu Linux (Focal) system. Whenever I reboot the virtual machine (issuing the reboot command as ...
1
vote
1
answer
43
views
PF states table give preoccupant results
I freshly install openBSD on a VPS. It is my first time. I did nothing but check the firewall setup, say pf. I ran pfctl -sa and it show
all tcp IP0:22 <- IP1:rnd ESTABLISHED:ESTABLISHED
all tcp ...
1
vote
2
answers
441
views
How to upgrade to newer OpenSSH version on OpenBSD
I'm on OpenBSD 6.8 and am running OpenSSH 8.4. How do I upgrade to OpenSSH 8.6, the newest version? Based off of this page https://www.openssh.com/openbsd.html , I know where to download it from, just ...
2
votes
1
answer
246
views
OpenBSD, rcctl fails to start vmd
I am on OpenBSD 6.8, under VirtualBox 6.1, with a virtualization capable Intel CPU. Following the virtualization guide on the OpenBSD website I ran # rcctl enable vmd, which seems to have completed ...
0
votes
0
answers
59
views
Roundcube native pdf reader plugin for OpenBSD
Anyone knows a working plugin which at least able to display inline PDF files:
The only one I found is 7 years old:
https://gitlab.awesome-it.de/kolab/roundcube-plugins/tree/feature_caldav/plugins/...