Re: sensor value last change time not updated?

2020-08-14 Thread Hiltjo Posthuma
On Fri, Aug 14, 2020 at 01:46:57PM +0200, Paul de Weerd wrote: > Hi all, > > I'm trying to read temperature sensor values from my ugold(4) device. > Seems to work alright (I get the same temperature reading as sysctl(8) > returns for the sensor), but the 'sensor value last change time' > doesn't

Re: unveil confusion

2020-04-23 Thread Hiltjo Posthuma
On Thu, Apr 23, 2020 at 09:33:51AM +0200, Peter J. Philipp wrote: > Hi, > > From the unveil manpage: > > The first call to unveil() removes visibility of the entire filesystem > from all other filesystem-related system calls (such as open(2), chmod(2) > and rename(2)), except for

Re: Multi-domain DKIM signature with OpenSMTPd

2020-03-18 Thread Hiltjo Posthuma
On Wed, Mar 18, 2020 at 06:23:30PM +0100, Matthieu wrote: > Hi everybody > I'm looking to use OpenDKIM with OpenSMTPd. Has anyone ever done it before ? > My first intention is to sign mails from different domains on a single mail > server. So the > > OpenDKIM works with a socket and I don't know

Re: man to render pure text? (or a pipe in vi macros ?)

2020-03-02 Thread Hiltjo Posthuma
On Mon, Mar 02, 2020 at 06:25:47PM +0100, Ingo Schwarze wrote: > Hi, > > Marc Chantreux wrote on Mon, Mar 02, 2020 at 11:49:31AM +0100: > > > coming from linux, i'm used to read manpages > > in a vi buffer so i can do much more than > > reading the content. > > I have no idea what the "much

Re: doas(1) adjustable timeout length

2019-12-19 Thread Hiltjo Posthuma
On Thu, Dec 19, 2019 at 02:03:19PM -0700, andrej wrote: > Hi Ted, > > On the note of accurate documentation; how about adding the actually defined > timeout for persist rather than the "some time"? > > > Cheers, > Andrej > > > > -- > Sent from:

Re: Redraw of terminal change in 6.6?

2019-11-14 Thread Hiltjo Posthuma
On Wed, Nov 13, 2019 at 03:00:05PM +0100, Mischa wrote: > > On 4 Nov 2019, at 16:51, Mischa wrote: > >> On 2 Nov 2019, at 15:19, Hiltjo Posthuma wrote: > >> On Sat, Nov 02, 2019 at 08:32:50AM +0100, Mischa wrote: > >>> Hi All, > >>> > >>&

Re: Redraw of terminal change in 6.6?

2019-11-02 Thread Hiltjo Posthuma
On Sat, Nov 02, 2019 at 08:32:50AM +0100, Mischa wrote: > Hi All, > > Not sure if this is on my side, setting, or if something has changed with > tmux or top redrawing of the terminal. > I am using tmux, over mosh, on one of my jump hosts to connect to other > hosts. In some of the windows I

Re: Setting charset in Content-Type header with relayd and httpd

2019-10-29 Thread Hiltjo Posthuma
On Tue, Oct 29, 2019 at 08:41:54PM +0100, Bertalan Zoltán Péter wrote: > Hello, > > I have a working httpd server behind a relayd reverse proxy. > > Recently I wanted to host some simple text files in a directory that > contained UTF-8 characters. Unfortunately, I noticed that when opened > from

Re: Openrsync poll Hangup

2019-06-15 Thread Hiltjo Posthuma
On Sat, Jun 15, 2019 at 02:44:47PM +0100, Kevin Chadwick wrote: > Whilst getting current packages from the leaseweb mirror. I kept getting a > stall > followed by poll:hangup with 6.5 openrsync -v -a --delete > > Eventually all the packages download as it gets further each time. > > I tried

Re: doas called multiple times hangs

2019-01-21 Thread Hiltjo Posthuma
On Mon, Jan 21, 2019 at 11:06:58AM +0100, Dariusz Sendkowski wrote: > I applied this patch, as is, to the stable sources and it works now. > Thanks. > > I've tested this patch too on 6.4 on amd64 and it seems fixed now. Thanks Ted for the patch :) A quick little program to reproduce the

Re: doas called multiple times hangs

2019-01-20 Thread Hiltjo Posthuma
On Sun, Jan 20, 2019 at 11:15:38AM +0100, Dariusz Sendkowski wrote: > Hi, > > Calling 'doas' in a loop makes the machine hang. > I guess this is not an expected behavior. > It can be checked by executing the following simple bash script: > > for i in {0..2} > do > doas ls some_dir > done >

Re: USB stick recovery after dd with miniroot64.fs

2019-01-03 Thread Hiltjo Posthuma
On Thu, Jan 03, 2019 at 06:19:41PM +0200, Mihai Popescu wrote: > Hello, > > I used a storage USB stick to dd the miniroot64.fs on it. It was the > wrong one with some useful files saved on it and I did the dd > if=miniroot64.fs of=/dev/rsd1c bs=1m and let it write. The USB size is > almost 32Gb,

Re: Httpd unix socket

2018-12-23 Thread Hiltjo Posthuma
On Sun, Dec 23, 2018 at 02:03:25AM +0100, Flipchan wrote: > Hey, > > I have a http server listening on a socket in /var/www/run/listen.sock , with > permissions 0666 and www:www i can curl the socket and it works , but it does > not work when i try to use it with httpd, maybe because httpd only

Re: pkg_add source code modification

2018-12-15 Thread Hiltjo Posthuma
On Sat, Dec 15, 2018 at 07:49:19PM +0200, Mihai Popescu wrote: > Hello, > > I want to modify the char used for pkg_add (and other pkg_ suite) > progress bar from "*" to "|" but i am unable to figure out where is > the actual code for this. I managed to found /usr/sbin/pkg_add but > there are

Re: Portslist

2018-11-24 Thread Hiltjo Posthuma
On Sat, Nov 24, 2018 at 02:32:02PM +0100, Jan Betlach wrote: > Hi all, > > strange problem. I am running -current. I have downloaded latest ports > tree .tar.gz to /temp, then tar xzf in /usr. > All ports are where they belong (/usr/ports). > However when searching anything (make search

Re: httpd write file out from within cgi script

2018-08-11 Thread Hiltjo Posthuma
/cgi-bin/*" { > fastcgi > root "/" > } > } > > # ls -l /var/www/usr/bin/ > total 20 > -rwxr-xr-x 1 root daemon 9296 Apr 15 11:19 perl > > # ls -l /var/www/usr/lib/ > total 15576 > -r--r--r-- 1 root daemon

Re: httpd write file out from within cgi script

2018-08-11 Thread Hiltjo Posthuma
On Sat, Aug 11, 2018 at 07:58:02PM +0200, Toru Okada wrote: > Hi: > > I want to write a file out from within a perl cgi script. This is obviously > not possible in the standard configuration of httpd. The normal output works > perfectly. What is to do? > > #!/usr/bin/perl > >

Re: sshfs permission problem

2018-08-10 Thread Hiltjo Posthuma
On Fri, Aug 10, 2018 at 10:38:52AM +0200, Hiltjo Posthuma wrote: > On Fri, Aug 03, 2018 at 01:44:39PM +0200, Rudolf Sykora wrote: > > Hello! > > > > I run > > > > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > >

Re: sshfs permission problem

2018-08-10 Thread Hiltjo Posthuma
On Fri, Aug 03, 2018 at 01:44:39PM +0200, Rudolf Sykora wrote: > Hello! > > I run > > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > But then the mount point is owned (after the mounting) by root: > > drwx-- 1 root wheel512 Aug 3 13:22 fzu > > Hence

Re: OT: Temperature sensors suggestions?

2018-05-19 Thread Hiltjo Posthuma
On Fri, May 18, 2018 at 04:42:01PM -0400, Daniel Ouellet wrote: > Does anyone have a decent temperature sensors that can connect to an > OpenBSD server and be reliable and give any decent reading via either > USB or Serial port or even stand alone via Ethernet? > > I asked because yes I can use

Re: Missing relayd.conf(5) example

2018-04-21 Thread Hiltjo Posthuma
On Fri, Apr 20, 2018 at 02:55:04PM -0700, Aaron Miller wrote: > Hi all, > > I was able to setup relayd(8) with URL-based redirection to either a > local application server or to httpd(8), both listening on lo0; relayd > also terminates TLS. However, the man pages were not very helpful and I >

Re: go get abort trap?

2018-03-07 Thread Hiltjo Posthuma
On Wed, Mar 07, 2018 at 01:46:43PM -0800, jungle Boogie wrote: > Hi All, > > With the latest openbsd snapshot: > OpenBSD 6.3-beta (GENERIC.MP) #40: Wed Mar 7 12:51:00 MST 201 > > It seems I cannot build or update go projects: > > $ go get -u github.com/justwatchcom/gopass > Abort trap (core

Re: van Sprundel

2018-01-28 Thread Hiltjo Posthuma
On Sun, Jan 28, 2018 at 12:56:26PM +, Andy Lemin wrote: > Really, did he actually post any real vulnerabilities to OpenBSD! > > This article has to be govt propaganda.. > >

Re: gzip compression and httpd/relayd

2018-01-28 Thread Hiltjo Posthuma
On Sun, Jan 28, 2018 at 10:18:30AM +0100, Thuban wrote: > > > Yes it's possible. Make sure to set the appriopriate HTTP headers aswell > > with relayd: read "Accept-Encoding" and if it's acceptable set > > "Content-Encoding". > > Indeed, it works. > > relayd.conf : > > match response

Re: gzip compression and httpd/relayd

2018-01-26 Thread Hiltjo Posthuma
On Thu, Jan 25, 2018 at 09:37:06PM +0100, Michael Hekeler wrote: > Am Thu, 25 Jan 2018 19:47:09 +0100 > schrieb Thuban : > > > I'm very happy with relayd + httpd. > > Relayd deals with headers and httpd serve files. > > > > I know httpd doesn't have gzip compression. > >

Re: softraid crypto seem really slower than plain ffs

2017-09-15 Thread Hiltjo Posthuma
On Fri, Sep 15, 2017 at 12:24:32PM +0200, Joel Carnat wrote: > Hi, > > Initially comparing I/O speed between FreeBSD/ZFS/GELI and > OpenBSD/FFS/CRYPTO, I noticed that there were a huge difference between > plain and encrypted filesystem using OpenBSD. I ran the test on a 1 > vCore/1GB RAM Vultr

Re: OpenBSD 6.1 current relayd TLS error "cannot load certificates"

2017-06-03 Thread Hiltjo Posthuma
On Fri, Jun 02, 2017 at 08:38:50PM -0700, Dillon Jay Pena wrote: > I'm not understanding why I'm getting a relayd error. Thanks in advance. > > According to > http://man.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/relayd.conf.5#listen_on, > I just need address.crt and private/address.key to

Re: How to syspatch from a different server?

2017-05-15 Thread Hiltjo Posthuma
On Mon, May 15, 2017 at 09:05:38AM +0200, Federico Giannici wrote: > We use an internal server to speedup the upgrade of OS and packages of all > our internal machines (all amd64). We simply set /etc/installurl in every > machine to point to our server were there are the OS tarballs and packages.

Re: OpenBSD 6.1: relayd does not start more than 3 processes

2017-05-05 Thread Hiltjo Posthuma
On Fri, May 05, 2017 at 04:33:02PM +0200, Florian Ermisch wrote: > > > Am 5. Mai 2017 16:05:09 MESZ schrieb Maxim Bourmistrov > <m...@alumni.chalmers.se>: > > > >> 5 maj 2017 kl. 15:55 skrev Maxim Bourmistrov > ><m...@alumni.chalmers.se>: > &

Re: OpenBSD 6.1: relayd does not start more than 3 processes

2017-05-05 Thread Hiltjo Posthuma
On Fri, May 05, 2017 at 12:30:56PM +0200, Maxim Bourmistrov wrote: > > Hey, > on OpenBSD 6.0-stable I have following configuration for relayd: > > snip——— > interval 10 > timeout 1200 > prefork 15 > log all > —— > > Respective login.conf to spawn more relayd procs: > >

Re: relayd splice timeout

2017-04-28 Thread Hiltjo Posthuma
On Thu, Apr 27, 2017 at 07:11:56PM +0200, Markus Rosjat wrote: > Hi there, > > I was playing arround wit relayd just to get a feeling for it. So I started > with relaying a ssh connection to a machine behind my gateway. > > But it seems there is some kind of config value I miss because after

Re: [relayd] keep origin IP in logs

2017-04-09 Thread Hiltjo Posthuma
On Sun, Apr 09, 2017 at 11:30:37AM +, Stuart Henderson wrote: > On 2017-04-09, Thuban <thu...@yeuxdelibad.net> wrote: > > * Hiltjo Posthuma <hil...@codemadness.org> le [09-04-2017 11:42:23 +0200]: > >> On Sat, Apr 08, 2017 at 08:48:43PM +0200, Thuban wrote: >

Re: [relayd] keep origin IP in logs

2017-04-09 Thread Hiltjo Posthuma
On Sun, Apr 09, 2017 at 11:51:25AM +0200, Thuban wrote: > * Hiltjo Posthuma <hil...@codemadness.org> le [09-04-2017 11:42:23 +0200]: > > On Sat, Apr 08, 2017 at 08:48:43PM +0200, Thuban wrote: > > > Hello, > > > I use relayd to deal with HTTP headers as sug

Re: [relayd] keep origin IP in logs

2017-04-09 Thread Hiltjo Posthuma
On Sat, Apr 08, 2017 at 08:48:43PM +0200, Thuban wrote: > Hello, > I use relayd to deal with HTTP headers as suggested here [1]. > My problem is that in httpd logs, the origin IP is 127.0.0.1 and thats > not very handy to track bruteforce attacks (in example). > > Do you have any advice to keep

Re: Kernel panic on Dell R210 with OpenBSD 6.0 (relayd related ?)

2017-03-28 Thread Hiltjo Posthuma
On Tue, Mar 28, 2017 at 02:39:44PM +0200, Mathieu BLANC wrote: > On Tue, Mar 28, 2017 at 02:22:28PM +0200, Mathieu BLANC wrote: > > I can reproduce the bug (on the slave firewall) as many times as I want. > > > > I've just read https://www.openbsd.org/ddb.html and saw that you need a trace > for

Re: Openup and stable

2017-03-25 Thread Hiltjo Posthuma
On Sat, Mar 25, 2017 at 08:49:22AM +, Andreas Thulin wrote: > Hi all! > Hey!, > I'm running 6.0 -stable using openup for patching. I think it works very > well since it's so convenient. At the same time I realise there are trust > and security concerns with people like myself, who "blindly"

Re: OpenBSD 5.9/amd64 (2-Jun-2016), httpd(40862): [syscall 5 "wpath"] error when attempting to start httpd with ssl

2016-06-13 Thread Hiltjo Posthuma
On Thu, Jun 09, 2016 at 01:19:50PM -0500, Troy Frericks wrote: > ... > > I've spent hours googeling, and found only one mention that this may be a > kernel bug. > I've checked theOpenBSD 5.9 patch list, the OpenBSD 5.9 -current changes > log. > By the way, instead of googeling a nice way to see

Re: Deadlink in current.html

2016-05-08 Thread Hiltjo Posthuma
On Sun, May 08, 2016 at 11:28:33AM +0200, Heiko wrote: > Hello Team, > > there is a deadlink in current.html @ 2016/05/07 - MAJOR ABI BREAK > > "Not Found > The requested URL /faq/r20160319 was not found on this server." > Nice find, I think it was intended to link to the item on the same page

Re: relayd as a reverse-proxy in front of OpenBSD httpd + custom Golang httpd

2015-10-27 Thread Hiltjo Posthuma
On Sun, Oct 25, 2015 at 7:30 PM, Hiltjo Posthuma <hil...@codemadness.org> wrote: > My /etc/relayd.conf looked something like this: > > table { 127.0.0.1 } > > http protocol "protmyapp" { > return error > > # TODO: forwar

relayd as a reverse-proxy in front of OpenBSD httpd + custom Golang httpd

2015-10-25 Thread Hiltjo Posthuma
Hi folks!, I have a question about how to convert my current setup with nginx + fastcgi to OpenBSD httpd + slowcgi and relayd. The setup is pretty simple, I have the follow subdomains: www.mydomain.org - OpenBSD httpd, static pages. git.mydomain.org - OpenBSD httpd, slowcgi and cgit.