Questions tagged [openbsd]

OpenBSD is a free, multi-platform 4.4BSD-based UNIX-like operating system with a focus on security, portability, standardization, code correctness, proactive security and integrated cryptography.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

opensmtpd: how to say "internal network"?

hardwired constants in my smtpd.conf are causing problems with IPv6 prefix delegation, so I wonder if there is some abbr. for "internal network"? Something like # table localnet { 10.10.10.0/...
Harri's user avatar
  • 11
0 votes
0 answers
50 views

Wireguard peer rejecting traffic

My Wireguard setup randomly stopped working yesterday and I don't know how to trace the source of the problem. I inspected the traffic with Wireshark and it shows that the traffic gets sent from the ...
Andy Vavilov's user avatar
0 votes
1 answer
1k views

Nginx cannot find files outside of /var/www directory in OpenBSD

I am setting up an nginx webserver for a new website, and I'd like to set the root directory for by webserver to srv, so I created the /srv directory and placed all webserver files there, but nginx is ...
skytanium's user avatar
1 vote
1 answer
335 views

Port forward DNS using pf

On OpenBSD, I can successfully & transparently forward ports 80 and 443 to services running on custom, unprivileged ports using the following /etc/pf.conf: tcp_pass = "{ 22 80 123 443 }" ...
neezer's user avatar
  • 810
1 vote
0 answers
530 views

How to create a non-admin user in OpenBSD to be able to login as a root like in Linux-based systems?

Usually, in Linux-based systems I create new user without admin rights (sudo group). I'm able to login as that user via SSH and then, when I need admin rights, I can just, $ su root ...entering pwd... ...
Emilien Vidal's user avatar
1 vote
0 answers
129 views

permission denied when writing to mounted directory exported by NFS server running on OpenBSD OS

I have a default installation of openbsd, with portmap, mountd, nfsd services started by via rcctl. I have following entry in /etc/exports /nfs/testdir -alldirs -maproot=root -network=192.168.0 -mask=...
Kabira  K's user avatar
  • 133
0 votes
1 answer
3k views

How to add a static route to a host via interface using 'route' tool?

I'm new to *bsd systems. Usually in linux-based I add routes like that: # eth0 ip address ip a add 10.100.1.2 dev eth0 # gw is accessible via eth0 interface ip route add 10.100.2.1 dev eth0 # ...
Emilien Vidal's user avatar
1 vote
1 answer
211 views

OpenBSD 7.2: Mailbox file in users' home directory - use Postfix or stick to default sendmail?

I need to setup a mail server with a bit unusual requirements: OpenBSD is a must. Probably latest version, 7.2. All mails have to be stored in aa Mailbox file located in user's home directory. Well, ...
AAA's user avatar
  • 21
1 vote
1 answer
498 views

Simple OpenBSD NAT router not working

I'm toying around with using OpenBSD as a NAT router behind Starlink but efforts with the NAT are failing even in the simplest cases. I've probably simply been staring at it too long and need an ...
Brian M. Hunt's user avatar
1 vote
0 answers
64 views

Mysterious/Unknown IPs keep getting whitelisted by spamd

I have an OpenBSD 7.1 mail server running OpenSMTPD with spamd. I notice mysterious IP addresses in /var/log/maillog, such as: smtp connected address=162.142.125.222 host=scanner-25.ch1.censys-scanner....
Joe Blough's user avatar
0 votes
1 answer
190 views

Is XNU based on FreeBSD or OpenBSD?

I'm curious, is the xnu kernel based on FreeBSD, OpenBSD, or some other BSD distribution? Thank you, James Pedersen
user2279952's user avatar
2 votes
0 answers
361 views

httpd on OpenBSD: How to Redirect URLs Ending In '.php'?

I am running an httpd(8) web server on OpenBSD. php-8.1.9 is used to serve php. In /etc/httpd.conf I have the following (example.com is a placeholder for the actual domain): server "example.com&...
Matthew Carlson's user avatar
1 vote
1 answer
1k views

Unable to create inetOrgPerson in LDAP structure

I have an LDAP server running on OpenBSD 7.1 using the native ldapd implementation. I've created a basic DIT, and when attempting to add a user, I get: # ldapadd -vv -H ldaps://hypnos.spookyinternet....
uplime's user avatar
  • 25
1 vote
1 answer
669 views

Setting up LDAPD service on OpenBSD

I have an OpenBSD 7.1 server with the LDAPD service running. At the moment it is working as expected, however I am new to managing an LDAP organization, and am unsure about some of the configuration ...
uplime's user avatar
  • 25
1 vote
1 answer
233 views

How to create service/port specific subdomains in OpenBSD vm

I am creating a website in an OpenBSD vm, and I plan to have different services on it that will be pointed to by their respective subdomains (irc.example.com -> example.com:6697, img.example.com -&...
CyberianTraveler's user avatar
1 vote
1 answer
578 views

403 Page recieved when accessing OpenBSD httpd page

I am writing a static webpage on an OpenBSD vm (here called example.com), and when I access the server with it's domain name over http I get httpd's 403 page, when I use telnet example.com 80 I get ...
CyberianTraveler's user avatar
2 votes
1 answer
111 views

why does "pkg_info -Q bash" on OpenBSD give me an "empty" result?

i installed a fresh OpenBSD server on a Linux - Proxmox server with kvm. I tried to to install bash but pkg_info returns "empty": root@openbsd:~# echo $PKG_PATH https://cdn.openbsd.org/pub/...
joern42's user avatar
  • 21
1 vote
2 answers
234 views

How do i get PostgreSQL on Open BSD 7.0 to run

Trying to start postgresql on openbsd 7.0 but can't seem to get it to work. so far I tried this tutorial and looking around a bit on google. I'm new to OpenBSD. # rcctl -df start postgresql doing ...
bill's user avatar
  • 11
0 votes
1 answer
176 views

how to use terraform with nsd?

is it possible to manage nsd dns with terraform? i keep getting a NOTINT error but per man page there is an option to accept UPDATE opcodes. when i set drop-updates: no nsd starts fine but i get the ...
nsduser22's user avatar
0 votes
1 answer
289 views

OpenBSD, mtu=0 on enc0 device, ping packets don't pass

On OpenBSD 6.9 I tried to install an IPSec (IPv4, IKEv2, ESP, tunnel) network-to-network gateway to communicate with a Palo Alto gateway (which I do not control). ikectl show sa leads me to believe ...
Karsten Köpnick's user avatar
0 votes
0 answers
998 views

Disabling certain OpenSSH keys on OpenBSD: why the corresponding 'sshd_config' entries are ignored and why 'ssh-keygen -A' generates forbidden keys?

I am trying to achieve the followings on my OpenBSD 6.9 servers: Forbidding the use of all keys but the ssh-ed25519 one on both SERVER and CLIENT sides. Limiting ssh-keygen -A to generate keys only ...
Tony's user avatar
  • 11
0 votes
2 answers
190 views

OpenBSD NIC Cards Not Configured (Kernel Edit)

I have recently installed OpenBSD v6.8 on a SuperMicro server. During the initial installation I couldn't setup the NIC cards because I didn't have any IP Information. I assume this setup skip caused ...
Alby's user avatar
  • 1
1 vote
0 answers
148 views

How to disable all default cryptographic algorithms but the explicitly defined ones in OpenIKED?

I am having issues with setting up highly secure but still high performance IKEv2 tunnels between multiple data centers on OpenBSD nodes, by using very strict security features and allowing the use of ...
Tony's user avatar
  • 11
0 votes
1 answer
3k views

IBM i SSHD failing all authentications

I am trying to access the SSHD server on my IBMi. However I keep getting Permission denied (publickey,password,keyboard-interactive).. I am running v7r2 on my IBMi This was working until ran the ...
GreenhornCJ's user avatar
0 votes
0 answers
120 views

Can I customize all my operating systems that I will install on kvm/qemu with Virt-customize?

For my private cloud provider, I want to create a virtual machine from the operating system iso I want using kvm/qemu (since I was looking for an alternative to cloud-init, I chose to customize it ...
Sheele's user avatar
  • 16
1 vote
0 answers
591 views

Rewriting user folder url in OpenBSD httpd

I'm using OpenBSD and its httpd. We have a community with users and currently the url to their folder is: example.com/users/username However, what we want is to get example.com/~username This is my ...
ffuentes's user avatar
  • 111
2 votes
1 answer
1k views

Acquiring a wildcard certificate from Let's Encrypt via `acme-client(1)`

I have a valid certificate from Let's Encrypt that covers both foo.bar and www.foo.bar. I'd like to add a wiki.foo.bar and likely many others in the future, so a wildcard certificate sounds ...
jmcph4's user avatar
  • 121
3 votes
1 answer
1k views

OpenBSD relayd forward to web server based on HTTP request path

I have two web servers running on my machine. One is listening on port 8080 and the other on 8081. $ curl http://localhost:8080 I am the API $ curl http://localhost:8081 <html> <head>&...
Ishpeck's user avatar
  • 224
1 vote
0 answers
445 views

I fail to configure Pf of OpenBSD gateway

I have an OpenBSD server that I want to use as a gateway. OBSD server has the following interfaces - em5 (130...** ext.IP with internet connectivity) em0 (internal IP - 172.16.0.0/17) My default ...
Aravindh Sathish's user avatar
1 vote
1 answer
170 views

Does OpenBSD have anything equivalent to Debian's /etc/network/if-up.d/ scripts?

I want to run a script after an OpenBSD interface has been configured (dynamic IP address assigned, routes configured, etc.) I can't find anything in the hostname.if man page about this; does such a ...
cqcallaw's user avatar
  • 163
2 votes
1 answer
312 views

Almost empty pf.conf still logs packets

I have an issue that my pf logs many packets that it's not supposed to log. I reproduced it with almost empty pf.conf: set skip on lo and it still logs some packets. I think that all those packets ...
vbezhenar's user avatar
  • 273
0 votes
1 answer
370 views

enabling telegraf system input plugin on OpenBSD 6.5

https://github.com/influxdata/telegraf/tree/master/plugins/inputs/system Could use some examples. I have tried adding values listed in the above page to [[inputs.system]] For example: [[inputs....
mr.zog's user avatar
  • 931
0 votes
1 answer
312 views

OpenBSD 6.5 /etc/mail/aliases correct format?

What is the correct entry format for an alias? Right now I have root: [email protected] Running newaliases -f /etc/mail/aliases yields a syntax error. Are there examples in the manual page ...
user avatar
0 votes
2 answers
98 views

While attempting to build telegraf on OpenBSD 6.4, gmake said:

I have followed the instructions from this page but gmake fails. Am I missing a dependency? https://www.tumfatig.net/20180905/running-telegraf-openbsd dep ensure -vendor-only SIGSYS: bad system call ...
mr.zog's user avatar
  • 931
4 votes
1 answer
1k views

Changing PF rules on the fly to mitigate damage of DDoS (OpenBSD 6.4)

This is a two part question, really. Keep in mind that I am a developer not a system admin, but being the only employee in the company, I wear ALL the hats. I have deployed my server with two ...
Miguel's user avatar
  • 171
2 votes
0 answers
788 views

Run DHCP only after wpa_supplicant has connected (wired 802.1x)

I have a network here that uses 802.1x on the wired network to authenticate for greater privilege, BUT without (or "before") auth will place the machine in a default/quarantine network. For good luck, ...
Jim's user avatar
  • 121
1 vote
3 answers
1k views

Google VPN not supporting claimed ciphers

Trying to make an IPSec IKEv2 connection with Google Cloud VPN services. According to them, they support AES-CBC ciphers for Encyprtion at phase 1, but at the moment of negotiation with the on-...
jacktrades's user avatar
1 vote
1 answer
444 views

How to migrate Linux iptables scripts to OpenBSD/macOS pf

I am building a VPN server on macOS based on this instruction: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ikev2-vpn-server-with-strongswan-on-ubuntu-18-04-2, and stuck at ...
Daehyun You's user avatar
3 votes
1 answer
425 views

Why does spampd fail with socket connection failure on openbsd?

I'm having some trouble getting spampd to work in OpenBSD. First off, if I try to specify the daemon flags in my /etc/rc.conf.local like so: spampd_flags="--port=10025 --relayhost=127.0.0.1:10027 --...
djsumdog's user avatar
  • 1,120
6 votes
1 answer
333 views

OpenBSD not responding to arp queries

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 ...
Michael Jones's user avatar
3 votes
1 answer
103 views

What are the steps to generalize an OpenBSD 6.1 host?

What are the steps are needed to generalize OpenBSD so that it could be used as a template or virtual appliance without disclosing any information of the environment that baked it, or put the user of ...
bloudraak's user avatar
  • 462
2 votes
0 answers
573 views

OpenBSD 6.x usb installer can't find pkg sets

For some reason the OpenBSD 6.2 installer needs the base packages to be in "6.2/amd64" but these directories are not found by the installer. I think I might need to mount a disk partition manually but ...
mr.zog's user avatar
  • 931
0 votes
2 answers
818 views

openbsd pf firewall - how can I tell what is being blocked?

I am in a dire situation. Our exchange server disks have failed. I can still use the application as the os disks are unaffected, and I need to do an emergency migration to office365. We have an ...
BeardyDrummer's user avatar
2 votes
2 answers
448 views

OpenBSD routing issue: some sites work fine, others timeout

The problem I'm experiencing is that accessing some internet site work fine, and others timeout. For example, traceroute to www.apple.com is broken, where openbsd.org is fine. ┌──────────────┐ ┌...
Ian Timothy's user avatar
1 vote
1 answer
642 views

Openiked - Unable to ping the remote gateway

I set up a tunnel ipsec with strongswan and openiked with x509 PKI. The tunnel establish correctly but I have some problems. The gateway with iked can not ping the local IP of router vyatta but ...
Body's user avatar
  • 66
1 vote
0 answers
460 views

How to install OpenBSD 6.2 guest in XenServer 7?

I'm trying to create new VM from vanilla OpenBSD 6.2 install CD on XenServer 7. I can't even boot install CD. Basically, i get this: Boot device: CD-Rom199MB medium detected - success. CR-ROM: ...
woytekm's user avatar
  • 13
1 vote
0 answers
45 views

OpenBSD IRQ already in use error

My singleboard compter (SBC) have 4-UART ports. They all use one IRQ with different addresses. SBC BIOS can not divide them all on different IRQ (only 2 IRQ for them). Then i setup only one port using ...
Xaver's user avatar
  • 249
2 votes
1 answer
1k views

pkg_add can't install anything on openbsd 6.1

When I attempt to pkg_add screen or any other pkg, I see: ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.8/packages/i386/screen-4.0.3p1.tgz: unsigned package (signify(1) doesn't see old-style signatures) ...
mr.zog's user avatar
  • 931
3 votes
0 answers
520 views

Multiple relays with OpenSMTPd

We use mailhog in development / testing and hook it up to postfix. It so that if you mail to an email address ending in .external, it will be relayed to a real server. And, if doesn't we relay it to ...
tvlooy's user avatar
  • 130
1 vote
1 answer
282 views

VirtualBox guest OS doesn't expand after resizing VDI file [closed]

My host OS is OS X El Capitan. My guest OS, OpenBSD 6.1, ran out of disk space, so I ran VBoxManage modifymedium disk OpenBSD\ 6.1.vdi --resize 15000 to resize my VDI from 4GB to 15GB. However my ...
sheepdog's user avatar
  • 123

1
2 3 4 5