Questions tagged [openbsd]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
52 views

How do I increase root partition?

I'm out of space on OpenBSD / and need to increase it. I'm trying but getting an error when writing the new info to disk: > w disklabel: ioctl DIOCWDINFO: Open partition would move or shrink ...
0
votes
1answer
45 views

man <sth> | grep -A2 “SEE ALSO”

When I'm grepping a man page for the section titles written in capitals, it seems as if they are not there. It works with the same words in lowercase. For example, when I write man <xxx> | grep -...
1
vote
2answers
65 views

openbsd installer doesn't recognize disks?

Background: I'm absolutely new to OpenBSD and trying to install OpenBSD 6.5 into Dell G3 3779. At first, the OpenBSD's UEFI bootloader showed that it detected 3 disks, including the bootable USB ...
25
votes
9answers
28k views

How to apply updates on OpenBSD, NetBSD, and FreeBSD?

I'm using OpenBSD for quite a while now. All I do, however is go from one release to the next, always just doing an update. I configured the system so it works as my router and firewall, and it works ...
1
vote
1answer
45 views

Run command on SSH server whenever a user connects, even if just for tunneling

I'd like to, as the administrator of an OpenBSD ssh jumphost used by multiple people, run a specific command any time any user connects via SSH, even if just for tunneling. Is this possible? I've ...
9
votes
2answers
191 views

Behaviour of “eval” under “set -e” in conditional expression

Consider the commands eval false || echo ok echo also ok Ordinarily, we'd expect this to execute the false utility and, since the exit status is non-zero, to then execute echo ok and echo also ok. ...
17
votes
3answers
1k views

What is OpenBSD's pledge in short?

Can someone please describe, for a non-programmer, but IT person, what is pledge? Ex.: there is a program, ex.: "xterm". How can pledge make it more secure? It pledge inside the programs code, or ...
0
votes
0answers
31 views

How does route-to work in the BSD pf firewall?

I've recently learned about the route-to functionality in the pf firewall, and I wonder how it works. Is it similar to the "policy-based routing" system in linux? How does route-to allow the ...
3
votes
1answer
80 views

OpenBSD Supported Hardware

I've recently installed OpenBSD on my Lenovo Ideapad 510s-14ISK. Unfortunately, it seems that my current network card (Qualcomm Atheros NFA435 QCA9377-5 / NFA 344 QCA6174 WiFi 802.11ac 1x1 + BT) is ...
3
votes
1answer
108 views

OpenBSD 5.9 can't preload library ''

I develop for Linux and OpenBSD and sometimes I get the error can't preload library - do you know what it means? The exact output I got was: : can't preload library When I try to run scripts and/...
0
votes
1answer
129 views

How to add CA cert to OpenBSD (6.4)

I'm trying to add a CA certificate to OpenBSD. I have copied the conmpany.crt to /etc/ssl/private I have created the .0 file from the certificate (using openssl x509 -hash -noout -in company.crt) I ...
1
vote
2answers
107 views

How can I install a package on OpenBSD?

I installed OpenBSD and then proceeded to download firefox using the PKG_PATH environment. It worked and seemed to run reasonably well but then, wanting to try another browser, I deleted firefox ...
0
votes
1answer
46 views

Creating intermediate object files to another directory with Makefile

Due to an error made when partitioning the system disk of my OpenBSD box, I'm running out of space on /usr now. openbsd$ df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/sd0a ...
1
vote
2answers
8k views

Why can't I use sudo on OpenBSD?

I'm running OpenBSD 5.7 on VirtualBox on my Windows 7, to learn more about Unix, but I can't use sudo with my password. I've set up a user called adminvpn but when I try to run any command using sudo ...
0
votes
1answer
56 views

DNS + DHCP in home lab [closed]

Setting up a home lab. I was originally planning on using static ips for everything and then powerdns + poweradmin for DNS. Recently though it dawned on me that it would be a lot simpler to just use ...
3
votes
1answer
1k views

OpenBSD pf NAT rules based on DHCP/DNS

I have a Proxmox installed and an OpenBSD VM in front of all the others to play the role of NAT, firewall, DNS and DHCP. I have a fully functional DNS and DHCP. My DHCP is correctly updating my DNS ...
0
votes
1answer
222 views

IPFS on OpenBSD

How can I install IPFS on OpenBSD? https://ipfs.io/ https://en.wikipedia.org/wiki/InterPlanetary_File_System InterPlanetary File System (IPFS) is a protocol designed to create a permanent and ...
0
votes
1answer
38 views

PS2 keyboard in OpenBSD 6.4

On OpenBSD 6.4 , my usb keyboard is dead so i get a old ps2 keyboard. The problem now is that it is configured as qwerty keyboard and it is a azerty keyboard. I can set it in xfce with : Keyboard ...
1
vote
1answer
76 views

OpenBSD: Check what files under /etc has changed in comparison to pristine base system

I'm planning on setting up a new personal OpenBSD-current system by means of installing the latest OpenBSD snapshot, and I would want it to look more or less similar to my existing OpenBSD-current ...
2
votes
1answer
74 views

How to see what is using sndiod / audio devices

When running mpc play, after it previously running fine and then opening some browsers, which likely try to play sounds, I receive the following error: Failed to open "sndio output" [sndio]; Failed ...
5
votes
3answers
9k views

Are there any virtualization solutions for OpenBSD that aren't from ports?

I'm searching for a virtualization solutions for an OpenBSD host and a CentOS guest. What are my options? I'm searching for one that doesn't use packages from ports. Are there any?
5
votes
3answers
1k views

Equivalent to “source” in OpenBSD?

Trying to open a python3 virtual environment I have created with python3 -m venv myVenv by doing source myVenv/bin/activate as I do in Linux, but I get ksh: source: not found which mean it is ...
9
votes
2answers
556 views

OpenBSD: Defining a new loopback interface

I need one more loopback interface in my OpenBSD 6.1, with the IP address 127.0.0.2. I can create it by hand with the command: ifconfig lo1 127.0.0.2 And to have it at boot time, I just inserted ...
1
vote
1answer
42 views

Verification of packages in a local mirror

Packages for several BSD and Linux operating systems / distributions are downloaded over a potentially insecure connecting or are later on replaced with a malicious version on the local disk. The ...
4
votes
1answer
1k views

HTTP proxy in OpenBSD 5.8 (replacing Apache ProxyPass)

I'm trying to replace Apache with OpenBSDs httpd but can't figure out what to do with my ProxyPass statements. In apaches conf it looks like this ProxyPass /someurl http://192.168.123.123/...
3
votes
1answer
1k views

OpenBSD cannot find host names

I have an OpenBSD instance under vultr. I installed OpenBSD 5.8 and I can ssh into it just fine. But I can't seem to use pkg_add, ftp, ping or any other internet-dependent program. For example, I've ...
1
vote
1answer
46 views

Wrong charset when mounting NFS share on OpenBSD

I have a NFS server running on a Fedora 29 machine and other machines on my network (an Ubuntu box and a Debian VM) mount it properly. But when I mount it on an OpenBSD VM, the charset is wrong, for ...
1
vote
2answers
232 views

How to create Windows XP styled fvwmrc file?

How to create Windows XP styled fvwmrc file? Installed OpenBSD, it default uses FVWM2. Does anyone has an rc file, that could make FVWM2 Windows XP styled? :)
0
votes
2answers
85 views

Cannot compile git on OpenBSD

I'm trying to install git on a college server, just for my user, but for some reason I can't compile it. I tried the latest version on github, as well as a couple random older versions from both ...
2
votes
1answer
180 views

OpenBSD relay, https proxy for multiple domains

I'm trying to make a proxy for 3 web servers (running on the same machine as the proxy). A have successfully configured relayd to redirect a request to correct port by their host header, but I cannot ...
0
votes
1answer
307 views

Script or makefile to automate new user creation?

I'd like to have either a shell script or makefile to automate new user creation. I can't decide which of approach is better - a script or makefile? I have two types or users - both are SFTP chrooted,...
0
votes
2answers
383 views

How to find why php72_fpm is failing to start on OpenBSD?

My httpd logs show errors that look like php-fpm issues and sure enough, when I try rcctl start php72_fpm I get php72_fpm(failed) In line with other OpenBSD configuration so far, I'd expect to ...
1
vote
2answers
110 views

Different order for getsockopt SO_PEERCRED in Linux and OpenBSD

I'm trying to get the Unix socket peer credentials in python. I am using this piece of code for that: peercred = conn.getsockopt(socket.SOL_SOCKET, socket.SO_PEERCRED, struct.calcsize("3i")) pid, ...
1
vote
1answer
801 views

How to copy files from android device to OpenBSD

Here is what dmesg | tail shows after I connect my android phone to the USB port (the last three lines show up when I turn on USB tethering on the android device): # dmesg | tail vscsi0 at root ...
10
votes
5answers
22k views

Prevent a USB external hard drive from sleeping

Does anyone know if there is an elegant way to tell an external usb drive not to spin down after a period of inactivity? I've seen cron based solutions that write a file every minute, but nothing ...
3
votes
1answer
2k views

How to connect to my usb-to-serial thingy on OpenBSD

I have an old OpenBSD (5.0 GENERIC#43 i386) at a production site. Now I'm trying to connect a zebra-printer to it with a usb-to-serial cable without success. The issue is getting the device to exist ...
3
votes
1answer
4k views

Automatic internet connection on startup in OpenBSD?

I just installed the OpenBSD in my computer. I've learned how to connect to my wireless network using the following commands (even though I don't quite know what they mean): ifconfig iwn0 nwid [...
1
vote
1answer
534 views

Using xorg in a Lenovo Ideapad

I have a Lenovo Ideapad 100S 14'' IBR-14'' Intel Celeron CPU N3060 @ 1.60GHz, 32GB SSD, 4GB RAM, based in the Broadwell chipset, running OpenBSD 6.1. I have been trying to configure xorg without ...
3
votes
3answers
447 views

What does “link#1” mean?

netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Mtu Interface default 75.126.68.49 UGS 7 1203 - pcn0 1.2.3.3/...
0
votes
1answer
254 views

pf not stopping bruteforce attempts

I am setting up an SFTP server for me and my friends and I am trying to stop brute force attempts. I have read many articles on how to get pf to stop brute force attacks and am not having any luck. ...
57
votes
1answer
76k views

Redirect both stderr and stdout to /dev/null with /bin/sh

I have tried all sorts of ways to redirect both stdout and stderr to /dev/null without any success. I have almost my entire life run bash which I've never had this issue with, but for once in BSD I'm ...
3
votes
0answers
691 views

Using the new rtwn(4) driver for OpenBSD

EDIT 1: Patch from the mailing list I got in touch with the original poster about the card, and he gave me a patch to try out. I will apply it, recompile the kernel, and report my findings. If it ...
1
vote
0answers
2k views

postfix + Cyrus SASL - cannot connect to saslauthd server: No such file

Everything is up and running and answer on calls but the login for postfix doesn't seem to work (it works for Courier IMAP, just not postfix). Here's the error output: Jun 30 22:22:10 HOST postfix/...
3
votes
2answers
280 views

Are there GPG-signed OpenBSD ISOs with which I can verify an installation disc?

Are there GPG-signed OpenBSD ISOs that I can download and later verify the downloaded file? Or at least a GPG-signed shasum?
2
votes
3answers
866 views

How to follow OpenBSD current?

We want to try out OpenBSD on desktop, but using the -current flavor: https://www.openbsd.org/faq/faq5.html#Flavors -current: The -current branch is where active development work is done. Every six ...
0
votes
3answers
294 views

BSD browser information

I am developing an application and I need some BSD browser information. Specifically the output of http://browserspy.dk/browser.php If someone could post the output of Firefox on FreeBSD. OpenBSD ...
1
vote
1answer
126 views

Dvorak Programmer Layout with OpenBSD

I've recently installed OpenBSD. When installing the OS I selected the normal Dvorak layout as the Dvorak Programmer wasn't present on the list. After the install I wanted to change the layout with ...
6
votes
2answers
14k views

Gnome desktop environment: how to get it working on OpenBSD?

I have OpenBSD 5.7-amd64 installed and patched with all the latest available fixes. I would like to have a minimal Gnome desktop environment and I did the following to my user account (not root ...
1
vote
1answer
79 views

debugging a statement in a Makefile on OpenBSD

It is not clear to me, where the error comes from, the Makefile code follows: platform_id = $$( uname -s ) platform = $$( \ case $(platform_id) in \ Linux | FreeBSD | OpenBSD | NetBSD ) ...
1
vote
0answers
98 views

OpenBSD threads priorities

Can anybody explain how to work with thread priorities in OpenBSD? Information about this question in MAN pages is poor, it does not give clear understanding. In particular: sched_get_priority_min/...