Questions tagged [openbsd]

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

9
votes
2answers
1k views

What does “Do you expect to run the X Windows System?” do when installing OpenBSD?

When installing OpenBSD 5.1, I got the question: Do you expect to run the X Windows System? What change does the installer make to my system if I say "yes"? I know what X Windows is, but I don't ...
18
votes
3answers
11k views

How should one set up full-disk encryption on OpenBSD?

Is there a preferred method to set up full-disk encryption under OpenBSD, similar to dm-crypt under Linux? I'm looking for full-disk encryption, as if someone were to steal my notebook they could ...
3
votes
4answers
2k views

How to guarantee the integrity of an OS?

In information security, integrity means that data cannot be modified undetectably. This answer raised my interest, of course, I want to guarantee the integrity of my OS, outlined here. Suppose a ...
56
votes
1answer
74k 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 ...
12
votes
3answers
20k views

How to block abusive IP addresses with pf in OpenBSD?

We can see from the nginx logs that there is an IP address doing nasty things. How can we block it with a pf command and then later permanently with the /etc/pf.log? How can we block a x.x.x.x/24 ...
2
votes
3answers
840 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 ...
10
votes
2answers
7k views

Google Chrome on OpenBSD

How can I install Google Chrome on OpenBSD?
8
votes
2answers
4k views

Adding Ctrl-L as “clear” hotkey in OpenBSD's ksh

I've been looking for a way to use Ctrl-L to clear the monitor instead of typing clear in each time. I found nothing except a patch which didn't work for me. How do I add hotkeys/shortcuts to my ...
4
votes
3answers
874 views

OpenBSD's pf: disable network access for a given user, except for ssh.

If we are using the default firewall for OpenBSD, how can we modify it to disable all the network access for a normal user except for one thing: we want to ssh to the user from random hosts! So ...
7
votes
2answers
3k views

Does OpenBSD have a limit to the number of file descriptors?

What's the maximum number of file descriptors that a process can get on OpenBSD successfully? For example, there is an openfiles limit in login.conf(5) in OpenBSD. If I want to have as many file ...
7
votes
2answers
5k views

How to edit a .gpg file with vi?

So I created a gpg encrypted file with password: gpg -c passwords.txt.gpg how can I open it with vi, edit it, then close it? (So that no passwords.txt file will be created, the decrypted passwords....
7
votes
2answers
11k views

Why is sudo telling me my password is wrong?

I recently installed OpenBSD 4.9 in my computer, so I could learn a little bit about Unix-like operating systems. I added a new user to the system called bruno. Ok. When I use the 'sudo' command, it ...
6
votes
3answers
2k views

OpenBSD 6.0 ntpctl says “clocked synced” but is ~26 seconds behind

My OpenBSD host is running NTPD but is 26 seconds slow, despite it saying "clock synced": user@host:~# ntpctl -sa 4/4 peers valid, clock synced, stratum 3 peer wt tl st next poll ...
4
votes
2answers
7k views

How to enable Broadcom wireless BCM 4313 on OpenBSD?

Is there any hack/tip/trick to make this specific Broadcom Wireless work with OpenBSD? After digging some FreeBSD-wireless threads and OpenBSD-tech/OpenBSD-misc, I noticed that adding the PCI vendor ...
3
votes
1answer
571 views

How to create a user with minimalistic permissions on OpenBSD?

I want to run the webbrowser (xxxterm) with a different user (XY) on an OpenBSD Desktop (different user from the one I use daily). I will reach the Browser with ssh -X in the local machine (or are ...
1
vote
2answers
345 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 ...
9
votes
2answers
545 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 ...
9
votes
1answer
2k views

USB audio only outputs white noise

I am running OpenBSD/i386 5.1 on a 5 year old laptop. The speakers and headphone port work, but the headphone port is a little loose so I am trying to install an external USB sound card (Fiio E17 USB ...
4
votes
1answer
2k views

Does OpenBSD use bcrypt by default?

http://codahale.com/how-to-safely-store-a-password/ with what does OpenBSD store the password by default? They say bcrypt is way more secure then hashing. I googled' it and obsd supports bcrypt, but ...
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 [...
3
votes
0answers
922 views

DNS resolution problem with OpenBSD

During boot up, messages flashed on my computer screen, among which are the following: DHCPACK from 192.168.200.1 bound to 192.168.200.12----> renewal in 432600 seconds The contents of my /etc/...
3
votes
1answer
1k views

How can I capture an OpenBSD install console?

So.. How can I save the text that is based on Q/A's when installing an OpenBSD 5.3? Or I only have the choice to manually type the texts down? or an OCR software using printscreens?
2
votes
2answers
1k views

OpenBSD 6.1 not updating

I am using Openbsd 6.1/amd64 here. Suddenly, I am no longer able to update or install a package. When trying to do a pkg_add vlc I am greeted with the message: https://ftp.OpenBSD.org/pub/...
2
votes
1answer
254 views

OpenBSD with only a /32 repeatedly deletes its static route to the world

I have OpenBSD 5.9 on a virtual private server. Like other people in these days of No More IPv4 Address Space For You, the machine is allocated only a /32, i.e. a LAN of just a single IPv4 address. ...
1
vote
2answers
4k views

Problem with WPA connection on OpenBSD

I have an OpenBSD 5.3 amd64 installed and Intel WiFi Link 1000 card which works with WEP but I obtain a strange message with WPA keys: # sh /etc/netstart iwn0 iwn0: no link ............. sleeping #...
1
vote
0answers
476 views

Unable to surf internet with VPN on OpenBSD

I am using OpenBSD 5.7-amd64 with the latest patches applied. I downloaded and installed OpenVPN (package version: openvpn-2.3.6.tgz) available for OpenBSD 5.7 using the following command: sudo ...
1
vote
1answer
208 views

What audited server programs are shipped in a default OpenBSD install?

OpenBSD has a process by which they audit programs by doing a "comprehensive file-by-file analysis of every critical software component". Which OpenBSD programs have been audited? Is there a list? I ...
1
vote
0answers
695 views

How do I stop charging the battery way prior to 100% in OpenBSD?

I'm thinking about using a netbook as an OpenBSD server. I'd like it to have UPS -- so the integrated battery is quite useful. However, I'm very familiar with the batteries going dead very quickly ...
0
votes
1answer
202 views

Remove/Uninstall desktop environment from second user account on OpenBSD

During the installation process of OpenBSD 5.7, I created a user account, user1, belonging to wheel group. Subsequently I installed a desktop environment after logging into my user account. This ...