Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [openbsd]

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

-1
votes
0answers
23 views

Configuring ISO of Knoppix image to boot from USB [on hold]

I am trying to boot an older version of Knoppix from USB thumb drive...on a computer without EFI (AFAIK) This is the ISO I have 'ADRIANE-KNOPPIX_V7.2.0gCD-2013-07-28-EN.iso' I also am trying to make ...
1
vote
1answer
31 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 ...
1
vote
1answer
22 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 ...
5
votes
3answers
922 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 wich mean it is ...
0
votes
2answers
47 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 ...
1
vote
1answer
42 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 ...
1
vote
1answer
84 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,...
2
votes
2answers
67 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
130 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. ...
2
votes
1answer
77 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 ...
1
vote
2answers
282 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 ...
2
votes
1answer
64 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 ) ...
2
votes
0answers
75 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/...
3
votes
1answer
247 views

OpenBSD - How does one set an alias?

I am running the latest OpenBSD and I cannot figure out how to set a simple alias, something along the lines of cls=clear. I've tried putting it in ~/.cshrc and in ~/.profile. I've tried: alias cls ...
2
votes
0answers
258 views

Connect external DAC / sound card in OpenBSD

I am trying to connect a Focusrite Scarlett 2i4 USB DAC to my OpenBSD system to use as an external sound card. From what I have figured out so far, it seems that I need to tell some program or other ...
2
votes
1answer
216 views

OpenBSD redirect HTTPS by doman with relayd or pf

I have one machine with multiple domains and I'm trying to run multiple HTTPS web servers on it. All web servers have https support so I just need to redirect incoming packets to appropriate port (...
3
votes
1answer
131 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 ...
1
vote
0answers
44 views

HTTPS over direct Ethernet connection very slow

Very often I have to connect via a direct Ehternet connection from my Linux machine to network appliances that run OpenBSD. While SSH is always fast and as reliable as you would expect, HTTPS ...
1
vote
0answers
106 views

install vips library in openbsd

On OpenBSD, I need to install sharp, which require the vips library. When I use a prebaked vips tarball, <stephane@bandersnatch.22decembre.eu:/usr/local/src/libvips/vips-8.7.0> ./configure ...
2
votes
2answers
86 views

Why is DHCPD offering wrong lease times?

I have DHCPD on OpenBSD 5.8 running and experiencing a weird issue. I set the lease time as follows in /etc/dhcpd.conf: max-lease-time 7200; default-lease-time 7200; This should be 2 hours. When I ...
0
votes
1answer
95 views

XMonad error: xmonad-x86_64-openbsd: executeFile: Permission Denied

I'm running openbsd-6.3 with xmonad-0.13, I've tried using chmod -R +x on the .xmonad directory but when I use startx I get the error in the title. The xmonad.hs file also compiles with no warnings, ...
2
votes
1answer
241 views

How to change TCP congestion control algorithm on OpenBSD?

On FreeBSD, I can change the TCP congestion control algorithm via net.inet.tcp.cc.algorithm. On OpenBSD, there is no net.inet.tcp.cc.algorithm parameter. So, here is the question: How to change TCP ...
1
vote
0answers
52 views

Why does ^C on netcat client close the server whereas ^C on server doesn't close the client?

I tested on Ubuntu 18.04 LTS the venerable netcat. The netcat comes from OpenBSD: $ dpkg -l|grep netcat ii netcat-openbsd 1.187-1 amd64 ...
1
vote
0answers
143 views

OpenBSD not replying to ARP requests

I am setting up an OpenBSD system as a router, I have one interface as the upstream, then another with a vlan configured: Upstream(em0): inet 10.0.2.20 255.255.255.0 NONE description upstream ...
3
votes
4answers
350 views

Delay termination of script

I have a script like this (written for /bin/sh on OpenBSD) which first updates a local copy of some CVS repositories using rsync, and then updates the checked-out version of these on my machine. The ...
0
votes
0answers
120 views

OpenBSD not accessible through SSH without GPU

I'm new to BSD and installed OpenBSD 6.3 to a test server for education purposes. It's going to be a dedicated firewall eventually. During installation I used a graphics card to connect my monitor. ...
-1
votes
1answer
116 views

Can't Get Necromancer (OpenBSD VM) to connect to the network [closed]

I started playing Necromancer from Vulnhub (CTF). It was working just fine. I set the network adapter to bridged mode and I was able to capture every flag up to the point where I had to exploit SNMP. ...
1
vote
0answers
92 views

How do I connect to the internet with 3g usb modem (mobile broadband connection) in OpenBSD?

In order to install the GUI in OpenBSD! I know how to connect to wifi but now I have only 3g-usb-modem Huawei E171 and I don`t know how to connect to the internet via 3g-usb-modem in OpenBSD ! How can ...
0
votes
1answer
157 views

Dual boot OpenBSD with Mint

I want to dual boot mint with OpenBSD. I tried using the instructions here https://www.openbsd.org/faq/faq4.html but it doesn't seem to be working when using a live USB (using the amd64 download ...
2
votes
3answers
188 views

Why isn't there a /usr/include/GL directory on OpenBSD?

I have just recently made the switched for Linux to OpenBSD. So far, I am really liking the philosophy of including the bare minimum needed to run the system, and the emphasis for clean and simple ...
2
votes
1answer
163 views

How to install Xfce from tarball (source code) in OpenBSD without internet access?

I downloaded the Xfce tar.bz2 tarball file and I want to install Xfce. I can't install from the internet because of problems with my connection to the Internet. Who can help me to install Xfce from ...
0
votes
0answers
69 views

Wifi Applet for Lumina

I am tring to use Lumina in OpenBSD 6.3. I would like however to find a suitable wifi applet. I have tried wicd, but it is not exactly what I need. Some sugestions, please?
0
votes
1answer
489 views

After OpenBSD login, mouse and keyboard do not work

I just installed OpenBSD 6.3 on a Dell Optiplex G620 with 4 gigs of RAM, a USB keyboard and a USB mouse. The keyboard and mouse work until I log in. When the X Windows screen comes up, I get a ...
0
votes
1answer
99 views

How to complie OpenBSD in src?

Running on OpenBSD, I issue a: git clone https://github.com/openbsd/src.git then how can I compile all the OpenBSD binaries? Is there a "master" make file? I only need the binaries inside the src ...
1
vote
2answers
297 views

Convert a date to UNIX timestamp on OpenBSD

On OpenBSD 6.3 I can see: foo# date Sun Apr 1 17:00:45 CEST 2018 foo# foo# date -d "Sun Apr 1 17:00:45 CEST 2018" +%s 1522594858 foo# date Sun Apr 1 17:00:59 CEST 2018 foo# that "date" doesn't ...
-2
votes
2answers
372 views

How install packages in OpenBSD snapshot?

If I install the ISO from: https://cloudflare.cdn.openbsd.org/pub/OpenBSD/snapshots/amd64/ Then how can I install packages? Or there is no pkg_add method in snapshots? What do I need to do for ...
1
vote
2answers
557 views

Mounting Encrypted Softraid on OpenBSD

The Setup I have a machine that is running OpenBSD, it has two SSDs in it: sd0 and sd1. I've setup each SSD with two partitions a and d. From there I've built two mirrors using bioctl: The first ...
0
votes
2answers
180 views

Stack-register checking

https://marc.info/?l=openbsd-tech&m=152035796722258&w=2 OpenBSD introduced stack-register checking "It is opportunistically enforced by the kernel." -> this means it is optional? "When a ...
0
votes
1answer
183 views

OpenBSD LDAP authentication - ypldap high CPU usage

I have an OpenBSD server with login_ldap, ypldap, ypbind and portmapper is configured according to these guides that I managed to find courtesy of Google. http://obfuscurity.com/2009/08/OpenBSD-as-an-...
0
votes
1answer
73 views

OpenBSD - run several X servers at a time

I if install an OpenBSD 6.2, how can I run several X servers at a time? Purpose: have 2 "X servers" running Why?: one "X" would be used for general purposes, the other "X" would be used only for ...
2
votes
1answer
361 views

OpenBSD Memory protection mechanisms that are not enabled by default?

Besides the "S" option for malloc.conf and increasing kern.stackgap_random and removing the wxallowed mount option, what else memory-related hardening mechanism are in OpenBSD that can be turned on ...
1
vote
1answer
253 views

Why does Google Chrome need wxallowed option?

OpenBSD has great security mitigations too, ex.: W^X: https://en.wikipedia.org/wiki/W%5EX But, the /usr/local FS needs to have "wxallowed" mount option because of Google Chrome, because it won't ...
2
votes
1answer
131 views

Reverting OpenBSD Install In-Place

What I'm trying to do is revert my VPS running OpenBSD-current (following via binary updates, using snapshots and booting to ramdisk) to OpenBSD-6.2-release. It's not an important system, so if it ...
2
votes
1answer
550 views

Arrow keys in OpenBSD's ksh, command line editing, Vi-mode

I'm using the default ksh on OpenBSD 6.2 (based on pdksh) with Vi command line editing mode enabled. I'm trying to get the arrow keys to work properly as a complement to h, l, j and k (as I'm on a ...
0
votes
1answer
186 views

How to “fully” remove fuse support from OpenBSD?

How can someone remove the fuse support from OpenBSD? Would it require to recompile the kernel? Or just a config modifications or remove some binaries? How?
3
votes
2answers
2k views

How to properly enable httpd with rcctl on OpenBSD so that it starts automatically?

On a OpenBSD machine running OpenBSD 6.2 amd64, httpd cannot be started by using rcctl: # rcctl start httpd httpd(failed) However, when started by just entering httpd, it works; but this is not the ...
11
votes
1answer
2k views

How to mitigate Spectre and Meltdown kernel memory leaking CPU bug on OpenBSD?

Kernel-memory-leaking Intel processor design flaw forces Linux, Windows redesign and Reading privileged memory with a side-channel In recent news people could read about a kernel memory leaking CPU ...
-2
votes
1answer
676 views

How to install directly from a package *.tgz file in NetBSD, OpenBSD, or FreeBSD

Is there any way to install software from the *.tgz file that is its package, in NetBSD? Or indeed in operating systems with similar package managers such as OpenBSD or FreeBSD? For example, I can ...
6
votes
2answers
978 views

Incorrect UTF-8 accents in vi/vim on OpenBSD 6.2

After a default install of OpenBSD 6.2 with FVWM, I open an xterm on the FVWM GUI, with normal user, create a test file: $ echo 'árvíztűrő tükörfúrógép' > test.txt $ echo 'ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP' ...
2
votes
1answer
339 views

Human readable dd in OpenBSD?

# dd if=/dev/zero of=test.img bs=1M 11+0 records in 10+0 records out 10485760 bytes transferred in 0.652 secs (16074433 bytes/sec) # When I see: 16074433 bytes/sec I cannot determine, how much is ...