--- Log opened Sat Sep 14 00:00:47 2024 00:01 -!- lucas [~Lucas@moon.lgv5.net] has quit [Quit: bye] 00:06 < thrig> especially on linux where getpw* might get hooked up to active directory and then randomly return NULL or whatever 00:07 < thrig> usually code will check a bunch of things (env so user can override, etc) and then hopefully blow up if nothing was found 00:07 -!- mikeybsd [~solo@user/mikeybsd] has joined #openbsd 00:11 < AlaskanEmily> Interesting. 00:11 -!- Old-Ben-Jabroni [~oldben@user/Old-Ben-Jabroni] has quit [Remote host closed the connection] 00:12 < AlaskanEmily> According to the man pages, the fields of a passwd struct *can* be NULL, but it doesn't seem like this is actually the case on Linux or OpenBSD. In my code I'm checking both for NULL and for an empty string which I guess might be necessary if you can't handle empty values too. 00:17 -!- Old-Ben-Jabroni [~oldben@user/Old-Ben-Jabroni] has joined #openbsd 00:20 -!- tertullian [~sonne@ip-078-094-224-090.um19.pools.vodafone-ip.de] has joined #openbsd 00:21 -!- housemate [~housemate@203.193.213.170] has joined #openbsd 00:24 -!- djames [~djames@user/djames/x-9001197] has quit [Ping timeout: 245 seconds] 00:27 -!- SirJitsu [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has quit [Ping timeout: 255 seconds] 00:30 < AlaskanEmily> I guess a better question: In C, I want to reliably find the current user's (real-UID, not effect-UID user) home directory and username. Ideally I want the code to work between Linux, FreeBSD, OpenBSD, and Solaris, but if I do need to I can add special cases for any/all of those. Is getpwuid the best way to do that, and is there any reasonable fallback if it does fail beyond checking envvars? 00:35 -!- agentcasey [~agentcase@99-106-182-62.lightspeed.elpstx.sbcglobal.net] has quit [Ping timeout: 265 seconds] 00:37 -!- housemate [~housemate@203.193.213.170] has quit [Quit: how the general IRC channel evolves on my entering into it, I am THE WORST THING SINCE ELVIS. I KNOW HOW TO TRAVEL THE COSMOS, CONSTRUCT A PYRAMID, AND TRANSPORT IT FROM ONE JOINT SOME PLACE TO ANOTHER JOINT SOME PLACE ELSE!] 00:39 -!- seninha [~seninha@user/seninha] has joined #openbsd 00:46 -!- \dev\null is now known as devnull 00:47 -!- Tobbi [~Tobbi@SuperTux/Tobbi] has joined #openbsd 00:49 -!- SirJitsu [~SirJitsu@162-231-111-175.lightspeed.livnmi.sbcglobal.net] has joined #openbsd 00:51 -!- mikeybsd [~solo@user/mikeybsd] has quit [Read error: Connection reset by peer] 00:53 -!- rakka [root@user/ninetyninekaits] has quit [Remote host closed the connection] 00:54 -!- rakka [root@user/ninetyninekaits] has joined #openbsd 00:55 -!- Tobbi [~Tobbi@SuperTux/Tobbi] has quit [Ping timeout: 246 seconds] 01:06 -!- alx^ [~alx@195.15.28.34] has quit [Read error: Connection reset by peer] 01:09 -!- ook [~ook@user/ook] has quit [Quit: ook] 01:17 -!- sheikhshard [~Administr@39.172.1.9] has quit [Ping timeout: 246 seconds] 01:22 -!- chaky [~chaky@93-143-29-78.adsl.net.t-com.hr] has quit [Ping timeout: 246 seconds] 01:24 -!- chaky [~chaky@93-143-202-10.adsl.net.t-com.hr] has joined #openbsd 01:34 -!- deepestt1aster [~deepestto@user/deepesttoaster] has quit [Ping timeout: 245 seconds] 01:36 -!- Guest6121 [~njn@c-69-250-179-19.hsd1.md.comcast.net] has quit [Remote host closed the connection] 01:37 -!- deepesttoaster [~deepestto@user/deepesttoaster] has joined #openbsd 01:43 -!- tuftedocelot [~tuftedoce@2a03:6000:1019::57] has joined #openbsd 01:45 -!- tuftedocelot [~tuftedoce@2a03:6000:1019::57] has quit [Remote host closed the connection] 01:45 -!- tuftedocelot [~tuftedoce@2a03:6000:1019::57] has joined #openbsd 01:47 -!- cation [cation@user/cation] has joined #openbsd 02:00 -!- thalos [~thalos@51.158.168.225] has quit [Remote host closed the connection] 02:02 -!- xx [~xx@user/xx] has quit [Ping timeout: 260 seconds] 02:04 -!- gman999 [~GMan999@user/gman999] has joined #openbsd 02:29 -!- visl [visl@user/visl] has quit [Ping timeout: 252 seconds] 02:32 -!- visl [visl@user/visl] has joined #openbsd 02:40 -!- Bradipo [~Bradipo@50.77.44.29] has quit [Quit: Lost terminal] 02:44 -!- seninha [~seninha@user/seninha] has quit [Quit: Leaving] 02:48 -!- seninha [~seninha@user/seninha] has joined #openbsd 02:52 -!- Aedil [~adrian@146.52.104.238] has joined #openbsd 02:53 -!- zip100 [~zip100@185.209.196.136] has quit [Ping timeout: 252 seconds] 02:54 -!- zip100 [~zip100@185.209.196.224] has joined #openbsd 02:56 -!- polarian [~polarian@znc.polarian.dev] has quit [Quit: Polarian has disappeared] 02:57 -!- Aedil [~adrian@146.52.104.238] has quit [Remote host closed the connection] 02:58 -!- polarian [~polarian@znc.polarian.dev] has joined #openbsd 03:02 -!- Aedil [~adrian@146.52.104.238] has joined #openbsd 03:03 -!- agentcasey [~agentcase@143-42-229-181.ip.linodeusercontent.com] has joined #openbsd 03:03 -!- agentcasey [~agentcase@143-42-229-181.ip.linodeusercontent.com] has quit [Client Quit] 03:08 -!- agentcasey [~agentcase@143-42-229-181.ip.linodeusercontent.com] has joined #openbsd 03:22 -!- mxz__ [~mxz@user/mxz] has joined #openbsd 03:22 -!- mxz [~mxz@user/mxz] has quit [Ping timeout: 260 seconds] 03:23 -!- mxz__ is now known as mxz 03:23 -!- mxz_ [~mxz@user/mxz] has quit [Ping timeout: 252 seconds] 03:27 -!- lucas [~Lucas@moon.lgv5.net] has joined #openbsd 03:32 -!- zorz [~zorz@user/zorz] has joined #openbsd 03:39 -!- sunwind [~paradox@host109-152-19-30.range109-152.btcentralplus.com] has quit [Quit: Outside Context Problem.] 03:39 -!- extrowerk [~extrowerk@BC06D778.dsl.pool.telekom.hu] has joined #openbsd 03:45 -!- mbuhl [~mbuhl@user/mbuhl] has quit [Remote host closed the connection] 03:49 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 255 seconds] 03:51 -!- mbuhl [~mbuhl@user/mbuhl] has joined #openbsd 03:55 -!- synack [~synack@user/synack] has joined #openbsd 03:57 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 04:00 -!- synack [~synack@user/synack] has quit [Remote host closed the connection] 04:00 -!- nmdw [~nmdw@186.176.130.17] has joined #openbsd 04:15 -!- zorz [~zorz@user/zorz] has quit [Quit: leaving] 04:17 -!- nmdw [~nmdw@186.176.130.17] has quit [Ping timeout: 260 seconds] 04:28 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 255 seconds] 04:29 -!- nmdw [~nmdw@186.176.130.17] has joined #openbsd 04:30 -!- popopoooo [~root@152.156.186.49] has joined #openbsd 04:35 -!- gawen [~gawen@user/gawen] has quit [Quit: cya] 04:35 -!- vesper [~jdoe@gateway/tor-sasl/vesper] has quit [Remote host closed the connection] 04:36 -!- gawen [~gawen@user/gawen] has joined #openbsd 04:39 -!- seninha [~seninha@user/seninha] has quit [Remote host closed the connection] 04:43 -!- popopoooo [~root@152.156.186.49] has quit [Quit: Lost terminal] 05:14 -!- gatlinggoat1 [~Thunderbi@2600:4040:ad65:b400:2d39:64b3:a715:8f1] has joined #openbsd 05:16 -!- gatlinggoat [~Thunderbi@96.225.72.95] has quit [Ping timeout: 246 seconds] 05:16 -!- gatlinggoat1 is now known as gatlinggoat 05:18 -!- nmdw [~nmdw@186.176.130.17] has quit [Ping timeout: 252 seconds] 05:20 -!- nmdw [~nmdw@186.176.130.17] has joined #openbsd 05:24 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has quit [Read error: Connection reset by peer] 05:24 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has joined #openbsd 05:25 -!- jesselawtonnz [~jesselawt@118.148.114.41] has joined #openbsd 05:25 < jesselawtonnz> hi 05:26 < jesselawtonnz> when i'm compiling stuff i get this: 05:26 < jesselawtonnz> Deep recursion on subroutine "main::handle_config" at /usr/bin/pkg-config line 331. 05:26 < jesselawtonnz> can anyone help?? 05:27 -!- umgeher [~umgeher@2804:1080:c0d5:5c00:5d3e:9cb2:22d0:ac58] has quit [Ping timeout: 260 seconds] 05:30 -!- mxz_ [~mxz@user/mxz] has joined #openbsd 05:30 < jesselawtonnz> can anyone help?? 05:30 < jesselawtonnz> Deep recursion on subroutine "main::handle_config" at /usr/bin/pkg-config line 331. 05:43 -!- nmdw [~nmdw@186.176.130.17] has quit [Ping timeout: 260 seconds] 05:48 -!- jesselawtonnz [~jesselawt@118.148.114.41] has quit [Quit: leaving] 05:55 -!- AlaskanEmily [~AlaskanEm@user/alaskanemily] has quit [Remote host closed the connection] 05:59 -!- zmyrgel [~zmyrgel@91-152-74-4.elisa-laajakaista.fi] has joined #openbsd 06:00 -!- jedesa [~Thunderbi@user/jedesa] has quit [Remote host closed the connection] 06:01 -!- adip [~adip@c159-63.icpnet.pl] has joined #openbsd 06:01 -!- mijndert [~mijndert@86-86-243-190.fixed.kpn.net] has joined #openbsd 06:01 -!- mijndert [~mijndert@86-86-243-190.fixed.kpn.net] has quit [Changing host] 06:01 -!- mijndert [~mijndert@user/mijndert] has joined #openbsd 06:06 -!- deimosBSD [~deimos@user/realdeimos] has quit [Ping timeout: 246 seconds] 06:09 -!- deimosBSD [~deimos@user/realdeimos] has joined #openbsd 06:11 -!- derpadmin [~Anonymous@homebase.200013.net] has joined #openbsd 06:16 -!- bsd4me [~bsduser@user/bsd4me] has quit [Quit: leaving] 06:18 -!- derpadmin [~Anonymous@homebase.200013.net] has quit [Quit: leaving] 06:18 -!- derpadmin [~Anonymous@homebase.200013.net] has joined #openbsd 06:23 -!- derpadmin [~Anonymous@homebase.200013.net] has quit [Client Quit] 06:24 -!- derpadmin [~Anonymous@homebase.200013.net] has joined #openbsd 06:26 -!- ivdsangen [~ivo@86-95-161-96.fixed.kpn.net] has joined #openbsd 06:27 -!- derpadmin [~Anonymous@homebase.200013.net] has quit [Client Quit] 06:33 -!- mikeybsd [~solo@user/mikeybsd] has joined #openbsd 06:37 -!- synack [~synack@user/synack] has joined #openbsd 06:41 -!- adip [~adip@c159-63.icpnet.pl] has quit [Ping timeout: 252 seconds] 06:44 -!- xzdx [~xzdx@user/XZDX] has joined #openbsd 06:44 -!- setient [~setient@user/setient] has quit [Ping timeout: 272 seconds] 06:46 -!- setient [~setient@li92-193.members.linode.com] has joined #openbsd 06:46 -!- memset [~memset@gateway/tor-sasl/memset] has quit [Ping timeout: 260 seconds] 06:50 -!- xzdx [~xzdx@user/XZDX] has quit [Ping timeout: 276 seconds] 06:50 -!- bpye [~bpye@user/bpye] has quit [Quit: Ping timeout (120 seconds)] 06:50 -!- bpye [~bpye@user/bpye] has joined #openbsd 06:53 -!- adip [~adip@c159-63.icpnet.pl] has joined #openbsd 06:58 -!- memset [~memset@gateway/tor-sasl/memset] has joined #openbsd 06:59 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has quit [Quit: willyg_fl] 07:00 -!- mijndert [~mijndert@user/mijndert] has quit [Quit: kbye] 07:01 -!- mijndert [~mijndert@86-86-243-190.fixed.kpn.net] has joined #openbsd 07:01 -!- mijndert [~mijndert@86-86-243-190.fixed.kpn.net] has quit [Changing host] 07:01 -!- mijndert [~mijndert@user/mijndert] has joined #openbsd 07:01 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has joined #openbsd 07:03 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has quit [Client Quit] 07:08 -!- lavaball [~Melissa@31.204.155.215] has joined #openbsd 07:11 -!- lavaball [~Melissa@31.204.155.215] has quit [Client Quit] 07:15 -!- umgeher [~umgeher@2804:1080:c0e5:2700:ce62:4811:d99d:c573] has joined #openbsd 07:16 -!- Thorne [~thorne@user/Thorne] has quit [Quit: No Water.] 07:16 -!- Thorne [~thorne@user/Thorne] has joined #openbsd 07:17 -!- lumidify_ is now known as lumidify 07:19 -!- schna [~schna@ip-037-201-198-107.um10.pools.vodafone-ip.de] has joined #openbsd 07:19 -!- lavaball [~Melissa@31.204.155.215] has joined #openbsd 07:20 -!- dustinm`_ [~dustinm@static.38.6.217.95.clients.your-server.de] has quit [Quit: Leaving] 07:25 -!- dustinm` [~dustinm@static.38.6.217.95.clients.your-server.de] has joined #openbsd 07:27 -!- sodapop is now known as DirtyHarry 07:29 -!- nitawa [saved@user/nitawa] has joined #openbsd 07:32 -!- dastain [~dastain@2a00:d880:6:262::45a3] has quit [Ping timeout: 248 seconds] 07:33 -!- dastain [~dastain@81.4.102.12] has joined #openbsd 07:34 -!- yclept [~yclept@user/yclept] has joined #openbsd 07:49 -!- sourcetarius [~sourcetar@user/sourcetarius] has joined #openbsd 07:50 -!- Code_Bleu [~Code_Bleu@user/code-bleu/x-6939963] has quit [Ping timeout: 245 seconds] 07:57 -!- shiranaihito_ [~shiranaih@184.82.216.249] has joined #openbsd 08:04 -!- Code_Bleu [~Code_Bleu@user/code-bleu/x-6939963] has joined #openbsd 08:05 -!- Leone [~Leo@65-110-195-253.cpe.pppoe.ca] has joined #openbsd 08:13 -!- zmyrgel [~zmyrgel@91-152-74-4.elisa-laajakaista.fi] has quit [Ping timeout: 252 seconds] 08:18 -!- jalf [~bendavies@224.186.187.81.in-addr.arpa] has joined #openbsd 08:33 -!- noone [~six@user/six] has quit [Quit: nyaa~] 08:37 -!- tertullian [~sonne@ip-078-094-224-090.um19.pools.vodafone-ip.de] has quit [Quit: leaving] 08:39 -!- jpw [~jpw@user/jpw] has quit [Quit: ZNC 1.9.1 - https://znc.in] 08:42 -!- tertullian [~sonne@ip-078-094-224-090.um19.pools.vodafone-ip.de] has joined #openbsd 08:44 -!- hellstabber [uid554062@user/hellstabber] has joined #openbsd 08:48 -!- Code_Bleu [~Code_Bleu@user/code-bleu/x-6939963] has quit [Ping timeout: 260 seconds] 08:48 -!- jalf [~bendavies@224.186.187.81.in-addr.arpa] has quit [Ping timeout: 248 seconds] 08:49 -!- jpw [~jpw@82-69-6-64.dsl.in-addr.zen.co.uk] has joined #openbsd 08:49 -!- jpw [~jpw@82-69-6-64.dsl.in-addr.zen.co.uk] has quit [Changing host] 08:49 -!- jpw [~jpw@user/jpw] has joined #openbsd 08:56 -!- jfsimon1981_b [~jfsimon19@lfbn-lyo-1-1454-239.w86-207.abo.wanadoo.fr] has joined #openbsd 08:57 -!- arino [~arinov@gateway/tor-sasl/arinov] has quit [Ping timeout: 260 seconds] 08:58 -!- eki [~eki@159-255-247-158.bb.dnainternet.fi] has quit [Quit: leaving] 09:01 -!- Code_Bleu [~Code_Bleu@user/code-bleu/x-6939963] has joined #openbsd 09:05 -!- daru [daru@gateway/vpn/airvpn/daru] has quit [Ping timeout: 252 seconds] 09:06 -!- yclept [~yclept@user/yclept] has quit [Quit: nyaa~] 09:08 -!- tercaL [~tercaL@user/tercal] has quit [Ping timeout: 246 seconds] 09:12 -!- daru [daru@gateway/vpn/airvpn/daru] has joined #openbsd 09:17 -!- Xenguy [~Xenguy@user/xenguy] has quit [Ping timeout: 244 seconds] 09:18 -!- eki [~eki@159-255-247-158.bb.dnainternet.fi] has joined #openbsd 09:21 -!- shiranaihito_ [~shiranaih@184.82.216.249] has quit [Quit: My Mac has gone to sleep. ZZZzzz…] 09:24 -!- CrashOverride [~strcat@p54854231.dip0.t-ipconnect.de] has joined #openbsd 09:25 -!- jesselawtonnz [~jesselawt@118.148.114.41] has joined #openbsd 09:25 < jesselawtonnz> hi 09:25 < jesselawtonnz> anyone here? 09:26 -!- jesselawtonnz [~jesselawt@118.148.114.41] has quit [Client Quit] 09:31 -!- xx [~xx@user/xx] has joined #openbsd 09:34 < IcePic> ENOPATIENCE 09:35 -!- sir-photch [~m-hy5poy@static.93.70.235.167.clients.your-server.de] has quit [Remote host closed the connection] 09:37 -!- sir-photch [~m-hy5poy@static.93.70.235.167.clients.your-server.de] has joined #openbsd 09:39 -!- d-ra [~d-ra@user/d-ra] has joined #openbsd 09:48 -!- tercaL [~tercaL@user/tercal] has joined #openbsd 09:52 -!- shiranaihito_ [~shiranaih@2405:9800:b660:bebf:24e0:f88e:669e:5bb3] has joined #openbsd 09:52 -!- agentcasey [~agentcase@143-42-229-181.ip.linodeusercontent.com] has quit [Ping timeout: 260 seconds] 10:11 < quinq> There are 700 people here, so I'd say yes 10:18 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has quit [Ping timeout: 260 seconds] 10:18 -!- zip100 [~zip100@185.209.196.224] has quit [Ping timeout: 265 seconds] 10:20 -!- ForeverNoob[m] [~ForeverNo@user/ForeverNoobm:35570] has quit [Ping timeout: 276 seconds] 10:20 -!- extrowerk [~extrowerk@BC06D778.dsl.pool.telekom.hu] has quit [Quit: Bye!] 10:21 -!- SiFuh_ [~SiFuh@user/sifuh] has quit [Remote host closed the connection] 10:21 -!- SiFuh_ [~SiFuh@user/sifuh] has joined #openbsd 10:24 -!- martin_ [nobody@84-52-249.35.3p.ntebredband.no] has quit [Quit: WeeChat 3.8] 10:25 -!- ForeverNoob[m] [~ForeverNo@user/ForeverNoobm:35570] has joined #openbsd 10:26 -!- tozhu [~tozhu@117.139.163.129] has joined #openbsd 10:30 -!- taleon_ is now known as taleon 10:32 -!- sourcetarius [~sourcetar@user/sourcetarius] has quit [Read error: Connection reset by peer] 10:33 -!- sourcetarius [~sourcetar@user/sourcetarius] has joined #openbsd 10:38 -!- jedesa [~Thunderbi@user/jedesa] has joined #openbsd 10:47 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Ping timeout: 260 seconds] 10:49 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has joined #openbsd 10:54 -!- tercaL [~tercaL@user/tercal] has quit [Remote host closed the connection] 10:54 -!- sourcetarius [~sourcetar@user/sourcetarius] has quit [Ping timeout: 245 seconds] 10:55 -!- namaste [~namaste@user/xyk] has quit [Remote host closed the connection] 10:56 -!- zip100 [~zip100@185.213.155.220] has joined #openbsd 10:58 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 11:01 -!- adig [~default@185.53.199.15] has quit [Remote host closed the connection] 11:02 -!- adig [~default@185.53.199.15] has joined #openbsd 11:06 -!- typicat [~karl@user/typicat] has joined #openbsd 11:06 -!- typicat [~karl@user/typicat] has quit [Client Quit] 11:07 -!- karl [~karl@4.180.184.203] has joined #openbsd 11:07 -!- karl [~karl@4.180.184.203] has quit [Changing host] 11:07 -!- karl [~karl@user/typicat] has joined #openbsd 11:11 -!- davlefou [~davlefou@2a01:e0a:5f4:4bd0:db60:da5c:7e45:636b] has quit [Ping timeout: 265 seconds] 11:14 -!- sunwind [~paradox@host109-152-19-30.range109-152.btcentralplus.com] has joined #openbsd 11:16 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has joined #openbsd 11:20 -!- tozhu [~tozhu@117.139.163.129] has left #openbsd [] 11:21 -!- euphores [~SASL_euph@user/euphores] has quit [Remote host closed the connection] 11:24 -!- davlefou [~davlefou@2a01:e0a:5f4:4bd0:6dcc:5147:2822:b1c3] has joined #openbsd 11:30 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 11:35 -!- xet7 [~xet7@user/xet7] has joined #openbsd 11:38 -!- adig [~default@185.53.199.15] has quit [Ping timeout: 260 seconds] 11:43 -!- deltahotel [~deltahote@user/deltahotel] has joined #openbsd 11:48 -!- mikeybsd [~solo@user/mikeybsd] has quit [Read error: Connection reset by peer] 11:48 -!- memset [~memset@gateway/tor-sasl/memset] has quit [Ping timeout: 260 seconds] 11:48 -!- deltahotel [~deltahote@user/deltahotel] has quit [Read error: Connection reset by peer] 11:50 -!- deltahotel [~deltahote@user/deltahotel] has joined #openbsd 11:51 -!- memset [~memset@gateway/tor-sasl/memset] has joined #openbsd 12:10 -!- roklein [~roklein@ip5f5accba.dynamic.kabel-deutschland.de] has joined #openbsd 12:11 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 12:14 -!- tozhu [~tozhu@171.223.92.164] has joined #openbsd 12:14 -!- tozhu [~tozhu@171.223.92.164] has quit [Client Quit] 12:15 -!- lavaball [~Melissa@31.204.155.215] has quit [Remote host closed the connection] 12:17 -!- unpx [~unpx@83.136.104.244] has quit [Ping timeout: 260 seconds] 12:18 -!- unpx [~unpx@83.136.104.244] has joined #openbsd 12:21 -!- memset [~memset@gateway/tor-sasl/memset] has quit [Ping timeout: 260 seconds] 12:28 -!- shiranaihito_ [~shiranaih@2405:9800:b660:bebf:24e0:f88e:669e:5bb3] has quit [Quit: My Mac has gone to sleep. ZZZzzz…] 12:32 -!- Alhazred [~Alhazred@user/Alhazred] has quit [Quit: leaving] 12:32 -!- Alhazred [~Alhazred@user/Alhazred] has joined #openbsd 12:32 -!- memset [~memset@gateway/tor-sasl/memset] has joined #openbsd 12:32 -!- martin_ [nobody@84-52-249.35.3p.ntebredband.no] has joined #openbsd 12:33 -!- mikeybsd [~solo@user/mikeybsd] has joined #openbsd 12:35 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 12:36 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 12:40 -!- DKnoto [~DKnoto_W3@public-gprs411680.centertel.pl] has joined #openbsd 12:45 -!- rozenglass [~rednight@matini.link] has quit [Read error: Connection reset by peer] 12:51 -!- rozenglass [~rednight@cordelia.matini.link] has joined #openbsd 12:56 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has quit [Ping timeout: 260 seconds] 12:58 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has joined #openbsd 13:00 -!- shreven [~shreven@user/shreven] has joined #openbsd 13:14 -!- seninha [~seninha@user/seninha] has joined #openbsd 13:18 -!- psydroid [~psydroid@user/psydroid] has joined #openbsd 13:26 -!- seninha [~seninha@user/seninha] has quit [Quit: Leaving] 13:26 -!- shiranaihito_ [~shiranaih@ppp-171-96-205-64.revip8.asianet.co.th] has joined #openbsd 13:27 -!- hwpplayer1 [~user@user/hwpplayer1] has joined #openbsd 13:32 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Remote host closed the connection] 13:36 -!- deltahotel [~deltahote@user/deltahotel] has quit [Quit: deltahotel] 13:37 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 13:38 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has quit [Ping timeout: 260 seconds] 13:40 -!- Xenguy [~Xenguy@user/xenguy] has quit [Remote host closed the connection] 13:42 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 248 seconds] 13:44 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 13:54 -!- drathir_tor [~drathir@wireguard/tunneler/drathir] has joined #openbsd 13:57 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 14:00 -!- Xenguy [~Xenguy@user/xenguy] has quit [Ping timeout: 265 seconds] 14:05 -!- feriman [~feriman@user/feriman] has quit [Ping timeout: 260 seconds] 14:06 -!- user71 [~user71@2001:1530:1002:fbb2:3e0f:ca50:ae6:d349] has joined #openbsd 14:08 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 14:10 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 260 seconds] 14:16 -!- gaussianblue [gaussianbl@user/gaussianblue] has joined #openbsd 14:19 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 14:22 -!- arino [~arinov@gateway/tor-sasl/arinov] has joined #openbsd 14:23 -!- ixc [~x@user/ixc] has joined #openbsd 14:23 -!- DirtyHarry is now known as sodapop 14:25 -!- ook [~ook@user/ook] has joined #openbsd 14:28 -!- sourcetarius [~sourcetar@user/sourcetarius] has joined #openbsd 14:31 -!- roklein [~roklein@ip5f5accba.dynamic.kabel-deutschland.de] has quit [Quit: Leaving] 14:32 -!- ixc [~x@user/ixc] has quit [Quit: ] 14:33 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 260 seconds] 14:33 -!- CosmicDJ [~cosmicdj@p200300e24f13b90102e04cfffe01e7ab.dip0.t-ipconnect.de] has quit [Ping timeout: 248 seconds] 14:34 -!- roklein [~roklein@ip5f5accba.dynamic.kabel-deutschland.de] has joined #openbsd 14:35 -!- CosmicDJ [~cosmicdj@p200300e24f48220102e04cfffe01e7ab.dip0.t-ipconnect.de] has joined #openbsd 14:36 -!- feriman [~feriman@user/feriman] has joined #openbsd 14:41 -!- hwpplayer1 [~user@user/hwpplayer1] has quit [Remote host closed the connection] 14:43 -!- xet7 [~xet7@user/xet7] has quit [Remote host closed the connection] 14:47 -!- zoraj [~ubuntu@102.113.152.215] has quit [Ping timeout: 246 seconds] 14:49 -!- zoraj [~ubuntu@102.113.149.89] has joined #openbsd 15:00 -!- luser1 [~luser@user/luser1] has quit [Quit: The Lounge - https://thelounge.chat] 15:01 -!- luser1 [~luser@user/luser1] has joined #openbsd 15:02 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 15:03 -!- luser1 [~luser@user/luser1] has quit [Client Quit] 15:04 -!- luser1 [~luser@user/luser1] has joined #openbsd 15:10 -!- bba [~bba@user/bba] has joined #openbsd 15:11 -!- tozhu [~tozhu@171.223.92.164] has joined #openbsd 15:12 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 252 seconds] 15:14 -!- tozhu [~tozhu@171.223.92.164] has quit [Client Quit] 15:19 -!- bba [~bba@user/bba] has quit [Quit: Leaving] 15:20 -!- DKnoto_W [~DKnoto_W3@public-gprs403195.centertel.pl] has joined #openbsd 15:23 -!- DKnoto [~DKnoto_W3@public-gprs411680.centertel.pl] has quit [Ping timeout: 265 seconds] 15:25 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 15:30 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has joined #openbsd 15:30 -!- schna [~schna@ip-037-201-198-107.um10.pools.vodafone-ip.de] has quit [] 15:30 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has quit [Remote host closed the connection] 15:30 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has joined #openbsd 15:31 < izder456> o/ 15:34 -!- jason123onirc [~jason123o@user/jason123onirc] has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in] 15:41 -!- mikeybsd [~solo@user/mikeybsd] has quit [Quit: WeeChat 4.1.1] 15:42 -!- birdnest [~bird@birdnest.live] has left #openbsd [] 15:42 -!- birdnest [~bird@birdnest.live] has joined #openbsd 15:43 -!- hellstabber [uid554062@user/hellstabber] has quit [Quit: Connection closed for inactivity] 15:49 -!- hwpplayer1 [~user@user/hwpplayer1] has joined #openbsd 15:53 -!- jnth [jnth@user/jnth] has joined #openbsd 15:57 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Remote host closed the connection] 15:57 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 16:02 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 260 seconds] 16:10 -!- xet7 [~xet7@user/xet7] has joined #openbsd 16:10 -!- sourcetarius_ [~sourcetar@user/sourcetarius] has joined #openbsd 16:11 -!- sourcetarius [~sourcetar@user/sourcetarius] has quit [Read error: Connection reset by peer] 16:11 -!- gman999 [~GMan999@user/gman999] has quit [Quit: WeeChat 4.2.1] 16:14 -!- znedw08 [~znedw@home.znedw.com] has quit [Ping timeout: 246 seconds] 16:15 -!- znedw08 [~znedw@home.znedw.com] has joined #openbsd 16:18 -!- deltahotel [~deltahote@user/deltahotel] has joined #openbsd 16:22 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 16:32 -!- apotheon_ is now known as apotheon 16:36 -!- hwpplayer1 [~user@user/hwpplayer1] has quit [Remote host closed the connection] 16:36 < dfdx> Hi #openbsd, sorry if this is a dumb question. I know relayd and pf work in tandem; but to use relayd, *must* pf be enabled and started? 16:37 -!- jason123onirc [~jason123o@user/jason123onirc] has joined #openbsd 16:38 -!- izder456` [~user@5.sub-174-194-103.myvzw.com] has joined #openbsd 16:38 -!- izder456` [~user@5.sub-174-194-103.myvzw.com] has quit [Remote host closed the connection] 16:38 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has quit [Remote host closed the connection] 16:39 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has joined #openbsd 16:39 < sibiria> i've made too little use of relayd to know if it's a hard requirement on the whole, but if you want to use layer 3 redirection then you need pf to be running 16:44 -!- format_c [~format_c@2a02:b98:f181:4094:f550:7488:2d5:5ffa] has joined #openbsd 16:44 < dfdx> hmm... thanks. 16:44 < dfdx> i am trying to setup relayd and i'm just feeling overwhelmed. 16:45 -!- lavaball [~Melissa@31.204.155.215] has joined #openbsd 16:46 -!- fflam [~mdt@2600:4040:10f9:be00::1c19] has quit [Ping timeout: 244 seconds] 16:48 -!- fflam [~mdt@45.134.140.136] has joined #openbsd 16:49 -!- d-ra [~d-ra@user/d-ra] has quit [Quit: Leaving] 16:49 < dfdx> basically, i want to host calibre-server, an ebook server that lets me read ebooks hosted on my machine via the browser. Its setup, and when i'm inside my network, I can navigate to http://192.168.1.78:8004 and read. But I'm trying to get this working with a domain I have: https://ebook.mydomain.com. I e-mailed openbsd-misc and someone suggested relayd. I'm wondering if this is actually what I need to 16:49 < dfdx> configure -- would pf, by itself, be enough to do this? 16:50 < dfdx> one problem is that calibre-server doesn't use fastcgi, so I can't just use openbsd's httpd here. 16:50 -!- tozhu [~tozhu@171.223.92.164] has joined #openbsd 16:50 < dfdx> calibre-server sets up its own http server. 16:57 < dfdx> like what I think I want is something like this pf rule: pass in on egress proto tcp from "https://ebook.mydomain.com" to any port 80 rdr-to 192.168.1.78 port 8004 16:57 -!- umgeher [~umgeher@2804:1080:c0e5:2700:ce62:4811:d99d:c573] has quit [Changing host] 16:57 -!- umgeher [~umgeher@user/umgeher] has joined #openbsd 16:58 < dfdx> but i don't know pf, either, so I don't even know if that makes sense. 16:59 < dfdx> actually, since I only have one machine, it would probably look like this: pass in on egress proto tcp from "https://ebook.mydomain.com" to any port 80 rdr-to 127.0.0.1 port 8004 17:03 -!- format_c [~format_c@2a02:b98:f181:4094:f550:7488:2d5:5ffa] has quit [Quit: format_c] 17:04 -!- lcubed [~lcubed@user/lcubed] has quit [Remote host closed the connection] 17:08 -!- Nahual [~Nahual@centos/community/Nahual] has quit [Quit: Leaving.] 17:09 -!- bsd4me [~bsduser@user/bsd4me] has joined #openbsd 17:14 -!- lcubed [~lcubed@user/lcubed] has joined #openbsd 17:16 -!- or4n_ [~or4n@gerbera.qkka.org] has quit [Ping timeout: 252 seconds] 17:16 -!- shdw [~shdw@static.218.156.216.95.clients.your-server.de] has quit [Ping timeout: 252 seconds] 17:17 -!- dustinm` [~dustinm@static.38.6.217.95.clients.your-server.de] has quit [Ping timeout: 252 seconds] 17:17 -!- vortexx [~nothing@user/vortexx] has quit [Ping timeout: 252 seconds] 17:17 -!- krzych [krzych@nroot.pl] has quit [Ping timeout: 252 seconds] 17:17 -!- dustinm`_ [~dustinm@static.38.6.217.95.clients.your-server.de] has joined #openbsd 17:17 -!- todi [~todi@p57803331.dip0.t-ipconnect.de] has quit [Ping timeout: 252 seconds] 17:17 -!- op2 [~op2@user/op2] has quit [Ping timeout: 252 seconds] 17:17 -!- hwpplayer1 [~user@user/hwpplayer1] has joined #openbsd 17:18 -!- emigrant [emigrant@109.231.52.211.koba.pl] has quit [Ping timeout: 252 seconds] 17:18 -!- rainbow [~rainbow@user/rainbow] has quit [Ping timeout: 252 seconds] 17:18 -!- Xenguy_ [~Xenguy@user/xenguy] has joined #openbsd 17:18 -!- emigrant [emigrant@109.231.52.211.koba.pl] has joined #openbsd 17:18 -!- or4n [~or4n@gerbera.qkka.org] has joined #openbsd 17:18 -!- fflam [~mdt@45.134.140.136] has quit [Ping timeout: 248 seconds] 17:18 -!- todi [~todi@p57803331.dip0.t-ipconnect.de] has joined #openbsd 17:18 -!- vortexx [~nothing@casper.nineinchnetworks.ch] has joined #openbsd 17:18 -!- vortexx [~nothing@casper.nineinchnetworks.ch] has quit [Changing host] 17:19 -!- vortexx [~nothing@user/vortexx] has joined #openbsd 17:19 -!- Xenguy [~Xenguy@user/xenguy] has quit [Quit: "To play for a draw [...] is to some degree a crime against chess." -- Mikhail Tal] 17:19 -!- solaare [~solaarae@user/solaarae] has quit [Ping timeout: 252 seconds] 17:20 -!- dev1ls [dev1ls@user/Dev1ls] has quit [Ping timeout: 252 seconds] 17:20 -!- fflam [~mdt@2600:4040:10f9:be00::1c19] has joined #openbsd 17:21 -!- Posterdati [~Posterdat@user/Posterdati] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 17:21 -!- rainbow [~rainbow@user/rainbow] has joined #openbsd 17:21 -!- dgl [~dgl@user/dg] has quit [Ping timeout: 252 seconds] 17:21 -!- cschutijser [~irc@mail.schutijser.com] has quit [Ping timeout: 252 seconds] 17:21 -!- solaare [~solaarae@user/solaarae] has joined #openbsd 17:21 -!- cschutijser [~irc@mail.schutijser.com] has joined #openbsd 17:21 -!- dg [~dgl@user/dg] has joined #openbsd 17:21 -!- ArGGu^^ [~quassel@109.204.149.82] has quit [Ping timeout: 246 seconds] 17:22 -!- shdw [~shdw@static.218.156.216.95.clients.your-server.de] has joined #openbsd 17:22 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has quit [Ping timeout: 252 seconds] 17:22 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has quit [Read error: Connection reset by peer] 17:24 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Ping timeout: 252 seconds] 17:24 -!- ArGGu^^ [~quassel@109.204.149.82] has joined #openbsd 17:24 -!- pew-pew [~pew-pew@user/pew-pew] has joined #openbsd 17:24 -!- noone [~six@user/six] has joined #openbsd 17:26 -!- falsifian [~falsifian@h0.falsifian.org] has quit [Quit: connection reset by purr] 17:26 -!- micronn [~micronn@user/micronn] has quit [Ping timeout: 252 seconds] 17:27 -!- micronn [~micronn@user/micronn] has joined #openbsd 17:27 -!- shoonly [~shoonly@user/Shoonly] has quit [Ping timeout: 248 seconds] 17:27 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has joined #openbsd 17:28 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has joined #openbsd 17:28 -!- op999 [~op999@user/a58379] has quit [Ping timeout: 252 seconds] 17:29 -!- op999 [~op999@user/a58379] has joined #openbsd 17:30 -!- tozhu [~tozhu@171.223.92.164] has quit [Quit: tozhu] 17:31 -!- euphores [~SASL_euph@user/euphores] has quit [Ping timeout: 260 seconds] 17:33 -!- Posterdati [~Posterdat@user/Posterdati] has joined #openbsd 17:33 -!- krzych [krzych@nroot.pl] has joined #openbsd 17:34 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 17:35 -!- falsifian [~falsifian@h0.falsifian.org] has joined #openbsd 17:38 -!- ArGGu^^ [~quassel@109.204.149.82] has quit [Ping timeout: 248 seconds] 17:38 -!- krzych [krzych@nroot.pl] has quit [Ping timeout: 252 seconds] 17:39 -!- krzych [krzych@nroot.pl] has joined #openbsd 17:40 -!- djames [~djames@user/djames/x-9001197] has joined #openbsd 17:40 -!- ArGGu^^ [~quassel@109.204.149.82] has joined #openbsd 17:47 -!- mastensg [~mastensg@pascal.mastensg.net] has joined #openbsd 17:47 -!- devune_ [~devune@121.127.33.125] has quit [Ping timeout: 252 seconds] 17:49 -!- devune [~devune@121.127.33.125] has joined #openbsd 17:50 -!- daru [daru@gateway/vpn/airvpn/daru] has joined #openbsd 17:50 -!- karl [~karl@4.180.184.203] has joined #openbsd 17:53 -!- ook [~ook@user/ook] has quit [Ping timeout: 244 seconds] 17:55 -!- ArGGu^^ [~quassel@109.204.149.82] has quit [Ping timeout: 255 seconds] 17:57 -!- ArGGu^^ [~quassel@109.204.149.82] has joined #openbsd 17:57 -!- euphores [~SASL_euph@user/euphores] has quit [Quit: Leaving.] 17:59 -!- euphores [~SASL_euph@user/euphores] has joined #openbsd 18:01 -!- djames [~djames@user/djames/x-9001197] has quit [Ping timeout: 255 seconds] 18:04 -!- ArGGu^^ [~quassel@109.204.149.82] has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.] 18:07 < dfdx> So base httpd cannot do proxy pass at all. I guess relayd can, but it's difficult. 18:09 -!- ArGGu^^ [~quassel@109.204.149.82] has joined #openbsd 18:09 -!- adig [~default@185.53.199.15] has joined #openbsd 18:13 -!- zimmer [~zimmer@user/zimmer] has quit [Ping timeout: 265 seconds] 18:15 < lts> Yes you need relayd for reverse proxying. There are plenty of guides for that, if (when) man relayd.conf is too complex to start with. If you're familiar with nginx, you can also just add that with pkg_add, and skip relayd 18:17 < dfdx> lts: really, plenty of guides? I have seriously spent hours and i am struggling to find anything that fits my use case. I even have and have read mwl's Http & Relayd Mastery. I can't figure it out at all how to apply it here. 18:17 < dfdx> is there any resource you could point me to? I don't mind reading. 18:17 -!- pew-pew [~pew-pew@user/pew-pew] has quit [Remote host closed the connection] 18:23 -!- krzych [krzych@nroot.pl] has joined #openbsd 18:23 -!- format_c [~format_c@2a02:b98:f181:4094:f550:7488:2d5:5ffa] has joined #openbsd 18:23 < lts> dfdx: the key words for search are "relayd" and "reverse proxy", which should find quite a lot. Eventually you're going to end up with something like this: https://bpa.st/DXNHBX3D2YFWR6YJVVPYRAHCJM 18:24 -!- karl [~karl@4.180.184.203] has quit [Quit: leaving] 18:24 < lts> If TLS is not required, remove the keypair line and change 443 lines to 80 18:25 < lts> (and remove tls from the 'listen on' line) 18:26 < dfdx> sure, i have seen relayd configs like this. but what about my httpd.conf? server "ebook.mydomain.com" { listen on * port 80 ... now what? what is my access point for "location"? location "/" ... what goes here? i can't find anything that ties these two together. 18:27 < lts> If calibre sets up its own http server, you don't use httpd at all 18:27 -!- format_c [~format_c@2a02:b98:f181:4094:f550:7488:2d5:5ffa] has quit [Client Quit] 18:28 < lts> Just use relayd to reverse proxy incoming connections to 127.0.0.1:8004 18:28 < dfdx> ahhh... 18:29 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 18:29 < dfdx> i totally get it now. 18:30 < dfdx> and I figure it out. that last bit helped clarify everything. 18:30 < lts> :-) 18:30 -!- adig [~default@185.53.199.15] has quit [Remote host closed the connection] 18:30 < dfdx> i was trying to somehow have httpd and relayd "work together" somehow, where I had a section in httpd.conf for ebook.mydomain.com and another section for it in relayd.conf. 18:30 -!- adig [~default@185.53.199.15] has joined #openbsd 18:31 < dfdx> but you're right. I just omit entirely the portions in httpd.conf for ebook.mydomain.com and relayd works! 18:31 -!- izder456 [~user@5.sub-174-194-103.myvzw.com] has quit [Ping timeout: 248 seconds] 18:31 < dfdx> i was trying to do wacky things with "location" in httpd.conf. *sigh* I'm so dumb. this clarifyed everything. thanks again. 18:36 -!- gaussianblue [gaussianbl@user/gaussianblue] has quit [Quit: leaving] 18:41 -!- ook [~ook@user/ook] has joined #openbsd 18:46 -!- DinoWilliam [~dino@user/DINOWILLIAM] has joined #openbsd 18:48 -!- Aedil [~adrian@146.52.104.238] has quit [Ping timeout: 265 seconds] 18:50 -!- Artea [~Lufia@vps.artea.ovh] has joined #openbsd 19:04 -!- lcubed [~lcubed@user/lcubed] has quit [Remote host closed the connection] 19:10 -!- lcubed [~lcubed@user/lcubed] has joined #openbsd 19:12 -!- seninha [~seninha@user/seninha] has joined #openbsd 19:20 -!- jalf_ [~bendavies@224.186.187.81.in-addr.arpa] has joined #openbsd 19:26 -!- op2 [~op2@user/op2] has joined #openbsd 19:26 < seninha> I was trying to continue an old project of writing a driver for xbox 360 wireless controller, as I have stated here a year ago: https://marc.info/?l=openbsd-misc&m=170266588606402&w=2 19:28 < seninha> But am giving up... Too much failure... Stefan war right on his presentation on EuroBSDcon 2017: you gonna fail a lot on the first driver... 19:28 < seninha> At least I know more of USB and HID than I ever wanted. 19:28 -!- jalf55 [~jalf@user/jalf] has joined #openbsd 19:35 < dfdx> lts: I lied. I didn't figure it out. fixing ebook.mydomain.com (with relayd) only breaks blog.mydomain.com (which is supported with httpd). TLS seems to be the culprit. My configs are here: https://bpa.st/IMV3O 19:36 < dfdx> The problem seems to be that either I can create a valid certificate for the entirety of mydomain.com, but creating an additional one just for ebook.mydomain.com seems to give me problems. I get no errors creating the certificate with acme-client and ocpscheck, but when I navigate to ebook.mydomain.com I get a warning in my browser giving me a SSL_ERROR_BAD_CERT_DOMAIN error. 19:37 < jalf55> Hey all. Noob here. Trying to understand the best/most appropriate/recommended approach. I want to write a program that sends messages and listens to all responses over /var/run/vmd.sock, but my limited understanding of unix sockets is that if a second process reads from the socket, the message is "consumed". I've seen it suggested a better 19:37 < jalf55> approach would be to introduce a "replicator" which proxies requests to the socket on behalf of other processes (and creating a unique socket for each of them), and duplicates messages from /var/run/vmd.sock to each connecting processes own socket file. Is this best practice? Any suggestions on a better way to send and receive messages over 19:37 < jalf55> /var/run/vmd.sock without disrupting users using vmctl, or is my openbsd noob brain way off base here? 19:38 -!- KernKraftWerk [~KernKraft@41.66.98.195] has joined #openbsd 19:38 -!- KernKraftWerk [~KernKraft@41.66.98.195] has quit [Changing host] 19:38 -!- KernKraftWerk [~KernKraft@user/KernKraftWerk] has joined #openbsd 19:38 -!- namaste [~namaste@user/xyk] has joined #openbsd 19:40 -!- kodcode [~kodcode@user/kodcode] has joined #openbsd 19:44 -!- zorz [~zorz@user/zorz] has joined #openbsd 19:50 -!- KernKraftWerk [~KernKraft@user/KernKraftWerk] has quit [Quit: WeeChat 4.3.1] 20:04 -!- ivdsangen [~ivo@86-95-161-96.fixed.kpn.net] has quit [Quit: https://github.com/ivdsangen] 20:07 -!- NicoleATX [~Nicole_xo@50.24.111.8] has joined #openbsd 20:08 -!- RayS [~raysl@sdf-1.vm.tornadovps.net] has quit [Quit: ZNC 1.8.2 - https://znc.in] 20:09 -!- user71 [~user71@2001:1530:1002:fbb2:3e0f:ca50:ae6:d349] has quit [Quit: Leaving] 20:11 -!- RayS [~raysl@sdf-1.vm.tornadovps.net] has joined #openbsd 20:11 -!- hwpplayer1 [~user@user/hwpplayer1] has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)] 20:16 -!- psydroid [~psydroid@user/psydroid] has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/] 20:16 -!- deltahotel [~deltahote@user/deltahotel] has quit [Quit: deltahotel] 20:25 -!- roklein [~roklein@ip5f5accba.dynamic.kabel-deutschland.de] has quit [Quit: Leaving] 20:29 -!- NicoleATX [~Nicole_xo@50.24.111.8] has quit [Quit: Leaving] 20:37 -!- DKnoto_W2 [~DKnoto_W3@public-gprs401135.centertel.pl] has joined #openbsd 20:40 -!- DKnoto_W [~DKnoto_W3@public-gprs403195.centertel.pl] has quit [Ping timeout: 246 seconds] 20:42 -!- Xenguy [~Xenguy@user/xenguy] has quit [Quit: "To play for a draw [...] is to some degree a crime against chess." -- Mikhail Tal] 20:47 -!- jalf_ [~bendavies@224.186.187.81.in-addr.arpa] has quit [Ping timeout: 252 seconds] 20:47 -!- jalf55 [~jalf@user/jalf] has quit [Ping timeout: 256 seconds] 20:48 -!- NicoleATX [~NicoleATX@user/NicoleATX] has joined #openbsd 20:54 -!- adig [~default@185.53.199.15] has quit [Read error: Connection reset by peer] 20:54 -!- adig [~default@185.53.199.15] has joined #openbsd 20:55 -!- CrashOverride [~strcat@p54854231.dip0.t-ipconnect.de] has quit [Ping timeout: 265 seconds] 20:55 -!- ardillita [~percy@p5dcffa8f.dip0.t-ipconnect.de] has joined #openbsd 20:56 -!- ardillita [~percy@p5dcffa8f.dip0.t-ipconnect.de] has quit [Client Quit] 20:57 -!- tortuga [~percy@p5dcffa8f.dip0.t-ipconnect.de] has joined #openbsd 20:59 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has joined #openbsd 21:00 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has quit [Remote host closed the connection] 21:00 -!- mijndert [~mijndert@user/mijndert] has quit [Quit: kbye] 21:00 -!- hussein1 [~weechat@gateway/tor-sasl/hussein1] has joined #openbsd 21:04 -!- pjlover [~pjlover@50.197.144.1] has quit [Quit: leaving] 21:04 -!- tortuga [~percy@p5dcffa8f.dip0.t-ipconnect.de] has quit [Quit: leaving] 21:04 -!- pjlover [~pjlover@81.6.40.196] has joined #openbsd 21:11 -!- whrl [~percy@p5dcffa8f.dip0.t-ipconnect.de] has joined #openbsd 21:21 -!- adip [~adip@c159-63.icpnet.pl] has quit [Ping timeout: 260 seconds] 21:21 -!- whrl [~percy@p5dcffa8f.dip0.t-ipconnect.de] has quit [Ping timeout: 252 seconds] 21:23 -!- adip [~adip@c159-63.icpnet.pl] has joined #openbsd 21:24 -!- whrl [~whrl@user/whrl] has joined #openbsd 21:24 < highplainsdruid> dfdx: only one or the other of relayd or httpd can be listening for connections on port 443. use httpd to host the contents of blog.domain.com on, for example, localhost:8080. then use relayd to reverse proxy tls connections looking for https:/blog.domain.com/ to localhost:8080 21:24 < highplainsdruid> i like some things about relayd but the configuration is confusing and in my opinion unnecessarily complex. i prefer nginx 21:25 < highplainsdruid> the same above instructions would work with nginx or relayd 21:26 < whrl> Hey, I'm trying to setup a Matrix server with a TURN server on OpenBSD. Not really sure what I'm doing and I'm having problems installing coTURN. Is it even possible or recommended? I got Matrix Dendrite setup so far. 21:28 -!- djames [~djames@user/djames/x-9001197] has joined #openbsd 21:29 < dfdx> highplainsdruid: ahh... hmm.... 21:31 < dfdx> so suppose I have www.domain.com, img.domain.com, blog.domain.com, bkup.domain.com, and ebooks.domain.com (all web servers). I have httpd handle all domains except ebooks.domain.com, and serve those using localhost:8080. Then I have relayd to reverse proxy tls connections looking for those subdomains to localhost:8080. IN ADDITION, I also have relayd handle and serve ebook.domain.com (with its own separate 21:31 < dfdx> tls certificate)? 21:32 < oldlaptop> What's relayd going to do to "handle and serve ebook.domain.com"? 21:33 < highplainsdruid> you're going to want to put each domain on its own port, so for example www on localhost:8080, img on localhost:8081, blog on localhost:8082, etc. then have relayd handle all TLS certificates and forward incoming connections from www to localhost:8080, img to localhost:8081, etc 21:33 < dfdx> well, ebook.domain.com is served by calbre-server, which is an http server that does not use fastcgi (so I can't have it work with httpd). so I can have relayd "listen on ebook.domain.com port 443 tls" and forward to 127.0.0.1:8081, for example. 21:33 < oldlaptop> Aaaah, okay. 21:34 < dfdx> highplainsdruid: aha... 21:34 < dfdx> so every domain has to be on its own port. is that something I can do with httpd? (I think so... i need to revisit httpd.conf(5), though, to make sure) 21:35 < highplainsdruid> yup, i did it that way for a long time before i switched to nginx 21:35 < highplainsdruid> i don't remember anymore why i switched but i needed the reverse proxy to do something i couldn't make relayd do, or couldn't figure out how to anyway 21:35 * oldlaptop wouldn't think it should be *necessary* to have different domains on different ports - vhosts have been a thing for a long time 21:35 < dfdx> yes, i am going through my own self-inflicted rite of passage right now, trying to only use base openbsd. because there is no proxy pass in httpd, it is extremely painful. 21:35 < dfdx> I don't know anything about vhosts. 21:36 < highplainsdruid> i guess i never considered using vhosts in that application 21:37 < highplainsdruid> it's a worthy rite of passage 21:37 < highplainsdruid> i did so as long as i could 21:38 -!- adip [~adip@c159-63.icpnet.pl] has quit [Ping timeout: 265 seconds] 21:38 < dfdx> highplainsdruid: can you give me an example of what your acme-client.conf looks like, then? like, you have separate sections for each subdomain? e.g., domain img.domain.com { domain key, domain certificate, etc... } domain blog.domain.com { domain key, domain certificate, etc... } domain bkup.domain.com { ... } domain ebooks.domain.com { ... } 21:38 < dfdx> Like that? 21:39 < highplainsdruid> been a while since i set it up, let me take a peek, but i believe so 21:39 < highplainsdruid> yes, just like that 21:39 < dfdx> hmm... okay. this is an extremely helpful tip. I will try to make it work. 21:40 < highplainsdruid> you can continue to use httpd to listen on port 80 for your acme-client stuff 21:40 < dfdx> and then i guess your relayd.conf must be very long, as it has sections to point ot each subdomain. 21:40 < highplainsdruid> let me see if i still have it. you want some nightmare fuel.... 21:40 < dfdx> but that is where it gets tricky. httpd listens on port 80 and redirects to port 443. what is the "location" I use in httpd.conf? 21:40 < dfdx> lol. i am living the nightmare right now! 21:41 < whrl> Sorry to disturb you guys, but I'm new to irc and I'm not sure if my messages can be seen yet. A quick confirmation would be great 21:42 < dfdx> whrl: i see you. 21:42 < whrl> dfdx: awesome. thx! 21:44 < whrl> Well, Imma just leave this here: if anyone has experience with setting up a matrix server or just a TURN server, any help/info would be greatly appreciated. Cheers! 21:44 -!- jalf [~bendavies@224.186.187.81.in-addr.arpa] has joined #openbsd 21:44 < highplainsdruid> ok it doesn't have anything in there from when i was running synapse. that was the nightmare fuel. this is painful but not awful. https://sundak.net/relayd.conf.txt 21:45 < highplainsdruid> i ran synapse for a while but never with a TURN server 21:46 -!- djames [~djames@user/djames/x-9001197] has quit [Ping timeout: 252 seconds] 21:46 < dfdx> highplainsdruid: ah... this looks different than I expected. I was expecting it to look more like this example: https://jrswab.com/blog/how-to-install-synapse-on-openbsd 21:46 < dfdx> note its very similar, but it has the following 21:47 < dfdx> pass request quick header "Host" value "example.com" forward to 21:47 < dfdx> pass request quick header "Host" value "chat.example.com" forward to 21:47 < dfdx> (in addition to the separte forwards in the relay) 21:48 < highplainsdruid> it's been so long since i've set it up that i don't recall the specific logic behind my design decisions 21:48 < dfdx> :) that's alright. this is still awesome. thanks alot. 21:48 < highplainsdruid> can't really comment knowledgeably about the presence or absence of such lines 21:48 < highplainsdruid> you're welcome 21:48 < dfdx> wait a sec. you're listening on some IP address. 21:49 < dfdx> how does relayd here determine where to relay too? 21:50 < highplainsdruid> it's these lines in the protocol: match request header "Host" value "REDACTED.com" forward to 21:50 < highplainsdruid> that is precisely why i hate relayd 21:50 < highplainsdruid> the config files are so bizarre 21:50 < dfdx> oooooohhhhh 21:50 -!- djames [~djames@user/djames/x-9001197] has joined #openbsd 21:50 -!- shiranaihito_ [~shiranaih@ppp-171-96-205-64.revip8.asianet.co.th] has quit [Quit: My Mac has gone to sleep. ZZZzzz…] 21:50 < dfdx> haha i think I get it now. let me play around with this. thank you!! 21:51 < highplainsdruid> you're welcom 21:51 < highplainsdruid> e 21:51 < whrl> highplainsdruid: ok, I tried installing coturn through openbsd ports, it gives an error about "requires correctly installed X11". Surely that's not something I want/need on my headless server? 21:51 < highplainsdruid> having never worked with coturn that's one i can't answer for you unfortunately. does seem strange though 21:52 < whrl> ok, thanks anyways 21:53 < highplainsdruid> you're welcome. good luck 21:53 < whrl> thx! 21:53 -!- willyg_fl [~willyg_co@user/willyg-cos/x-4994202] has quit [Quit: willyg_fl] 21:54 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 21:54 -!- adip [~adip@c159-63.icpnet.pl] has joined #openbsd 21:57 -!- djames [~djames@user/djames/x-9001197] has quit [Ping timeout: 246 seconds] 21:57 -!- Xenguy [~Xenguy@user/xenguy] has quit [Client Quit] 21:58 < dfdx> highplainsdruid: i'm following your config and I understand 90% of it. do I need to worry about those "match tagged" lines? It seems like you're doing some specific things with subdirectories. 21:59 < dfdx> i'm guessing those are safe to ignore... I hope... 22:00 < highplainsdruid> you can probably ignore those 22:00 < highplainsdruid> what's going on there is i am redirecting subdirectories of a domain to different servers 22:00 < highplainsdruid> so someone requests domain.com/subdirectory/ and the request gets forwarded to another web server 22:01 < highplainsdruid> normally requests are forwarded unaltered, so a request for domain.com/subdirectory/file.txt gets forwarded to 10.0.0.1/subdirectory/file.txt 22:01 < dfdx> yup, understood. thanks. 22:02 < highplainsdruid> but if that server is something like your ebook reader, you don't want to request subdirectory/file.txt, you want to just request file.txt, so the strip removes /subdirectory from the request 22:03 < highplainsdruid> setting the X-Forwarded-Prefix lets the ebook server (or whatever) put links that work on the page. it prepends that header to all the links so they work for the user 22:04 < highplainsdruid> this needs to be supported by whatever server is running, it won't automagically happen 22:04 < highplainsdruid> in my case these are python/flask web applications 22:05 -!- whrl [~whrl@user/whrl] has quit [Quit: leaving] 22:10 < dfdx> you are being very kind with your time, explaining this to me. thank you. 22:17 < systemdsucks> no new snapshots for a week 22:17 < systemdsucks> maybe we are closing to release 22:17 -!- Xenguy [~Xenguy@user/xenguy] has joined #openbsd 22:20 < highplainsdruid> mid oct to early nov probably 22:27 < dfdx> highplainsdruid: i think I am stuck. how in httpd.conf do I set the port? e.g., for blog.domain.com, I have a "server" section that listens on port 80 for the acme-challenge and then "block return"s to blog.domain.com port 443. then I have a second "server" section for "blog.domain.com" where I "listen on * tls port 443". 22:27 < dfdx> but in relayd.conf, I need this blog.domain.com to point to port 8081, for example. 22:29 < dfdx> I do include the port in the block return when I listen on port 80? 22:31 < highplainsdruid> just replace 'listen on * tls port 443' with 'listen on localhost port 8081' 22:33 < dfdx> I did that. but all I get when I browse to my URL now is: ERR_EMPTY_RESPONSE 22:34 < dfdx> i.e., the website didn't send any data. I get no errors when I run httpd -n or relayd -n. 22:34 < dfdx> let me share my confs. 22:35 < klsrqm> i might be misreading it but shouldn't it be the other way around? so: internet --> port 80 --> relayd redirects internet port 80 to lolcal port 8081 --> httpd listens on 8081? 22:35 < dfdx> klsrqm: yes but there is tls port 443 to worry about. 22:35 < highplainsdruid> we're doing ssl so internet -> port 443 -> relayd tls -> local port 8081 -> httpd listening on 8081 22:35 < klsrqm> and httpd isn't serving up ssl? 22:36 < klsrqm> so is relayd handling TLS? 22:36 < highplainsdruid> we don't want it to with this setup 22:36 < highplainsdruid> correct 22:36 < klsrqm> ah ok. will be interested in the confs 22:36 < dfdx> oohhh 22:36 < dfdx> nvm... I need to update the tls conf lines in httpd. 22:36 < dfdx> maybe I need to do that. 22:37 < klsrqm> dfdx: you don't need httpd to serve any tls at all actually 22:37 < klsrqm> relayd can handle the ssl. 22:38 < klsrqm> you can run httpd on 8081 without ssl, and then you can add a tls accelerator 22:39 < klsrqm> actually there is such an example in the relayd.conf(5) manpage 22:39 < dfdx> if this doesn't work I might look into that... 22:40 < dfdx> yeah... it didn't work. 22:40 * dfdx sighs 22:40 < klsrqm> it's going to work out, don't worry :) 22:40 < dfdx> also, i'm now getting "acme-client: https://acme-v02.api.letsencrypt.org/acme/new-order: bad HTTP: 429" when I run acme-client on one of my subdomains -- ironically ebook.domain.com, the one i was trying to figure out in the beginning! 22:41 < highplainsdruid> post those confs 22:42 < klsrqm> btw i don't know if this helps at all but I wrote something on reverse-proxying with relayd for gemini: gemini://vigilia.cc/?p=gemlog/2024/2024-08-16%20Gemini%20reverse-proxying%20with%20OpenBSD%20and%20relayd.gmi 22:51 -!- seninha [~seninha@user/seninha] has quit [Ping timeout: 252 seconds] 22:51 -!- op999 [~op999@user/a58379] has quit [Quit: ZNC 1.9.1 - https://znc.in] 22:54 -!- drkhsh [~drkhsh@user/drkhsh] has quit [Quit: WeeChat 4.3.5] 23:00 < dfdx> highplainsdruid: sorry this took so long. 23:00 < dfdx> here is my httpd.conf: https://bpa.st/KREHA 23:02 -!- seninha [~seninha@user/seninha] has joined #openbsd 23:02 < highplainsdruid> you're going to want to remove all references to tls in httpd.conf as relayd is now handling that 23:02 < klsrqm> what i'd do is not have httpd listen on 443 at all. 23:03 -!- bsd4me [~bsduser@user/bsd4me] has quit [Ping timeout: 276 seconds] 23:03 < klsrqm> only relayd should listen on 443, and then forward to the appropriate httpd 808x pors 23:03 < highplainsdruid> yes 23:03 < klsrqm> and yes, remove tls directives from httpd.conf 23:03 < klsrqm> httpd serves plain HTTP, relayd adds the TLS magic 23:04 < dfdx> this is my relayd.conf, btw: https://bpa.st/R3MVI 23:04 < dfdx> highplainsdruid: ahh.... 23:05 < klsrqm> i think if you remove the tls directives and the 443 port from httpd, it should work 23:06 -!- lavaball [~Melissa@31.204.155.215] has quit [Remote host closed the connection] 23:06 < dfdx> okay, at least I now get an Internal Server Error coming from relayd (which is red). 23:06 < dfdx> that is an improvement. 23:06 < dfdx> so I should get rid of all the port 80 sections in httpd.conf, as well, I guess? 23:08 -!- drkhsh [~drkhsh@user/drkhsh] has joined #openbsd 23:08 < klsrqm> if you want serve up cleartext HTTP on 80, you can leave it in 23:08 < klsrqm> it shouldn't clash 23:08 < klsrqm> basically you want httpd to not do any tls/ssl 23:08 < highplainsdruid> dfdx: try this https://sundak.net/newhttpd.conf.txt 23:09 -!- drkhsh [~drkhsh@user/drkhsh] has quit [Client Quit] 23:09 < highplainsdruid> you can dramatically simplify your http -> https redirection and your acme-client conf portions 23:09 < dfdx> and here is my acme-client.conf: https://bpa.st/XM5GO 23:09 -!- drkhsh [~drkhsh@user/drkhsh] has joined #openbsd 23:10 < klsrqm> dfdx: why don't you use a wildcard certificate for *.domain.com? 23:10 < highplainsdruid> oh i forgot to put "default" in quotes, file fixed now 23:11 < klsrqm> hope it works out fine! i've gotta go and catch some sleep now... 23:12 -!- adip [~adip@c159-63.icpnet.pl] has quit [Ping timeout: 246 seconds] 23:12 -!- djames [~djames@user/djames/x-9001197] has joined #openbsd 23:12 < highplainsdruid> relayd.conf looks good. your ebook line is commented out if you missed that but the configuration looks good 23:13 < highplainsdruid> in my acme-client.conf i only have domain key "/etc/ssl/private/domain.com.key" and domain full chain certificate "/etc/ssh/domain.com.crt" 23:14 < highplainsdruid> i'm not sure what difference separating out the full chain makes or doesn't 23:14 < dfdx> omg. 23:14 < dfdx> that worked. 23:14 < dfdx> not for the ebooks, but everything else works this way. 23:15 < highplainsdruid> woo! 23:15 < dfdx> highplainsdruid: you don't have "alternative names" set up in acme-conf like I do/ 23:15 -!- jalf [~bendavies@224.186.187.81.in-addr.arpa] has quit [Ping timeout: 265 seconds] 23:15 < dfdx> ? 23:15 < dfdx> (in the commented out section) 23:15 < dfdx> what you're saying is I should comment out the rest and uncomment the commented out portion. 23:15 < klsrqm> \o/ 23:15 < highplainsdruid> no i don't have anything like your commented out section in there 23:15 < highplainsdruid> yo ucan leave that commented 23:17 < highplainsdruid> https://sundak.net/acme-client.conf.txt 23:17 < highplainsdruid> i'm not sure if the difference between yours and mine matters 23:17 < highplainsdruid> your acme-client.conf is probably fine 23:18 -!- xzdx [~xzdx@user/XZDX] has joined #openbsd 23:21 < dfdx> I am having a very weird problem with my relayd.conf. 23:21 < dfdx> here is my conf: https://bpa.st/G2IKM 23:22 < dfdx> this comment, as I posted it, works fine and gives me no errors when I run # relayd -n. 23:22 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has quit [Read error: Connection reset by peer] 23:22 < dfdx> but when I uncomment the last three comments, relating to ebooks, I get the following error: 23:22 < dfdx> /etc/relayd.conf:54: syntax error 23:22 < dfdx> /etc/relayd.conf:60: no such protocol: wwwtls 23:22 < dfdx> am I doing something wrong? 23:23 -!- xzdx [~xzdx@user/XZDX] has quit [Ping timeout: 252 seconds] 23:23 < dfdx> I think it is because I can't generate an ebooks.domain.io crt and fullchain.pem. 23:24 < dfdx> (i keep getting an error when I run acme-client for this specific subdomain... I don't know why.) 23:24 < highplainsdruid> something about the tls keypair 23:24 < highplainsdruid> what's the acme-client error? 23:25 < dfdx> i am rushing. 23:25 < dfdx> I just f'ed up in a bad way. 23:25 < dfdx> I just rm * in /etc/ssl. and i now have no cert.pem anymore. fml. 23:25 < dfdx> i need to step away. 23:26 -!- djames [~djames@user/djames/x-9001197] has quit [Ping timeout: 252 seconds] 23:27 -!- xet7 [~xet7@user/xet7] has quit [Remote host closed the connection] 23:27 -!- zwr [~zwr@201-4-87-25.user3p.veloxzone.com.br] has joined #openbsd 23:27 < dfdx> is this a "reinstall openbsd" kind of error? 23:30 -!- seninha [~seninha@user/seninha] has quit [Ping timeout: 260 seconds] 23:30 < highplainsdruid> probably not 23:31 < highplainsdruid> https://sundak.net/cert.pem 23:32 < highplainsdruid> chown root:bin /etc/ssl/cert.pem chmod 0444 /etc/ssl/cert.pem 23:33 < dfdx> I cannot wget or curl that becuase i cannot verify the issuers authority :( 23:33 < dfdx> # curl https://sundak.net/cert.pem 23:33 < dfdx> curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/cert.pem CApath: none 23:33 < highplainsdruid> use a different machine to download the file? 23:34 < dfdx> okay, done. phew. 23:35 < dfdx> with the acme-client.conf you provided, it conflicts with what you provided with the relayd.conf, which has tls keypairs with all your various domains -- not one single one. 23:39 < highplainsdruid> yeah i dramatically simplified that conf 23:39 < highplainsdruid> they're all the same just different domains 23:40 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 23:43 -!- emmanuelux [~emmanuelu@user/emmanuelux] has joined #openbsd 23:46 -!- rao^ [~rao@c-98-242-74-66.hsd1.ga.comcast.net] has quit [Ping timeout: 260 seconds] 23:48 -!- zimmer [~zimmer@user/zimmer] has quit [Remote host closed the connection] 23:54 -!- zimmer [~zimmer@user/zimmer] has joined #openbsd 23:54 -!- djames [~djames@user/djames/x-9001197] has joined #openbsd --- Log closed Sun Sep 15 00:00:09 2024