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

learn more… | top users | synonyms

1
vote
3answers
1k views

How to disable inetd and sendmail under OpenBSD 5.1?

# grep '^inetd_flags="' /etc/rc.conf inetd_flags="NO" # for normal use: "" # grep -i 'sendmail_flags="NO"' /etc/rc.conf sendmail_flags="NO" # after a reboot..: two questions: # ps -...
3
votes
3answers
125 views

How to duplicate a daemon?

I want to run two instances of dnscrypt client proxies, but I'm having trouble making them automatically start at boot. Here is what I tried: In rc.local, this is the first: /usr/local/sbin/dnscrypt-...
1
vote
1answer
27 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 ...
1
vote
0answers
58 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 ...
2
votes
1answer
863 views

PDF reader for OpenBSD that has default disabled JAVA/JavaScript/etc.?

I'm searching for a PDF reader that doesn't supports Java, JavaScript in PDF files (and other unneeded things what is only used in 1% of the PDF files, but can cause security issues). Or there isn't ...
1
vote
1answer
28 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 ...
2
votes
1answer
65 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 ...
6
votes
4answers
12k 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 ...
4
votes
1answer
86 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 ...
4
votes
1answer
110 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/...
7
votes
2answers
2k 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....
0
votes
1answer
109 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 ...
0
votes
0answers
26 views

BPDU protection with Transparent OpenBSD 6.0-current Firewall Bridge

Is it possible with OpenBSD? I would like to implement BPDU protection and filerting with my Transparent OpenBSD 6.0-current Firewall Bridge, and loop protection with rstp Is the ...
1
vote
0answers
34 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
57 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
0answers
34 views

opensmtpd - configuration for sending email only

So what do I want for a unix server (OpenBSD 5.9 for the record): smtpd is OpenSMTPD 5.9.1 send email to the "Internet" from local users with "from" in enveloppe and "From:" headers to be of the ...
2
votes
1answer
507 views

How to move the /var/www directory to a USB HDD?

I have a default OpenBSD 5.1 install. How Can I enabled httpd, OK. QUESTION: How can I use the /dev/sd0a on /mnt/usbhdd type ffs (local, nodev) instead of the default "/var/www" directory? What ...
0
votes
2answers
36 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 ...
7
votes
2answers
2k views

NAT and source IP filtering in PF, using OpenBSD >= 4.7

I just read a book about PF (The Book Of PF, No Starch), but there's one question not answered by it. If I have a gateway machine using two interfaces, $int_if and $ext_if, and I NAT the packages ...
0
votes
1answer
59 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
1answer
68 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 ...
1
vote
0answers
104 views

OpenBSD - doas.conf (operation not permitted)

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
0answers
25 views

Compile project with cmake for OpenBSD 5.9

I'm writing a shell and have compiled and run it with Ubuntu. It previously built and ran with OpenBSD 5.9 earlier, but now I get compiler error that I don't understand. $ make [ ...
0
votes
2answers
81 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 5.9. What should I do if I want to install some programs with pkg_add?
1
vote
1answer
184 views

chroot cannot find cgi file

I am unable to serve or execute a cgi file, and the cause seems to be that chroot is unable to find the cgi file when the permission is set to executable. $>ls -l /var/www/my/dir/test.cgi -rwxr-xr-...
4
votes
1answer
293 views

How do I delete a partial package in OpenBSD

While upgrading, I tried to add a package that was already there and due to some error, a partial package got created - partial-gnutls. When I try to delete this partial package, I get these errors: ...
1
vote
2answers
51 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
29 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 ...
3
votes
1answer
51 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 ...
0
votes
1answer
114 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 ...
1
vote
1answer
71 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
37 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 ...
2
votes
3answers
87 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....
1
vote
3answers
2k views

Is there a valid alternative to top for OpenBSD?

I like very much htop, on GNU/Linux is very nice, I would like a similar software for OpenBSD 5.6. Anyone knows something about that?
1
vote
0answers
92 views

Fatal IO error 35 - X problem

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 ...
2
votes
1answer
2k views

Courier IMAP - Account's mailbox directory is not owned by the correct uid or gid

so i poked around and found out that DEFDOMAIN="@domain.se" is messing things up, so i removed that from /etc/courier/imapd and i got to the point where SMTP work and i get this from the IMAP: Jul 2 ...
4
votes
3answers
3k views

How to disable IPv6 on OpenBSD?

I'm sure that in my network I will not use IPv6 only IPv4. So according to the KISS principle I will need to disable it. How can I do it? OS is OpenBSD 5.1.
1
vote
2answers
56 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/...
0
votes
1answer
239 views

Centrino N-6300 OpenBSD 5.5 - No Link

I have a Lenovo X230 with a Centrino N-6300 wifi card. I cannot get wifi to work on it. I did fw_upgrade I can do a ifconfig iwno scan I have the list of Wifi networks around including mine. ...
2
votes
2answers
78 views

How do I add more IP addresses to my pf rules?

I wish to have all internet traffic to go through my VPN; when my VPN is disconnected, all internet traffic can not go out of my workstation/desktop (not server). I wish to switch VPN servers of one ...
10
votes
3answers
8k 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
1answer
61 views

“persist” attribute in OpenBSD Tables

According to OpenBSD's FAQs on "Tables" (http://www.openbsd.org/faq/pf/tables.html), without the persist attribute, the kernel will automatically remove the table when the last rule referencing ...
4
votes
3answers
678 views

Does sysctl kern.bufcachepercent not work in OpenBSD 5.2 above 1.7GB?

I run OpenBSD/amd64 5.2 on a system with 12GB of RAM, and I want to use about 6GB to 8GB for filesystem caching. By default, 5.2 amd64 comes with sysctl kern.bufcachepercent set to 20 (20%); I've ...
1
vote
1answer
76 views

OpenBSD cannot find host names

I have a openBSD instance under vultr. I installed OpenBSD 5.8 and I can ssh into it just fine. But I cant seem to be able to use pkg_add, ftp, ping or any other internet dependent program. For ...
0
votes
1answer
39 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 ...
1
vote
0answers
115 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
118 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 ...
0
votes
0answers
40 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 ...
1
vote
1answer
98 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) ...
3
votes
1answer
109 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 ...