Re: Python flask socket with httpd problems

2018-08-12 Thread edgar
What are the permissions on the socket? Can user www read and write to it?
On Aug 12, 2018 11:40 AM, Tony Boston  wrote:
>
> On 12.08.18 03:25, flipchan wrote:
> > Hello all,
> > 
> > im trying to run a python flask application with httpd
> > as a reverse proxy and im not getting it to work.
> > 
> > According to the python flask's online documentation, 
> > i should be able to just create a fast-cgi socket that 
> > should work with httpd, however i am only getting 500
> > errors when i do this.
> > Link: https://uwsgi-docs.readthedocs.io/en/latest/OpenBSDhttpd.html
> > 
> > 
> > 
> > curl output:
> > * About to connect() to mywebsite.com port 8086 (#0)
> > *   Trying myip...
> > * connected
> > * Connected to mywebsite.com (myip) port 8086 (#0)
> > > GET /test HTTP/1.1
> > > User-Agent: curl/7.26.0
> > > Host: mywebsite.com:8086
> > > Accept: */*
> > > 
> > * additional stuff not fine transfer.c:1037: 0 0
> > * HTTP 1.0, assume close after body
> > < HTTP/1.0 500 Internal Server Error
> > < Date: Tue, 15 May 2018 15:40:40 GMT
> > < Server: OpenBSD httpd
> > < Connection: close
> > < Content-Type: text/html
> > < Content-Length: 451
> > < 
> > 
> > 
> > 
> > 
> > 500 Internal Server Error
> > 
> > 
> > 
> > 500 Internal Server Error
> > 
> > OpenBSD httpd
> > 
> > 
> > * Closing connection #0
> > 
> > # cat /etc/httpd.conf
> > # $OpenBSD: httpd.conf,v 1.16 2016/09/17 20:05:59 tj Exp $
> > 
> > # A minimal default server
> > server "default" {
> > listen on 0.0.0.0 port 8086
> > 
> > fastcgi socket "/var/www/run/pfweb.sock"
> > }
> > 
> > 
> > 
> > 
> > i also tried to have the python script manually create a 
> > fast-cgi socket with the python library flup 
> > ("https://pypi.python.org/pypi/flup/1.0.2";)
> > 
> > 
> > 
> > Have anyone gotten a python flask application to work with httpd 
> > as a reverse proxy with a fast-cgi socket? cuz im really not 
> > getting it to work.
> > 
> > 
> > 
> > Thanks in advanced
> > -flipchan
> > 
> > -- 
> > Take Care Sincerely flipchan layerprox dev
>
> Since you're getting Error 500 - you should look at your webserver
> logs - I don't see any in your email
>
> -- 
> Tony
>
> GPG-FP: 913BBD25 8DA503C7 BAE0C0B6 8995E906 4FBAD580
> Threema: DN8PJX4Z



Re: OpenBSD as a DHCPv6 client

2018-08-12 Thread Stuart Henderson
On 2018-08-12, Klemens Nanni  wrote:
> On Sun, Aug 12, 2018 at 10:10:18PM +0200, z...@aaathats3as.com wrote:
>> Is there still no native way to do this?
> There is no DHCPv6 client in base, I recommend net/dhcpcd.
>
>

btw: dhcpcd will normally store its generated duid in /var/db/dhcpcd/duid




Re: OpenBSD as a DHCPv6 client

2018-08-12 Thread Klemens Nanni
On Sun, Aug 12, 2018 at 10:10:18PM +0200, z...@aaathats3as.com wrote:
> Is there still no native way to do this?
There is no DHCPv6 client in base, I recommend net/dhcpcd.



OpenBSD as a DHCPv6 client

2018-08-12 Thread zzz

Hi everyone,

I'm looking to set up my OpenBSD router as an DHCPv6 client. My ISP
provides me with a IPv6 block, say "abcd:1234::/56". They want me to
input my router's DUID so they can assign it to me

I found the following post: 
http://daemonforums.org/showthread.php?t=7769


Is there still no native way to do this?

Kind regards



Re: Python flask socket with httpd problems

2018-08-12 Thread Tony Boston
On 12.08.18 03:25, flipchan wrote:
> Hello all,
> 
> im trying to run a python flask application with httpd
> as a reverse proxy and im not getting it to work.
> 
> According to the python flask's online documentation, 
> i should be able to just create a fast-cgi socket that 
> should work with httpd, however i am only getting 500
> errors when i do this.
> Link: https://uwsgi-docs.readthedocs.io/en/latest/OpenBSDhttpd.html
> 
> 
> 
> curl output:
> * About to connect() to mywebsite.com port 8086 (#0)
> *   Trying myip...
> * connected
> * Connected to mywebsite.com (myip) port 8086 (#0)
> > GET /test HTTP/1.1
> > User-Agent: curl/7.26.0
> > Host: mywebsite.com:8086
> > Accept: */*
> > 
> * additional stuff not fine transfer.c:1037: 0 0
> * HTTP 1.0, assume close after body
> < HTTP/1.0 500 Internal Server Error
> < Date: Tue, 15 May 2018 15:40:40 GMT
> < Server: OpenBSD httpd
> < Connection: close
> < Content-Type: text/html
> < Content-Length: 451
> < 
> 
> 
> 
> 
> 500 Internal Server Error
> 
> 
> 
> 500 Internal Server Error
> 
> OpenBSD httpd
> 
> 
> * Closing connection #0
> 
> # cat /etc/httpd.conf
> # $OpenBSD: httpd.conf,v 1.16 2016/09/17 20:05:59 tj Exp $
> 
> # A minimal default server
> server "default" {
> listen on 0.0.0.0 port 8086
> 
> fastcgi socket "/var/www/run/pfweb.sock"
> }
> 
> 
> 
> 
> i also tried to have the python script manually create a 
> fast-cgi socket with the python library flup 
> ("https://pypi.python.org/pypi/flup/1.0.2";)
> 
> 
> 
> Have anyone gotten a python flask application to work with httpd 
> as a reverse proxy with a fast-cgi socket? cuz im really not 
> getting it to work.
> 
> 
> 
> Thanks in advanced
> -flipchan
> 
> -- 
> Take Care Sincerely flipchan layerprox dev

Since you're getting Error 500 - you should look at your webserver
logs - I don't see any in your email

-- 
Tony

GPG-FP: 913BBD25 8DA503C7 BAE0C0B6 8995E906 4FBAD580
Threema: DN8PJX4Z


signature.asc
Description: PGP signature


Console screen size is not right on OpenBSD 6.4-Beta

2018-08-12 Thread Christophe Prévotaux
Hello,

I tried OpenBSD 6.4-Beta (see screen photo on the link below)

https://twitter.com/4mig4/status/1028560675151392768

I just found a strange problem with 6.4-beta OpenBSD/i386 console is confined to
the area shown on screenshot max is 106x30 chars. How tofix this ? chipset is
i915

As you can see from the dmesg below it is on a old Core Duo laptop.
The same thing happens on another core duo laptop of the same manufacturer
just a different model.


OpenBSD 6.4-beta (GENERIC.MP) #810: Sat Aug 11 01:06:34 MDT 2018
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
real mem  = 2137014272 (2038MB)
avail mem = 2082955264 (1986MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 05/29/06, BIOS32 rev. 0 @ 0xfd490, SMBIOS rev. 2.4 @
0xdf810 (34 entries) bios0: vendor Acer version "v1.3123" date 05/29/06
bios0: Acer, inc. TravelMate 3010
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC HPET MCFG APIC BOOT SSDT
acpi0: wakeup devices HDEF(S3) PXS1(S4) LANE(S4) PXS5(S4) PXS6(S4) USB1(S3)
USB2(S3) USB3(S3) USB4(S3) USB7(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Genuine Intel(R) CPU T2300 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,EST,TM2,xTPR,PDCM,PERF,SENSOR,MELTDOWN
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock
running at 166MHz cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2300 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,EST,TM2,xTPR,PDCM,PERF,SENSOR,MELTDOWN
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins , remapped to
apid 1 acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (RP01)
acpiprt2 at acpi0: bus 3 (RP02)
acpiprt3 at acpi0: bus 4 (RP03)
acpiprt4 at acpi0: bus -1 (PXHA)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus 10 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(100@57 io@0x1016), !C2(500@1 io@0x1014), C1(1000@1
halt), PSS acpicpu1 at acpi0: !C3(100@57 io@0x1016), !C2(500@1 io@0x1014),
C1(1000@1 halt), PSS acpitz0 at acpi0: critical temperature is 97 degC
acpicmos0 at acpi0
"PNP0A05" at acpi0 not configured
"NSC6001" at acpi0 not configured
"SYN1003" at acpi0 not configured
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 not present
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibtn2 at acpi0: SLPB
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: DOCK not docked (0)
acpivideo0 at acpi0: GFX0
bios0: ROM list: 0xc/0xe600! 0xce800/0x1600 0xdf800/0x800! 0xe/0x1c00!
cpu0: Enhanced SpeedStep 1667 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
inteldrm0 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0: apic 1 int 16
inteldrm0: 848x480, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC883, Conexant/0x2bfa, using Realtek ALC883
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 16
pci1 at ppb0 bus 2
wpi0 at pci1 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW1,
address 00:13:02:86:52:5b ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE"
rev 0x02: apic 1 int 17 pci2 at ppb1 bus 3
bge0 at pci2 dev 0 function 0 "Broadcom BCM5789" rev 0x11, BCM5750 B1 (0x4101):
apic 1 int 17, address 00:16:36:5d:7c:65 brgphy0 at bge0 phy 1: BCM5750
10/100/1000baseT PHY, rev. 0 ppb2 at pci0 dev 28 function 2 "Intel 82801GB
PCIE" rev 0x02: apic 1 int 18 pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 1 int 19
pci4 at ppb3 bus 5
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00
addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82

Re: The Ultimate OpenBSD Media Server

2018-08-12 Thread Robert
On Sun, 12 Aug 2018 13:48:23 +
flipchan  wrote:
> Awesome !! Plex feels like an blob of unknown black magic that you execute on 
> your system, I will check out this new one out, thanks

Well, good luck with that.
Serviio is closed source (Java binaries), and also has a "pro" version
that you need to pay for.
Oh, and just for fun I checked their license:
"The Software is intended for personal use only. Organizations and
business entities must purchase a business licence to operate the
Software in a business setup."

/Robert



Python flask socket with httpd problems

2018-08-12 Thread flipchan
Hello all,

im trying to run a python flask application with httpd
as a reverse proxy and im not getting it to work.

According to the python flask's online documentation, 
i should be able to just create a fast-cgi socket that 
should work with httpd, however i am only getting 500
errors when i do this.
Link: https://uwsgi-docs.readthedocs.io/en/latest/OpenBSDhttpd.html



curl output:
* About to connect() to mywebsite.com port 8086 (#0)
*   Trying myip...
* connected
* Connected to mywebsite.com (myip) port 8086 (#0)
> GET /test HTTP/1.1
> User-Agent: curl/7.26.0
> Host: mywebsite.com:8086
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.0, assume close after body
< HTTP/1.0 500 Internal Server Error
< Date: Tue, 15 May 2018 15:40:40 GMT
< Server: OpenBSD httpd
< Connection: close
< Content-Type: text/html
< Content-Length: 451
< 




500 Internal Server Error



500 Internal Server Error

OpenBSD httpd


* Closing connection #0

# cat /etc/httpd.conf
# $OpenBSD: httpd.conf,v 1.16 2016/09/17 20:05:59 tj Exp $

# A minimal default server
server "default" {
listen on 0.0.0.0 port 8086

fastcgi socket "/var/www/run/pfweb.sock"
}




i also tried to have the python script manually create a 
fast-cgi socket with the python library flup 
("https://pypi.python.org/pypi/flup/1.0.2";)



Have anyone gotten a python flask application to work with httpd 
as a reverse proxy with a fast-cgi socket? cuz im really not 
getting it to work.



Thanks in advanced
-flipchan

-- 
Take Care Sincerely flipchan layerprox dev


Re: The Ultimate OpenBSD Media Server

2018-08-12 Thread flipchan
Awesome !! Plex feels like an blob of unknown black magic that you execute on 
your system, I will check out this new one out, thanks

On August 12, 2018 4:55:15 AM UTC, Jordan Geoghegan  
wrote:
>Hi Folks,
>
>I found a viable Plex alternative that runs perfectly on OpenBSD called
>
>'Serviio'. It does DLNA with on the fly media transcoding / remuxing
>and 
>also has an HTML5 media player. I've found it able to handle
>cataloguing 
>and indexing my 10TB media library great and I've enjoyed the automatic
>
>media metadata retrieval. It is nice to be able to have episode names, 
>subtitles and cover art automatically pulled from IMDB / TVDB. The
>HTML5 
>media player is quite nice for sharing content with the family and 
>watching movies on the go.
>
>I've rewritten the install guide from the official Serviio website to 
>instead run Serviio as a separate user, use a better install location 
>and not grab the full jdk. I mentioned Serviio a few days ago on a 
>ports@ thread and several people messaged me privately asking for my 
>write up on Serviio; I hope others can get some use and enjoyment out
>of 
>this, so I thought I would share it here for others to see as well.
>
>Link to Guide:
>
>www.geoghegan.ca/serviio.html

-- 
Take Care Sincerely flipchan layerprox dev


Re: The Ultimate OpenBSD Media Server

2018-08-12 Thread Jordan Geoghegan



On 08/12/18 01:42, Stuart Henderson wrote:

On 2018-08-12, John Long  wrote:

I don't get why anybody would want transcoding in 2018.

They don't usually *want* transcoding but are forced to do it by poor
codec support on client devices.
Exactly. The only reason I use Serviio is for the on the fly transcoding 
and remuxing. It is nice as it allows me to watch my not-insubstantial 
Divx collection on non divx certified devices. For example, I have a few 
BDP-S5200 bluray players that only support h264 in an m2ts container. 
Rather than remuxing my >4TB mkv library, Serviio will instead remux my 
mkv into m2ts containers on the fly whenever I happen to be watching 
something from my bluray player. Remuxing has no quality loss, it only 
moves the video encoding into a container format that is compatible with 
your device. Serviio will only transcode files as a last resort. 
Similarly, I have a few Xbox 360's which only support avi and WMV video 
containers, and mp3 for audio over dlna. I would rather have reduced 
quality from transcoding, than no quality content at all. The 
transcoding feature is also useful for ensuring compatibility on all 
browsers when using the integrated HTML5 media player. At the end of the 
day, it all comes down to being able to ensure codec compatibility among 
devices with wildly varying codec support.




Re: vmctl / vmd

2018-08-12 Thread Stuart Henderson
On 2018-08-11, Mike Larkin  wrote:
> On Fri, Aug 10, 2018 at 04:14:28PM -0400, sven falempin wrote:
>> Dear readers,
>> 
>> I just installed / syspatch a fresh 6.3 and i was not able to get the
>> network working
>> inside the alpine-virt-3.8.0-x86_64.iso kernel .
>> 
>> I tried -L ( witch create a TAP with 100.64.id network :S ), and -n
>> and -i with manual bridge setup.

You can fix that to use a more appropriate network with "local prefix"
in vm.conf.

>> I see packets going through  and arp replies but no reply inside the VM.
>> (pf disabled and forwarding possible)
>> 
>> is there any recent regression with the setup of alpine linux inside vmd ?
>> 
>
> all my VMs still work with -current.
>
> -L requires the corresponding NAT rule in pf.conf, which obviously means pf
> needs to be enabled.

And bridge requires that you don't use dhclient on the bridged interface
on the host.




Re: The Ultimate OpenBSD Media Server

2018-08-12 Thread Stuart Henderson
On 2018-08-12, John Long  wrote:
> I don't get why anybody would want transcoding in 2018.

They don't usually *want* transcoding but are forced to do it by poor
codec support on client devices.