From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id F0395255AB4C for <9fans@9fans.net>; Mon, 4 May 2020 16:58:29 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id FA10BC4EDFE; Mon, 4 May 2020 16:58:29 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1588625909; b=qo3jJZcB+gzqZnXlPmZmdlCaN3kpE1IzqB8oE2U6qwhQJSOfoG MBCxLQCO1R38vw0mgtq/kCCBGWQot9Ph0N9g9C83buJdsbClfEQz6CR/QRFw9CCA KZqk696P/OYB+yUdJp5cyM7e9ergW0R83TvUIQiOyDDqj31l6o5RpLtsjXlDbEUl gJK/h6IVvKH5VqtNjM0/0ZWHuOIzzpaK96mVL04TTOMpf1guUb7lusY2l9NLY9FO FZ8B8JVjA0elPs479eKopFKyUynB4g18/927oY7y5gczRM861GF6tEgs4DiEswOU GCCHXSusrxYpm3PrPiPT4D4C6c0KXmgzTT1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type; s=arcseal; t=1588625909; bh=4pkGtj1X4E+yfm70pQ55S5GOuSjTmPtNHQsHz7QZKYI=; b=fnZ+AnUFDAPt Ne7orfDLaHBQC/i3S/kQTuMvvsFqPv/BjvMaQ0WByHre9PUwp9WVbFyJtM1qoOL3 tbBmD1qij1BKIwkAAomozgpCJF5Y8zhlpw0ao4j1WwipCirTIJKz4xjz0gNN52X9 ix/BxmCzGBGXL0+Q0YRZ5PFW87/3JLvU7gzHzRlmJkccLufRVKXQsP1hp2GqGK1Z O5/zIbGlKdyy/SU7ir1BVuA8/KP1l2DZy0j1RVEaoZBIcJxRr4k/eDEuVuHIMIj5 0Y1ta5F9psCJFqGOl8s4vbCn/ORh3hQCAwOPOvxk6PxGJ4llbsQS/gWHOtkL8Iob 05h1vjALMA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=hFYgwTOS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.196 (mail-lj1-f196.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f196.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=cIqXQeEH; x-ptr=pass smtp.helo=mail-lj1-f196.google.com policy.ptr=mail-lj1-f196.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (Domain is not BIMI enabled); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=hFYgwTOS header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.196 (mail-lj1-f196.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f196.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=cIqXQeEH; x-ptr=pass smtp.helo=mail-lj1-f196.google.com policy.ptr=mail-lj1-f196.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeggddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeggfhgjhfffkffuvfgtsegrtderredttdejnecuhfhr ohhmpefqlhgvqdfjjhgrlhhmrghrucfmrhhishhtvghnshgvnhcuoeholhgvrdhhjhgrlh hmrghrrdhkrhhishhtvghnshgvnhesghhmrghilhdrtghomheqnecuggftrfgrthhtvghr nhepjeffueeuhfeuheffvdfgteffueeileekffektddukedtudekiefffeeijefhjeegne cukfhppedvtdelrdekhedrvddtkedrudelieenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepihhnvghtpedvtdelrdekhedrvddtkedrudeliedphhgvlhhopehmrghilh dqlhhjuddqfhduleeirdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeoohhlvgdr hhhjrghlmhgrrhdrkhhrihhsthgvnhhsvghnsehgmhgrihhlrdgtohhmqecuuffkkgfgpe ehgeejge X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'ole.hjalmar.kristensen@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ole.hjalmar.kristensen@gmail.com"; helo=mail-lj1-f196.google.com; client-ip=209.85.208.196 Received: from mail-lj1-f196.google.com (mail-lj1-f196.google.com [209.85.208.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Mon, 4 May 2020 16:58:29 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: by mail-lj1-f196.google.com with SMTP id w20so8486ljj.0 for <9fans@9fans.net>; Mon, 04 May 2020 13:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4pkGtj1X4E+yfm70pQ55S5GOuSjTmPtNHQsHz7QZKYI=; b=hFYgwTOSGtX9ziC3McGqcJtJ+ug4MApoIEK5fY5uQoT7fczpbPAAzmDSIEH4XBvq/u olQaK3wXFsmWK05f8sS7Ch5V87RciGQxKKbzIWxbEO9k8PBIwRE/vpmFLZ2Mgx1wdu1s Syk5kIswyQd8DasUXZ7HH6g7wN9+PkPc4KCL20UmFCuaUkp5vgToLljFqowB7J8/+Skx ILyfSSXCLJd46VSMTl4JdOkduSZyNRZsN3Jm9XtjhcNtZhSXAEHJ2FGrx/NYC6BXwnpt IYlNu8I2Rsjt5obQJZ2dkJiL7gEqZRtR1hMUDT08jw3vVX3m9z1EuBuNS45R6RzV+8hK rdGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4pkGtj1X4E+yfm70pQ55S5GOuSjTmPtNHQsHz7QZKYI=; b=cIqXQeEH4MBSwR5xS2GbE1YF1o2ma9WC6fNX75icPrPBPJYMgbuoVGP/2o0PIAh0r6 bmS9/3XRJSg5kF1eh0pZDisNkA4cx/mSluBVCCk/SmPyg94M20lQvPP6tps1sHeenbjj +Sw7Vrne/0bay3wk1U8cX5D6/NyWwSgsAD+N5xSxqGmcAkmkPwfup9I52AbGs+gtScAW fGRD63Dj3yQn3eR0mhktBhxAEuCmrh8AzlMsRIFUZn0LZt1mg8rKDZ6ob0U6zDy1gwyF Oex3vVsrF5HHPm+UxH60H7donQh9/rP0CeNSYAWXjsyJ4dCSb78iX7Dy5AvG8effjTSL BEoA== X-Gm-Message-State: AGi0PublCbGyOfszO+PwKaDziKe7jdPvh4ggeS1vjApH0Ur/v5DOQ8yE AbLU0gfAXH3pA+IJAiDJFQ8u9EcvnEIJ+hIlr6I= X-Google-Smtp-Source: APiQypIyFzZ+VHo3o4/7Wq0Akw8c2ctVHB3P7FXU5PsEruMwXJm2GGkmCLuPJmaMUVOzGEzt3iZxL1G6yVQGh2LtbjM= X-Received: by 2002:a2e:9207:: with SMTP id k7mr11168228ljg.124.1588625908160; Mon, 04 May 2020 13:58:28 -0700 (PDT) MIME-Version: 1.0 References: <4484D19719C88F2CB22F9EDC74A9DFC4@eigenstate.org> In-Reply-To: <4484D19719C88F2CB22F9EDC74A9DFC4@eigenstate.org> From: Ole-Hjalmar Kristensen Date: Mon, 4 May 2020 22:58:17 +0200 Message-ID: Subject: Re: [9fans] Venti on OpenBSD - some information and a question To: ori@eigenstate.org Cc: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000efe1ce05a4d8ca8e" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 04aea1aa-8e4a-11ea-89cc-ec952cd16846 --000000000000efe1ce05a4d8ca8e Content-Type: text/plain; charset="UTF-8" Thanks, I found the problem by inspection of src/lib9/_p9dialparse.c. IPv6 is indeed the default when using an address of tcp!*!17034 /* translate host */ if(strcmp(host, "*") == 0){ ss->ss_family = AF_INET6; ((struct sockaddr_in6*)ss)->sin6_addr = in6addr_any; }else if((he = gethostbyname(host)) != nil && he->h_addr_list[0] != nil){ So, setting the address string to tcp!dell-openbsd!17034 fixed the problem. My Linux machines actually have an IPv6 address, the OpenBSD box does not, so that explains the difference. Ole-Hj. On Mon, May 4, 2020 at 10:09 PM wrote: > > I can connect to the venti from localhost, but not from any other > machine. > > However, if I run nc -l on ports 17034 and 80, I can connect from any > > machine. It is definitely not the packet filter, since the problem > persists > > even if I disable the packet filter. Any suggestions about what might be > > blocking the connection? > > My first guess is that it's listening on the wrong interface. > Run it under 'ktrace', then run 'kdump' and look for the bind() > calls and friends. > > --000000000000efe1ce05a4d8ca8e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, I found the problem by inspection of=C2=A0src/lib9= /_p9dialparse.c.
IPv6 is indeed the default when using an address of tc= p!*!17034
=C2=A0/* translate host */
if(strcmp(host, "*&= quot;) =3D=3D 0){
ss->ss_family =3D AF_INET6;
((struct sockadd= r_in6*)ss)->sin6_addr =3D in6addr_any;
}else if((he =3D gethostbynam= e(host)) !=3D nil && he->h_addr_list[0] !=3D nil){

So, setting the address string to tcp!dell-openbsd!17034 fi= xed the problem.
My Linux machines actually have an IPv6 address,= the OpenBSD box does not, so that explains the difference.

<= /div>
Ole-Hj.

On Mon, May 4, 2020 at 10:09 PM <ori@eigenstate.org> wrote:
> I can connect to the venti fro= m localhost, but not from any other machine.
> However, if I run nc -l on ports 17034 and 80, I can connect from any<= br> > machine. It is definitely not the packet filter, since the problem per= sists
> even if I disable the packet filter. Any suggestions about what might = be
> blocking the connection?

My first guess is that it's listening on the wrong interface.
Run it under 'ktrace', then run 'kdump' and look for the bi= nd()
calls and friends.

--000000000000efe1ce05a4d8ca8e--