Re: Guidance for booting NanoPi R6S?

2024-04-18 Thread Damien Miller
On Tue, 16 Apr 2024, Stephan Somogyi wrote:

> Given that it appears that R6S
> 
> https://www.mail-archive.com/ports@openbsd.org/msg123717.html
> 
> and R6C support
> 
> https://www.mail-archive.com/ports@openbsd.org/msg124138.html
> 
> are in the ports version of uboot, I was interested in trying to make it
> work. Unfortunately, I'm not having any luck via the trial and error method,
> so was hoping someone could provide pointers. The R6S commit suggests
> erasing eMMC, but I haven't yet worked out how to do that.

I don't have a R6P but I am interested in how to get ARM devices that
need u-boot going. It looks like a few devices have explicit support
in sysutils/uboot but there's a bit of documentation gap on how to
actually use this to get a system booting.

This probably also applies to RISC-V boards, though they are less common.

-d



Re: OpenBSD Installation Doesn't Detect NVMe SSD, but Detects My USB Drives

2024-04-18 Thread Stuart Longland

(misc@*openbsd*.org, not misc@*opensmtpd*.org… duh!)

On 16/4/24 04:45, Wolfgang Pfeiffer wrote:

On Mon, Apr 15, 2024 at 08:38:51PM +0200, Wolfgang Pfeiffer wrote:

On Mon, Apr 15, 2024 at 08:29:21AM +0200, aliyu...@tutanota.com wrote:

Hello,

I'm currently trying to install OpenBSD on my laptop, and I'm coming
across a problem. The installation only detects my installation drive
and my other USB flash drive that I use for data storage, but not my
NVMe SSD I want to do an installation on.



SATA settings in your BIOS might be worth a try: if sata mode is
set to RAID it might help to switch to ACPI [ .. ]


Wrong: Not ACPI, but AHCI.


Not sure there's any such animal when the device is NVMe.  NVMe directly 
connects to the PCI Express bus, not to a SATA controller.

--
Stuart Longland (aka Redhatter, VK4MSL)

I haven't lost my mind...
  ...it's backed up on a tape somewhere.



Re: syntax error in httpd.conf file

2024-04-18 Thread Omar Polo
Hello,

On 2024/04/18 22:29:55 +0200, "Luca Leone"  wrote:
> Hi guys!
> 
> [...]
> 
> If is change `pass to "http://localhost:3000/"` with a simple `root 
> "/var/www/htdocs"` directive, 
> the syntax check is OK.
> 
> The reason for the `pass to "http://localhost:3000/"` directive is that I am 
> running a node app on 
> /home/luca/node-app, and I want to forward requests to that server.
> 
> Any idea on what I am missing?

httpd doesn't support forwarding requests to another HTTP server sadly.
It only supports FastCGI, or serving static files.  `pass to' is not
part of the httpd' configuration language.

take a look at relayd(8) for proxying requests.


Cheers,

Omar Polo



syntax error in httpd.conf file

2024-04-18 Thread Luca Leone
Hi guys!

this is the content of my httpd.conf file:

server "birbi.biz" {
listen on * port 80
location "/.well-known/acme-challenge/*" {
root "/acme"
request strip 2
}
location * {
block return 301 "https://$HTTP_HOST$REQUEST_URI;
}
}

server "birbi.biz" {
listen on * tls port 443
tls {
certificate "/etc/ssl/birbi.biz:443.crt"
key "/etc/ssl/private/birbi.biz:443.key"
}
location * {
pass to "http://localhost:3000/;
}
}

when I check the syntax with `$ doas httpd -n` I get the following error:

`/etc/httpd.conf:20: syntax error`

where line 20 is: `pass to "http://localhost:3000/"`.

If is change `pass to "http://localhost:3000/"` with a simple `root 
"/var/www/htdocs"` directive, 
the syntax check is OK.

The reason for the `pass to "http://localhost:3000/"` directive is that I am 
running a node app on 
/home/luca/node-app, and I want to forward requests to that server.

Any idea on what I am missing?

Thanks!


multi-package ports make

2024-04-18 Thread Lyndon Nerenberg (VE7TFX/VE6BBM)
Can somebody tell me what I'm doing wrong here.  When I run
'make' against this makefile it blows up with:

Fatal: WRKDIR ends with a slash: /usr/ports/pobj/ (in hush/hush-proxyctl)
Fatal: WRKDIST ends with a slash: /usr/ports/pobj/ (in hush/hush-proxyctl)
Fatal: WRKSRC ends with a slash: /usr/ports/pobj/ (in hush/hush-proxyctl)
Fatal: WRKCONF ends with a slash: /usr/ports/pobj/ (in hush/hush-proxyctl)
Fatal: WRKBUILD ends with a slash: /usr/ports/pobj/ (in hush/hush-proxyctl)
*** Error 1 in /usr/ports/hush/hush-proxyctl 
(/usr/ports/infrastructure/mk/bsd.port.mk:3885 '.BEGIN': @exit 1)

This is my first foray into MULTI_PACKAGE.  This make template works
for other non-MULTI_PACKAGE builds.

--lyndon
COMMENT-main=   DMZ proxy management and control
COMMENT-server= DMZ proxy management daemon
MAINTAINER= XXX

V=  1.0
PKGNAME-main=   hush-proxyctl-${V}
PKGNAME-server= hush-proxyctld-${V}
REVISION-main=  0
REVISION-server=0

CATEGORIES= hush

MULTI_PACKAGES= -main -server

PERMIT_PACKAGE= Yes
NO_TEST=Yes

BUILD_DEPENDS=  lang/go

pre-configure:
mkdir -p ${WRKSRC}; cd ${.CURDIR}/files && cp -R . ${WRKSRC}

do-build:
cd ${WRKSRC}/proxyctl && go build proxyctl
cd ${WRKSRC}/proxyctld && go build proxyctld

.include 


smtpd relay error - sender address rejected

2024-04-18 Thread Luis Mendes
Hi,


I'm trying to configure smtpd to send some emails to my account at
Yandex, but the mail server is returning an error:
stat="550 5.7.0 Sender address rejected: not owned by authorized user

This is on OpenBSD 7.5.


The /etc/mail/smtpd.conf configuration is:
# grep -v '^#' /etc/mail/smtpd.conf  | grep -v '^$'
table aliases file:/etc/mail/aliases
table secrets file:/etc/mail/secrets
listen on socket
listen on lo0
action "local_mail" mbox alias 
action "outbound" relay host smtps://la...@smtp.yandex.com:465 auth \
 mail-from luisvmen...@yandex.com
match from local for local action "local_mail"
match from local for any action "outbound"

# cat /etc/mail/secrets
label luisvmen...@yandex.com:mypassword

The `smtpd -d` output for an email sent as:

$ mail -s "exp" luisvmen...@yandex.com
first line
.

Is:
# smtpd -d
info: OpenSMTPD 7.5.0 starting
smtp connected address=local host=privacy.mydomain.net
smtp message msgid= size=415 nrcpt=1 proto=ESMTP
smtp envelope evpid= from= 
to=
smtp disconnected reason=quit
mta connecting address=smtps://77.88.21.158:465 
host=mail-smtp.stable.qloud-b.yandex.net
mta connected
mta tls ciphers=TLSv1.3:TLS_AES_256_GCM_SHA384:256
mta cert-check result="valid" 
fingerprint="SHA256:b47c39f8286a3301240a6474d9932a14eea3493d10e9f404d47dbcd78be5bff5"
mta delivery evpid= from= 
to= rcpt=<-> source="66.55.44.33" relay="77.88.21.158 
(mail-smtp.stable.qloud-b.yandex.net)" delay=3s result="PermFail" stat="550 
5.7.0 Sender address rejected: not owned by authorized user 
11--"
smtp connected address=local host=privacy.mydomain.net
smtp message msgid=0123456e size=1955 nrcpt=1 proto=ESMTP
smtp envelope evpid=0123456e2c8c3f0c from=<> to=
smtp disconnected reason=quit
mda delivery evpid=0123456e2c8c3f0c from=<> to= 
rcpt= user=myuser delay=0s result=Ok stat=Delivered
mta disconnected reason=quit messages=0


The email that is delivered to my local user shows some more
information:

Received: from localhost (privacy.mydomain.net [local])
by privacy.mydomain.net (OpenSMTPD) with ESMTPA id
222
for ;
From: Luis Mendes 

So, it seems that the from is myu...@privacy.mydomain.net and not
luisvmen...@yandex.com although I thought that adding the option
mail-from luisvmen...@yandex.com
to the action "outbound" in smtpd.conf would solve the issue.

What should I do to solve this problem?

Thanks,


Luís



subscribe

2024-04-18 Thread Calvin Dwayne Clark (SplinTer)

subscribe


--
Thanks,

SplinTer
splin...@nastycode.com
IRCNow Network
https://www.nastycode.com/For all your UNIX/IRC Needs
https://www.partnaz-n-crime.com/For all your UNIX/IRC Needs
https://waterboy.nastycode.com/FREE Waterboy Gospel Lyrics