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.

0
votes
1answer
2k views

where does lpd and lpr log error and messages?

Where can I find error and log messages from lpd and lpr? I don't find any ouput when I run "lpr /tmp/test_file" This terminates without any error. I had looked for /etc/rc.d/lpd and it is failed. ...
3
votes
2answers
837 views

XEN or KVM: which provides more reliable support for FreeBSD/OpenBSD guests?

Which hypervisor provides more reliable support for the most popular two BSDs? I read an article that Linode moved to KVM from XEN, and found a page named 'guest support status' on linux-kvm.org, but ...
2
votes
2answers
1k views

Is there a way to query an OpenBSD package by description?

In OpenBSD's package manager, I was hoping it was possible to search by keyword in the packages comment/description section, not just by package name. This is for the remote repository listed in $...
2
votes
1answer
190 views

Dynamic webpages on BCHS

Ok now that I have generously coated myself in flame-war retardant. I have an existing webapp/server written in c++/qt. Having selected OpenBSD as the hosting OS for security reasons. If I use ...
1
vote
1answer
333 views

Host part of DHCPv6-assigned router address

I got my IPv6 prefix via dhcpv6 (/48) on my personal (OpenBSD) router. So the inside interface get partially configured by dhcpv6. I would like to know if it's possible to define the host part of it. ...
1
vote
3answers
2k views

I don't know how to bootstrap Certbot on your operating system

I'm trying to add an Let's Encrypt cert on to my OpenBSD 6.0 using an acme-client and certbot - but both returns me: # ./letsencrypt-auto certonly Sorry, I don't know how to bootstrap Certbot on ...
2
votes
1answer
2k views

How to use /etc/hosts in unbound DNS server?

I followed the https://www.openbsd.org/faq/pf/example1.html to set up an unbound DNS nameserver on a box. Question: how do I configure the unbound DNS server to also use the /etc/hosts file on the ...
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 ...
1
vote
1answer
97 views

Building dynamically driven web sites with Mason (Perl) with httpd on OpenBSD current

Is it possible to build dynamically driven web sites with Mason (Perl) with httpd on OpenBSD current? See The Mason Book and the introduction to OpenBSD's httpd.
2
votes
2answers
1k views

How to autostart KDM on boot in OpenBSD 6.0?

I have installed kde4 (via running # pkg_add kde4) on my OpenBSD 6.0 VM and I would like to automatically boot KDM on startup. I have followed the most applicable guide Google found me, but it didn't ...
2
votes
1answer
131 views

Why is cut not cutting at the right column?

# uname -mrs OpenBSD 6.0 amd64 # RANDOMNUMBER() { /usr/bin/openssl rand -hex 64 | tr -dc 0-9 | /usr/bin/cut -c-4;} # while true; do WTF=$(/usr/bin/strings /dev/arandom | head -$(RANDOMNUMBER) | sort -...
-2
votes
2answers
180 views

Console server under OpenBSD self-made

How do I configure a console server under OpenBSD. Want to access via ssh on the console server to access the serial port from everywhere in the world. Want to use only OpenBSD, so the console server ...
0
votes
1answer
356 views

How to enable and check status of guard pages in OpenBSD?

G “Guard”. Enable guard pages. Each page size or larger allocation is followed by a guard page that will cause a segmentation fault upon any access How can I enable guard pages to harden an ...
3
votes
1answer
505 views

Mark binaries writable and executable in openBSD

As of OpenBSD 6.0 mandatory W^X enforcement is implemented. Binaries that need permission to violate this rule can be marked with the ld command: Identify W^X labelled binaries at execve(2) time ...
2
votes
1answer
253 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. ...
2
votes
2answers
571 views

Why would root need to run unrestricted commands as itself via doas?

I've just come across doas, and while reading the man page for its configuration I found this example: The following example permits users in group wsrc to build ports; wheel to execute commands as ...
2
votes
1answer
517 views

how to setup network routing table for wireless network

I'm trying to connect my OpenBSD 5.8 laptop to a wireless network at home (cell phone hotspot). Note that the status says "no network" from ifconfig. The netmask and default gateway address I took ...
1
vote
1answer
560 views

Barnyard 2 install failing on OpenBSD

I'm new to OpenBSD, but I'm having issues with getting Barnyard to install after running the make command. I've ran ./configure and ./configure --with-mysql and both end up with the same error when ...
1
vote
1answer
1k views

How can I install OpenBSD using the serial console, without external monitor? With a bootable USB stick?

How can I install OpenBSD on my HP Server using the serial console, without external monitor? I have no monitor in the Datacenter, but I have my Laptop with Debian/GNU/Linux. So far so good. How do ...
1
vote
0answers
553 views

Is it possible? Three OpenBSD 6.0-current firewall bridges with only one OpenBSD Server?

Is it possible to configure several firewall bridges with one OpenBSD server which has 6 nic's. In this case 3 OpenBSD firewall bridges from each other completely independent? cat /etc/sysctl.conf ...
3
votes
1answer
2k views

OpenBSD Remote Desktop

Does OpenBSD have a built-in remote desktop server? If not, what is the most preferred remote desktop server people run on OpenBSD?
1
vote
2answers
936 views

Applying NAT to traffic from GRE tunnel in OpenBSD PF

All I have a Cisco 877 router and a Linode VPS running OpenBSD 5.9 with a GRE tunnel running in between, which works great and I can ping from either side. I have set up a static route in the Cisco ...
0
votes
1answer
185 views

How to install xcfe on OpenBSD 5.9

I tried following the instructions but nothing works. I get a msg that "can't connect or login to host ftp.openbsd.org" Why? It doesn't even get started. My internet connection works and I'm trying ...
0
votes
2answers
435 views

OpenBSD - X Window system - no choice on reinstall

I have an AMD64 desktop that I currently run a Centos client on and today I got inspired to convert it into a BSD machine with a gnome desktop environment. I have been running an open BSD server on ...
1
vote
0answers
3k views

OpenBSD - doas.conf (operation not permitted) [closed]

First time OpenBSD user and trying to setup and configure a simple doas but I can't figure out the correct syntax. I set up a doas.conf file in /etc to test using the following: permit :wheel permit ...
0
votes
1answer
39 views

Checking that $((a * b)) evaluates in my own shell [closed]

POSIX seems to define that a shell should be able to evaluate like a calculator the expression $(( a * b)) where * is a binary operator +, - or *. I programmed such a calculator for my own shell and ...
1
vote
2answers
394 views

How to benchmark different shells [closed]

I want to know if shell 1 is better for a job than shell 2 with a test that I handle maybe with shell 3 for example ksh, dash, bash or zsh. I use a test script that builds my projects, starts it,feed ...
0
votes
1answer
3k views

OpenBSD 5.9 in Virtual Box

Can we confirm that bidirectional copy paste won't work between Virtual box and host os? I have installed OpenBSD 5.9 in VirtualBox where it runs fine and I want to enable copy paste between guest and ...
3
votes
1answer
104 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/...
1
vote
1answer
360 views

OpenBSD 5.9 fetching the source code via CVS after fresh installation of OpenBSD 5.9 # anoncvssh: cant' load library 'libc.so.84.2' [closed]

I use OpenBSD for 4 years on this hardware, without any problems. Since I'm using this computer as a build system, each release will be reinstalled. Then, OpenBSD will be raised to stable, with cvs. ...
0
votes
1answer
243 views

Can all of fork(), exec() and system() be wrong? [closed]

I understand why it could be less than best practice if I write C code that executes shell commands by calling system() and that it's better to use exec and fork but then a very experienced C ...
1
vote
1answer
378 views

Connect to commercial VPN on OpenBSD 5.9

I recently installed OpenBSD 5.9 and I'm trying to get it functional enough to use as a replacement for Debian. One thing where I hit a brick wall is connecting to my VPN. I use a commercial VPN which ...
3
votes
2answers
7k views

How to enable pkg_add for OpenBSD

I installed and run OpenBSD and I wanted to install git but there were no repositories for OpenBSD. What should I do if I want to install some programs with pkg_add?
4
votes
1answer
848 views

OpenBSD httpd.conf conditionals

Note: this question is about the built-in OpenBSD http server named httpd and its configuration. It does not apply to any other web servers. Is it possible to make runtime conditional configurations ...
3
votes
3answers
555 views

OpenBSD stripdown

I recently tried to install OpenBSD to my Soekris net4526, but the 64MB onboard memory is too small. Is there any way to make OpenBSD smaller, because even the smallest configuration (bsd and baseXX....
3
votes
1answer
994 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 ...
0
votes
1answer
73 views

I have 5 IP addresses and use opensmtpd as the mail server on Debian 8.3. The mail server uses the main IP as standard

I have 8 IP addresses on my RootServer, and use OpenSMTPD as the mail server on Debian 8.3. The mail server uses the main IP as standard Ip. How can I tell the mail server www.OpenSMTPD.org to use a ...
4
votes
1answer
984 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/...
1
vote
0answers
690 views

Setting up IPSEC on LAN between two hosts (OpenBSD)

I originally asked this on ServerFault, but got nothing. Hoping there are some OpenBSD experts here Trying to use IPSEC between two hosts on a LAN. No VPN involved Using OpenBSD 5.8 (in VirtualBox). ...
0
votes
0answers
96 views

I have a stable release with OpenBSD 5.8 built. I'd like to upgrade OpenBSD 5.8 now on stable!

The new kernel bsd I just copy with scp on the root server /bsd. scp /usr/rel/bsd base58.tgz man58.tgz vim@10.10.10.10:/ && ssh -l vim 10.10.10.10 && cd / && tar -xzvphf ...
0
votes
1answer
603 views

I use OpenSMTPD on OpenBSD 5.8! How can I automatically encrypt E-mail with OpenSMTPD

How can I automatically encrypt all outgoing E mail? My scenario: I use XXXX@gmail.com as my relay for all Emails my OpenSMTPD Server forwards All Emails to me as well as all Emails from somewhere to ...
1
vote
1answer
797 views

alias su='su -' in .kshrc

I'm on OpenBSD 5.8, new to ksh and I put the string alias su='su -' in my .kshrc file as the only line. After logging in via ssh alias su gives me su alias not found and $(cat .kshrc) gives me ...
2
votes
1answer
335 views

OpenBSD- ignoring a particular keypress

I am using a Lenovo Yoga and the screen always sends out some "keystrokes" to indicate its orientation or simply being open, I don't know. On Linux, I could ignore those keystrokes with setkeycodes ...
1
vote
0answers
504 views

Fatal IO error 35 - X problem [closed]

Edit: Everything works well on OpenBSD 5.9 Good job! I have a problem with running X on my OpenBSD 5.8. Hardware is Lenovo m57 USFF with Core 2 Duo and Intel GMA3100 graphic. machdep.allowaperature ...
1
vote
1answer
962 views

Kill process on specific port

It has been asked before but how to do it with OpenBSD? I tried some different method but none worked. $ sudo fuser -k 80/tcp fuser: 80/tcp: No such file or directory $ kill $(sudo lsof -t -i:80) ...
2
votes
2answers
774 views

Is it possible to upgrade OpenBSD over a network?

I have an OpenBSD 5.5 system that I once had physical access to and I was able to plug in a monitor to upgrade from 5.0 to 5.5. Now it is installed in a location away from my residence in a spot ...
1
vote
2answers
229 views

OpenBSD: is safe to delete /usr/src?

After I successfully upgraded OpenBSD, I wanted to upgrade my sources. I want to know, is it safer to delete /usr/src and then extract src.tar.gz, or is it better to preserve the already existing /usr/...
2
votes
1answer
843 views

How do you configure the mail command to read Maildir instead of the default mbox on OpenBSD?

By default the mail command on OpenBSD seems to read from mbox files. I configured smtpd to ... deliver to mbox and I was able to read newly delivered mail using the mail command. I want to switch to ...
1
vote
0answers
59 views

User creation during authentication

I'm working with OpenBSD 5.6 and the goal is that I need to create user when he or she tries to authenticate with specific password. I've written a script for this purpose and everything goes ok but ...
1
vote
1answer
372 views

How to install pkg_add in a fresh OpenBSD 5.8 installation?

I installed OpenBSD into a Virtualbox using the install58.iso and installing all sets. Now I want to install more packages via pkg_add which is not in the users nor roots path. How do I get pkg_add? ...