Questions tagged [openbsd]
OpenBSD is a BSD variant with a strong security and code correctness focus.
512
questions
1
vote
1
answer
243
views
OpenBSD 6.7 Wireguard instructions fail
Wireguard setup instructions don't work for me on my OpenBSD 6.7 machine:
$ uname -a
OpenBSD foobar 6.7 GENERIC.MP#3 amd64
$ sysctl kern.version
kern.version=OpenBSD 6.7 (GENERIC.MP) #3: Thu Jul 9 07:...
4
votes
3
answers
2k
views
Does *BSD have the ability to encrypt a system partition with full disk encryption?
Does FreeBSD, NetBSD, or OpenBSD have an encryption feature like Linux's dm-crypt?
And will it work for a system partition?
0
votes
1
answer
696
views
Configuring networking with QEMU for OpenBSD 6.7 guest on Debian Buster host
I have a host machine running Debian 10 and am using QEMU to run an OpenBSD 6.7 guest (amd64). My current invocation of QEMU is as follows:
$ qemu-system-x86_64 -m 512 -drive if=virtio,file=my_image....
5
votes
1
answer
6k
views
How come I can't use `\` to continue a line in crontab?
The acme-client(1) man page suggests the following cron entry:
~ * * * * acme-client example.com && \
rcctl reload httpd
When I add to crontab the edit is not saved when I use ...
0
votes
2
answers
310
views
How to use interface name instead of IP addresss on IPFW?
add 04000 allow IP from 192.168.1.10 to ca-vancouver.privateinternetaccess.com keep-state
I want to change to epair0b because I want to avoid hardcoded IP address and I would like to use DHCP instead
...
0
votes
0
answers
209
views
OpenBSD installation script does not recognise SATA-connected drives
My question is one that has been posted here before but merits a new thread since the solution given did not work for me. During the OpenBSD installation, only one device is recognized as a candidate ...
0
votes
1
answer
1k
views
Permission denied opening socket / connection with rsync in OpenBSD
I recently was trying to retrieve a copy of UCE (spam) sender IPs from uceprotect.net with rsync, but I encountered the following errors:
[user@host ucedata]$ rsync -rzv rsync-mirrors.uceprotect.net::...
1
vote
1
answer
165
views
What is the canonical way to have wifi devices reconnect?
On openbsd6.7 I was able to get the urtwn driver to work easily, by setting up a /etc/hostname.urtwn0. I can connect to different APs defined by separate join statements.
However, when I suspend/...
0
votes
1
answer
145
views
Start network connections last on boot
Running OpenBSD 6.7 as my perimeter device with a number of services installed to monitor the network.
The problem is netstart runs early in the boot process resulting in the interfaces being ...
1
vote
1
answer
263
views
Routing on all interfaces
I recently got a small single board computer to replace the horrible router provided by my ISP.
Following this example:
https://www.openbsd.org/faq/pf/example1.html
em0 is my WAN, em1 is an AP, and ...
2
votes
1
answer
337
views
OpenBSD: downloading and installing php packages
How do I download and install packages from the command line in OpenBSD?
As an example, in Fedora, to download the php pecl-memcached package from the command line, I just do this:
dnf install php ...
0
votes
1
answer
883
views
mount_null / mount --bind equivalent for OpenBSD
What's the most efficient way of making an already mounted directory available within a chroot'ed environment (e.g. webserver)?
I know that Linux offers the mount --bind option and other BSD variants ...
1
vote
0
answers
633
views
Mail sent with mutt is not dkim signed
On OpenBSD 6.6 I'm sending mail with mutt and it isn't being DKIM signed.
I am new to OpenBSD, mutt, and rspamd, so any help much appreciated.
$ cat ~/.muttrc
set editor = nano
set pager = lynx
set ...
2
votes
0
answers
213
views
OpenBSD ipsec routing
I have an OpenBSD VM that I wish to connect to my OpenBSD home router with ipsec. The objective is to have a secure channel between my home network and the VM.
So I have the following ike conf' on ...
0
votes
2
answers
472
views
Where is DHCP data stored on OpenBSD?
I'm currently testing with some DHCP and I'm wondering how I can verify if options like "option host-name" or "option domain-name-servers" really worked on the client machine (OBSD 6.6). Where does it ...
0
votes
1
answer
2k
views
How do I install OpenBSD/ARM in qemu?
Could you share a specific command line & which file I need to download to make this work?
If you have a link to an OpenBSD/ARM image that is already installed (and a commandline to run it), that ...
0
votes
1
answer
110
views
Compaq CQ58 with RT3290 and with OpenBsd 6.6 do not want to switch on WiFi card
I have Compaq CQ58 with combo wireless card RT3290.
OpenBSD 6.6.
Wifi key F12 lights orange.
This command:
ifconfig ral0 scan
says, besides other info, that status: no network
and that cannot ...
0
votes
1
answer
368
views
OpenBSD Unix Wifi Wireless Networking IDIMAX N150 USB Wifi dongle issue
I was able to successfully install OpenBSD 6.6 on a Dell Latitude e6400 laptop I have, that I installed an SSD drive on. It works great with Ethernet LAN with cat6 cable to my internet router, no ...
0
votes
1
answer
519
views
OpenBSD Unix USB Install, BIOS Recognizes hard drive, but OpenBSD Install does not recognize
I have a Dell Latitude e6400 laptop, that I am trying to install on from a USB drive, the BIOS Recognizes the hard drive and also lists the hard drive size, but during install from USB, OpenBSD is ...
1
vote
1
answer
975
views
OpenBSD: Where to seek for the source of programs in the base system?
In OpenBSD, I use pkg_info -E $(which [cmd]) to be supplied with the name of the package/port to the executable/command [cmd]. Having this information I can further look for the source code to the ...
0
votes
1
answer
271
views
OpenBSD how to Create node for wd1 block device?
On OpenBSD, during install:
Via dmesg | grep wd1 -A1 I know this information:
wd1 at pciide0 channel 0 drive 1: <VBOX HARDDISK>
wd1 128-sector PIO, LBA, 450MB, 922496 sectors
however I cannot ...
2
votes
1
answer
736
views
OpenBSD Unix 6.6 Gnome 3.2 Side Effect Issue on Window Manager
I have several older Dell laptops and have been putting them to good use by installing Linux and BSD Unix. I wanted to learn OpenBSD Unix so I installed it on a Dell Vostro 1500 I have with 2Ghz Intel ...
8
votes
2
answers
696
views
Bounds in awk regular expression do not work on OpenBSD
This awk expression prints inet 34.45 as expected on OpenBSD:
echo "inet 34.45" | awk '/inet [0-9]+\./ { print }'
However, when I replace the + with a bound {1,3}, I am not getting any match:
echo "...
8
votes
1
answer
659
views
Packaging binary release on OpenBSD
I have a tiny application written in go and I've cross-compiled it to various operating systems.
Currently my Makefile generates myapp-VERSION-OS-CPUARCH.tar.gz packages to be used as a source ...
4
votes
2
answers
2k
views
Historically, what was the first OpenBSD remote hole?
On:
https://www.openbsd.org/
I can see:
Only two remote holes in the default install, in a heck of a long
time!
I understand the concept what are they pointing out, since other OSes have ...
1
vote
1
answer
3k
views
Is there anything similar to CrystalDiskMark for UNIX?
If you're shopping for an SSD, you've surely seen one of those screenshots from CrystalDiskMark with a few green squares, and the 2x4 matrix with results of doing read/write tests for the given ...
4
votes
1
answer
766
views
How to make a custom OpenBSD distribution?
Goal
Create a custom distro that comes with a desktop environment and other desktop utilities, general applications, custom ~/.xsession, etc.
Basically, a simple image for usage with OpenBSD ...
1
vote
0
answers
401
views
polkit on OpenBSD
I use xfce which came with a polkit action org.xfce.thunar.policy in /usr/local/share/polkit-1/actions/.
This action allow to run thunar as root if you can give the root password.
On debian with ...
6
votes
2
answers
306
views
ssh-keygen and its -Z option on OpenBSD and on RHEL
I'm following along a rather good text about SSH certificates written for RHEL 6 and openssh-5.3p1-94.el6 (which makes it about 10 years old) while trying to mimic the examples on my OpenBSD-current ...
1
vote
1
answer
1k
views
OpenBSD pf - redirect all DNS queries to local DNS server
Our little home network:
ISP -> ROUTER -> SWITCH -> WIFI APs -> CLIENTS
ROUTER: OpenBSD 6.5, giving DHCP+fwing internet to the WIFI APs. Based on https://www.openbsd.org/faq/pf/example1.html#pf and ...
5
votes
2
answers
3k
views
No gcc executable after pkg_add gcc on OpenBSD
I installed gcc from packages on OpenBSD 6.5
# pkg_add gcc-8.3.0
gcc related files are installed at /usr/local/lib/, but no gcc executable is found.
# gcc
-bash: gcc: command not found
(I'm aware ...
2
votes
2
answers
1k
views
cut now has a line length limitation?
I had a script, with a 25,000 character input that I was using 'cut' on:
...\n" | cut -c -$LENGTH
I didn't use it that frequently, but it was working (oh, about a year or two ago). Granted, my ...
2
votes
1
answer
15k
views
How to connect to WIFI in OpenBSD?
Question: How to connect to WIFI on OpenBSD?
Currently I have tried:
# ifconfig iwn0 nwid <network-name> wpa wpapsk `wpa-psk <network-name> <my-passphrase>`
But it responds with ...
1
vote
1
answer
569
views
How to start Lumina by default? [OpenBSD]
Question: How do I configure OpenBSD to start Lumina by default instead of OpenBSD's default desktop environment?
2
votes
1
answer
5k
views
How to change window managers?
I have been trying to change my window manager from the default cwm to something different (probably OpenBox).
Reading some articles online, it appears the configuration would be in the $HOME/....
2
votes
1
answer
504
views
Is it possible to use vmm/vmd for non-CLI VMs? [OpenBSD]
Question: Can vmm/vmd/vmctl be used for non-text virtual machines?
I have been considering setting up OpenBSD as a dedicated operating system to run virtual machines. However, it appears that these ...
1
vote
1
answer
5k
views
OpenBSD - How to start x by default?
Question: How to startx by default in OpenBSD?
Backstory: I recently reinstalled OpenBSD and it doesn't load the Desktop Environment environment and is text-only upon startup.
Personally, I like ...
1
vote
1
answer
6k
views
OpenBSD - How to manage users that can be SSH into?
Question: How do I disable/enable which users can be connected to via SSH?
Can all users be connected into SSH by default or do I need to enable it for the user first?
3
votes
2
answers
4k
views
OpenBSD - How to set static IP?
Question: How to set static IP in OpenBSD/LibertyBSD?
Backstory: I recently purchased a *BSD VPS and have been having some issues with networking. How do I set the IP address?
0
votes
0
answers
95
views
Is there a test Suite for netcat (nc)?
Is there a test suite available for the openbsd implementation of netcat?
A POSIX compatible test suite would also suffice.
Specfically for functional testing. I'm trying to play with the pledges in ...
2
votes
1
answer
2k
views
What 'file sets' to install on a basic OpenBSD server to be used as a Tor relay?
I want to install a minimal OpenBSD 6.5 (x86_64) server to run a Tor relay. On Debian I would select ssh-server and usually standard system utilities in tasksel for a basic server install. What is the ...
1
vote
0
answers
1k
views
Running OpenBSD 6.5; "rcctl start xenodm" does not start Xwindows, it returns "xenodm(ok)"
I installed gnome today on OpenBSD 6.5. Since we no longer use startx, I did rcctl enable xenodm. There were no errors. Then I did rcctl start xenodm. The only response was one line of text: xenodm(ok)...
4
votes
2
answers
548
views
Test suites for utilities (cat, cp etc) Linux or BSD?
Are there any test suites available for the small programs usually shipped with the operating system? Specifically, programs like cp, cat, dd etc (anything in /bin/) on Linux or BSD; OpenBSD being the ...
0
votes
1
answer
305
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 -...
2
votes
1
answer
1k
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
...
3
votes
2
answers
3k
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 ...
12
votes
2
answers
817
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.
...
1
vote
1
answer
250
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 ...
0
votes
1
answer
1k
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
1
answer
2k
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 ...