Re: Intel HD Graphics 4000, only one monitor detected

2014-02-14 Thread rivo nurges
On Fri, Feb 14, 2014 at 07:54:56PM +1100, Jonathan Gray wrote: Hi! It would be interesting to see if compiling your own kernel sometime after the following commit by kettenis@ helps: I have HD 3000 with the same issue. I just tested new kernel compiled from sources with the mentioned commit

thinkpad adaptive keyboard patch

2014-03-17 Thread rivo nurges
Hi! New 2nd generation Lenovo X1 Carbon has touchable lcd strip instead of the F1-12 keys and the multimedia keys. It has 5 modes with tons of useless buttons triggering acpi hotkey events and 6th inactive mode. This patch adds support for switching between the Home and the Function modes. The

bgpctl show_attr bad length fix

2014-03-18 Thread rivo nurges
Hi! When show_attr reads data length from provided data it reads carbage to alen and fails afterwards. This patch fixes the problem by casting the data to u_char. While at it I noticed data gets assigned twice. bgpctl.c: /* bad imsg len how can that happen!? */ bgpctl.c: if (alen len)

Re: thinkpad adaptive keyboard patch

2014-03-24 Thread rivo nurges
On Mon, Mar 17, 2014 at 07:11:09PM +, rivo nurges wrote: Hi! New 2nd generation Lenovo X1 Carbon has touchable lcd strip instead of the F1-12 keys and the multimedia keys. It has 5 modes with tons of useless buttons triggering acpi hotkey events and 6th inactive mode. This patch adds

Dell 5540 HSDPA

2011-10-20 Thread rivo nurges
Hi! The diff below makes cdce(4) to recognize cdce part of my Dell 5540 mini-pcie card. cdce port must be enabled before use by sending following to one of the serial ports(should it be somehow documented in the manpage?): AT+CFUN=1 # enable radio AT+CGDCONT=1,IP,internet # configure apn

bgpd and indirect nexthops

2016-11-03 Thread Rivo Nurges
Hi! I have ibgp setup where I receive number of routes with indirect nexthops. "nexthop qualify via bgp" is configured. I'm using snapshot from 31.11.2016 and current bgpd sources. When I start bgpd it usually comes up with either some or none of the indirect nexthops resolved: # bgpctl show

Re: httpd: expand HTTP Host

2017-03-15 Thread Rivo Nurges
Hi! New simplified version of the patch. Test results: HTTP 1.1 with Host: HTTP/1.0 301 Moved Permanently Location: https://testhttp.int/ HTTP 1.0 with Host: HTTP/1.0 301 Moved Permanently Location: https://testhttp.int/ HTTP 1.1 without Host: HTTP/1.0 400 Bad Request HTTP 1.0 without Host:

Re: snmpd agentx fixes

2017-04-13 Thread Rivo Nurges
rather silly way. AgentX support is only used by relayd in base. Rivo Nurges (in cc) contacted me about this. Thanks to him and reyk@ for helping me reproduce the issue. The config below helps reproduce the problem. # cat /etc/snmpd.conf socket "/var/ru

disklabel template on miniroot

2017-03-11 Thread Rivo Nurges
Hi! Following will add support for disklabel template on miniroot. Rivo Index: distrib/miniroot/install.sub === RCS file: /cvs/src/distrib/miniroot/install.sub,v retrieving revision 1.987 diff -u -p -r1.987 install.sub ---

Re: disklabel template on miniroot

2017-03-11 Thread Rivo Nurges
at, Mar 11, 2017 at 09:59:09PM +0000, Rivo Nurges wrote: > Hi! > > Following will add support for disklabel template on miniroot. Can't you achieve the same by adding URL to autopartitioning template for disklabel = file:///disklabel.auto to your au

httpd: expand HTTP Host

2017-03-11 Thread Rivo Nurges
Hi! Following will add possibility to expand $HTTP_HOST to the HTTP Host header in "block return". In my setup I have relayd on port 443 and httpd on 80. This patch allows me to redirect http(httpd) to https(relayd) without knowing the host. /etc/httpd.conf: server "redirect" { listen on *

Re: httpd: expand HTTP Host

2017-03-13 Thread Rivo Nurges
:20:48 GMT Server: OpenBSD httpd Connection: close Content-Type: text/html Content-Length: 443 Location: https://10.XXX/ Rivo On 13/03/2017, 20:10, "Florian Obser" <flor...@openbsd.org> wrote: On Sat, Mar 11, 2017 at 06:11:53PM +0000, Rivo Nurges wrote: > Hi!

Re: httpd: expand HTTP Host

2017-03-13 Thread Rivo Nurges
Hi! Sure. Should I create new patch? Rivo On 13/03/2017, 20:38, "Florian Obser" <flor...@openbsd.org> wrote: On Mon, Mar 13, 2017 at 06:22:50PM +0000, Rivo Nurges wrote: > Hi! > > Host header is mandatory for HTTP 1.1 requests and httpd will ret

fix relayd dns protocol

2017-06-29 Thread Rivo Nurges
Hi! config_setrelay>relay_privinit>relay_udp_privinit doesn't set env since env isn't set in relay.c yet, causing dns relay to SIGSEGV in relay_udp_server. Move setting env to relay_udp_init. Rivo Index: usr.sbin/relayd/relay.c ===

relayd interrupted transfers

2017-08-22 Thread Rivo Nurges
Hi! relay_error() sets se_done even if write buffer is not drained and relay_write() will close the connection if se_done is set I have a case with 76k json payload where relay_error() detects EOF on read socket, sets so_done but write socket is not drained yet and socket is closed before all

Re: relayd interrupted transfers

2017-08-23 Thread Rivo Nurges
Hi! I'll look into it. Rivo On 23/08/2017, 14:42, "Alexander Bluhm" <alexander.bl...@gmx.net> wrote: On Tue, Aug 22, 2017 at 05:31:17PM +0000, Rivo Nurges wrote: > relay_error() sets se_done even if write buffer is not drained and > relay_write() wil

Re: syslogd UDP EADDRNOTAVAIL

2017-09-29 Thread Rivo Nurges
Hi! I have seen it number of times but haven't had time to investigate it further. I have another ugly workaround to fix it. In my case it happens because the route to the syslog target is learned via bgp and the bgp is not up when syslogd tries to send first message. Your patch fixes it. Rivo

Re: relayd interrupted transfers

2017-08-24 Thread Rivo Nurges
; wrote: On Tue, Aug 22, 2017 at 05:31:17PM +, Rivo Nurges wrote: > relay_error() sets se_done even if write buffer is not drained and > relay_write() will close the connection if se_done is set I have seen a sporadic fail with chunked encoding in the daily regres

Re: relayd interrupted transfers

2017-08-25 Thread Rivo Nurges
Hi! Your version works for me. Rivo On 24/08/2017, 17:10, "Alexander Bluhm" <alexander.bl...@gmx.net> wrote: On Thu, Aug 24, 2017 at 12:44:27PM +0000, Rivo Nurges wrote: > This will fix my problem and regress still passes. Yes this also works for m

Re: relayd and PUT

2017-12-13 Thread Rivo Nurges
Hi! Thanks for enlightening me, I’ll try to fix the real problem. Rivo > On 13 Dec 2017, at 08:42, Claudio Jeker <cje...@diehard.n-r-g.com> wrote: > >> On Wed, Dec 13, 2017 at 12:25:39AM +, Rivo Nurges wrote: >> Hi! >> >> If you http PUT a "big

Re: relayd and PUT

2017-12-15 Thread Rivo Nurges
Hi! On Wed, 2017-12-13 at 07:42 +0100, Claudio Jeker wrote: > I have seen something similar and came to the conclusion that the > timeout > handling of relayd is not correct. As long as traffic is flowing the > timeout should be reset (at least that is what every other > implementation > does).

relayd and PUT

2017-12-12 Thread Rivo Nurges
Hi! If you http PUT a "big" file through relayd, server<>relay read side will eventually get a EVBUFFER_TIMEOUT. Nothing comes back from the server until the PUT is done. I disabled server read timeouts for PUT requests. While trying to fix the issue I managed to trigger another problem. For

Re: relayd and PUT

2017-12-12 Thread Rivo Nurges
Hi! Without text mangling this time... Rivo Index: usr.sbin/relayd/relay.c === RCS file: /cvs/src/usr.sbin/relayd/relay.c,v retrieving revision 1.236 diff -u -p -r1.236 relay.c --- usr.sbin/relayd/relay.c 28 Nov 2017 01:51:47

Re: relayd status code handling

2017-11-17 Thread Rivo Nurges
Hi! I have 4 digit number of relayd instances and I'v seen plenty of such products. ownCloud, Nextcloud and some Atlassian products to name few. relayd seems to be the only one to enforce the RFC so strictly. I'd be glad if this gets relaxed a bit. Rivo On Fri, 2017-11-17 at 18:52 +0100,

Re: relayd and PUT

2018-01-19 Thread Rivo Nurges
On Fri, 2018-01-05 at 00:12 +0100, Alexander Bluhm wrote: > On Wed, Dec 13, 2017 at 07:42:03AM +0100, Claudio Jeker wrote: > > On Wed, Dec 13, 2017 at 12:25:39AM +0000, Rivo Nurges wrote: > > > If you http PUT a "big" file through relayd, server<>relay read &g

Re: relayd and PUT

2018-01-19 Thread Rivo Nurges
Hi! Please ingore this. Rivo On Fri, 2018-01-19 at 14:01 +, Rivo Nurges wrote: > On Fri, 2018-01-05 at 00:12 +0100, Alexander Bluhm wrote: > > On Wed, Dec 13, 2017 at 07:42:03AM +0100, Claudio Jeker wrote: > > > On Wed, Dec 13, 2017 at 12:25:39AM +, Rivo Nurges wro

Re: relayd and PUT

2018-01-19 Thread Rivo Nurges
Hi! On Fri, 2018-01-05 at 00:12 +0100, Alexander Bluhm wrote: > I have commited more regression tests that check the timeout with > unidirectional traffic flow. I could not find an error. In theory > when we have an idle timeout in one direction, relayd checks wheter > there is trafic flowing

relayd timeout handling

2017-12-28 Thread Rivo Nurges
Hi! I'm resending my previous proposal. Bump client<>relay, relay<>server bufferevent timeouts as long there is some traffic flowing. Current code doesn't handle long unidirectional flows correctly. Simplest route would be to check presence of traffic every second, but I choose to schedule the

Re: install.sub - disklabel template modification

2018-08-30 Thread Rivo Nurges
Hi! "URL to autopartitioning template for disklabel = file:///disklabel.auto" works fine. Rivo On Thu, 2018-08-30 at 13:27 +, Jiri B. wrote: > Hi, > > if somebody would put into install.conf following line: > > URL to autopartitioning template for disklabel = > /disklabel.template > >

Re: relayd http check fix

2018-04-06 Thread Rivo Nurges
Hi! ping Rivo On Wed, 2018-03-28 at 16:56 +, Rivo Nurges wrote: > Hi! > > If relayd http check doesn't get any answer to its http check it > marks > backend host as up. > > host x.y.z, check http code (2010ms,tcp read timeout), state down -> > up, availabilit

relayd http check fix

2018-03-28 Thread Rivo Nurges
Hi! If relayd http check doesn't get any answer to its http check it marks backend host as up. host x.y.z, check http code (2010ms,tcp read timeout), state down -> up, availability 14.29% sample config: relay test { listen on x.x.x.x port forward to port check http "/" code 200 }

Re: 802.1q with 0 tag

2018-10-12 Thread Rivo Nurges
to be. The default 802.1q priority is 1 iirc. > > I'm curious as to where you see both tagged and untagged frames at > the same time. > > dlg > > > On 11 Oct 2018, at 7:20 pm, Rivo Nurges > > wrote: > > > > Hi! > > > > In theory 802.1q header with

802.1q with 0 tag

2018-10-11 Thread Rivo Nurges
Hi! In theory 802.1q header with vlan tag 0 can be used to just signal priority. Now I'm seeing this in the wild. On a untagged port some packets are coming with dotq header and some without. Currently we drop all the packets with dotq header and vlan tag 0. Following patch fixes this by

Re: relayd and TLS client cert verification

2018-12-06 Thread Rivo Nurges
Hi! I have planned to do it myself for quite long time but never got around doing it. In my testing it works great. I have patch on top of this which allows to pass remote certificate and/or parts of it to backend hosts via http headers. Rivo On Thu, 2018-12-06 at 05:17 +, Ashe Connor

Re: relayd websocket

2019-03-06 Thread Rivo Nurges
Hi! On 3/6/19 10:20 PM, Rivo Nurges wrote: > On 3/6/19 6:36 PM, Sebastian Benoit wrote: >>> Does something like this make sense? >> >> i think the seperator list needs to include '\t' >> because https://tools.ietf.org/html/rfc7230#appendix-B includes HTAB. >

Re: relayd websocket

2019-03-06 Thread Rivo Nurges
On 3/6/19 6:36 PM, Sebastian Benoit wrote: >> Does something like this make sense? > > i think the seperator list needs to include '\t' > because https://tools.ietf.org/html/rfc7230#appendix-B includes HTAB. > > And i dont think you can mix "," with " \t" seperators, > because otherwise "Foo

relayd websocket

2019-03-05 Thread Rivo Nurges
Hi! RFC 6455 4.2.1 states: 4. A |Connection| header field that *includes* the token "Upgrade", treated as an ASCII case-insensitive value. In my test case Firefox sends: Connection: keep-alive, Upgrade Relayd currently expects Connection to equal Upgrade, not include Upgrade. I haven't

Re: relayd websocket

2019-03-05 Thread Rivo Nurges
Hi! On 3/5/19 10:36 PM, Claudio Jeker wrote: > I guess that this would need strcasestr() instead of strcasecmp(), since you > are looking for the substring "Upgrade" in value. Maybe more is needed if > we want to be sure that 'Connection: Upgrade-maybe' does not match. You are correct about

Re: relayd websocket

2019-03-12 Thread Rivo Nurges
Hi! Bump... Rivo On 3/6/19 10:57 PM, Rivo Nurges wrote: > Hi! > > > On 3/6/19 10:20 PM, Rivo Nurges wrote: >> On 3/6/19 6:36 PM, Sebastian Benoit wrote: >>>> Does something like this make sense? >>> >>> i think the seperator list needs to incl

Re: relayd(8) websockets proxy broken after adding websockets support

2019-04-12 Thread Rivo Nurges
Hi! I previously proposed following. https://marc.info/?l=openbsd-tech=155190594005692=2 Rivo On 4/10/19 2:38 PM, Pavel Korovin wrote: > Dear all, > > After websockets support was added in relayd(8), >

Re: relayd websocket

2019-05-08 Thread Rivo Nurges
Hi! Seems to work fine. Rivo On 2019-05-08 21:37, Reyk Floeter wrote: > On Wed, May 08, 2019 at 07:07:43PM +0200, Reyk Floeter wrote: >> On Wed, May 08, 2019 at 06:26:45PM +0200, Reyk Floeter wrote: >>> On Wed, Mar 06, 2019 at 05:36:32PM +0100, Sebastian Benoit wrote: >>

Re: relayd websocket

2019-05-08 Thread Rivo Nurges
Hi! Anyone? Rivo On 2019-03-12 21:50, Rivo Nurges wrote: > Hi! > > Bump... > > Rivo > > On 3/6/19 10:57 PM, Rivo Nurges wrote: >> Hi! >> >> >> On 3/6/19 10:20 PM, Rivo Nurges wrote: >>> On 3/6/19 6:36 PM, Sebastian Benoit wrote: >&g

fix bgpd route-reflector without cluster id

2019-09-26 Thread Rivo Nurges
Hi! Before bgpd.c:1.225 bgpd ran merge_config on startup and set the cluster-id to router-id when needed. This is not the case anymore and if cluster-id is not explicitly specified its not picked up on startup causing bgp to use 0.0.0.0 as the cluster-id. Rivo Index: usr.sbin/bgpd/config.c

relayd client certificate validation

2021-05-23 Thread rivo nurges
Hi! Here comes the support for relayd client certificate validation. Full certificate chain, subject and issuer can be passed over in http headers. It supports mandatory validation, optional validation(if client chooses to provide certificate it will be validated) and no validation(cert is

[PATCH] relayd client certificate validation again

2021-12-16 Thread rivo nurges
Hi! Here comes the support for relayd client certificate validation. Full certificate chain, subject and issuer can be passed over in http headers. It supports mandatory validation and optional validation(if client chooses to provide certificate it will be validated). Part of my sample config.