Guide for Configuring python(1) with httpd(8)

2022-12-17 Thread indivC
Can anyone provide a guide for this or rough instructions? I'm running httpd(8) and trying to utilize a python(1) script with an html file. I've got this working using perl(1). However, it doesn't work with python(1) when following the same steps. My python(1) version is 3.9.15 My OpenBSD

Re: scp doesn't work properly when the file name begins with a dash h

2022-12-17 Thread Mik J
Hello, Thank you both for your answers. Le vendredi 16 décembre 2022 à 01:59:41 UTC+1, Geoff Steckel a écrit : On 12/15/22 18:59, Mik J wrote: > Hello, > > I have a file named like this > -hh-6CP0_3Xf9nreW45XSBGrstMsovnIX6tTe45Enk4 > > and when I do a scp i have this output > scp:

Getting to know malloc

2022-12-17 Thread chohag
In a personal project I need a low-level memory allocator and as I don't know how one works and need to read Knuth 6 times to begin to misunderstand it, I decided to learn how the allocator I use every day works: OpenBSDs malloc. To do this means reading the code and making notes describing what

Re: Securely managing TLS certificates on growing server (website, XMPP, soon email)?

2022-12-17 Thread Omar Polo
On 2022/12/17 18:03:01 +0100, Omar Polo wrote: > On 2022/12/17 16:25:20 +, Lucas wrote: > > > > Then the private keys within would all have 0400 permissions, user and > > > > group > > > > being the same (so _prosody:_prosody for XMPP-related TLS). I noted > > > > that the > > > > default

Re: Securely managing TLS certificates on growing server (website, XMPP, soon email)?

2022-12-17 Thread Omar Polo
On 2022/12/17 16:25:20 +, Lucas wrote: > > > Then the private keys within would all have 0400 permissions, user and > > > group > > > being the same (so _prosody:_prosody for XMPP-related TLS). I noted that > > > the > > > default is 700 permissions on `/etc/ssl/private` with root:wheel >

Re: Securely managing TLS certificates on growing server (website, XMPP, soon email)?

2022-12-17 Thread Lucas
> > Then the private keys within would all have 0400 permissions, user and group > > being the same (so _prosody:_prosody for XMPP-related TLS). I noted that the > > default is 700 permissions on `/etc/ssl/private` with root:wheel ownership. > > Is > > the approach I've just outlined with adding

Re: DHCP server ignoring PF rules?

2022-12-17 Thread Marcus MERIGHI
hello, barbarosb...@gmail.com (Barbaros Bilek), 2022.12.17 (Sat) 15:07 (CET): > On Sat, Dec 17, 2022 at 4:40 PM Cristian Danila wrote: > > Thanks for the provided info, now it makes sense about what is happening. > > Any idea about a possible way to control these packets? > > Still

Re: DHCP server ignoring PF rules?

2022-12-17 Thread Cristian Danila
I was just about thinking to it, I will try it. Many thanks and have a wonderful day! On Sat, Dec 17, 2022 at 4:07 PM Barbaros Bilek wrote: > > Hello Cristian, > > If you put your physical interface into veb(4) and set link1 flag you can > filter dhcp packets. > For more please read man veb >

Re: DHCP server ignoring PF rules?

2022-12-17 Thread Barbaros Bilek
Hello Cristian, If you put your physical interface into veb(4) and set link1 flag you can filter dhcp packets. For more please read man veb Have a nice weekend. -- Best Regards Barbaros On Sat, Dec 17, 2022 at 4:40 PM Cristian Danila wrote: > Thanks for the provided info, now it makes sense

Re: DHCP server ignoring PF rules?

2022-12-17 Thread Cristian Danila
Thanks for the provided info, now it makes sense about what is happening. Any idea about a possible way to control these packets? Still investigating but I had still not found yet a way to do it. Thank you. On Sat, Dec 17, 2022 at 3:11 PM David Gwynne wrote: > > dhcpd reads packets off the wire

Python access to Berkeley DB

2022-12-17 Thread Roger Marsh
The attempt to get at Berkeley DB, installed from packages, via tkinter fails with some undefined symbol messages. Is there something I have not done which would make this work? I tried this because the bsddb3 (Python) package is not supported at Python 10, and it's replacement, berkeleydb,

Re: DHCP server ignoring PF rules?

2022-12-17 Thread David Gwynne
dhcpd reads packets off the wire using BPF, which happens as packets come off the network interface, but before the IP stack where pf runs. > On 17 Dec 2022, at 22:40, Cristian Danila wrote: > > Good day! > I finished setup an DHCP server and for some reason it seems DHCP > server is ignoring

DHCP server ignoring PF rules?

2022-12-17 Thread Cristian Danila
Good day! I finished setup an DHCP server and for some reason it seems DHCP server is ignoring PF filter. In short, in PF I have active only one rule: block drop quick all Double checked PF and it is enabled So using a windows machine to test DHCP server: 1) ifconfig /release 2) ifconfig /renew