On 2022-04-13, <[email protected]> <[email protected]> wrote:
> I have had 2 issues with `qbittorrent-nox`, both are OpenBSD-specific
> and IMHO it would be appropriate if README described them.
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/net/qbittorrent/qbittorrent-nox/pkg/README?rev=1.3&content-type=text/x-cvsweb-markup
>
> I emailed Elias M. Mariani (package maintainer) and
> Rafael Sadowski (who edited the README),
> 2 times each one, with no reply and the readme has not changed.
> I emailed Christian Weisgerber (who edited the README),
> who replied he is not in charge and agreed I'd better ask at misc list.
>
> So, how can my plea on `qbittorrent-nox` README
> be delivered to the right person?
>
>
> The issues were:
>
> 1. `qbittorrent-nox` connection refused
> Discussed here:
> https://www.unitedbsd.com/d/634-qbittorrent-nox-connection-refused
>
> apparent cause: `IPV6_V6ONLY`
> http://man.openbsd.org/amd64/ip6#IPV6_V6ONLY
>
> READMEs for `jdk` do mention the issue:
>
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/jdk/1.8/pkg/README?rev=1.3&content-type=text/x-cvsweb-markup
>
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/jdk/11/pkg/README?rev=1.3&content-type=text/x-cvsweb-markup
>
> http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/jdk/17/pkg/README?rev=1.2&content-type=text/x-cvsweb-markup
>
> ```
> ipv4 and v6 networking
> ======================
> ipv4 to ipv6 address mapping is disabled on OpenBSD. This means the
> jdk can only use ipv4 addresses or ipv6 addresses but not both at
> the same time. By default ipv4 addresses are enabled. To use ipv6
> addresses set the following properties when you start java:
>
> -Djava.net.preferIPv4Stack=false
> -Djava.net.preferIPv6Stack=true
> -Djava.net.preferIPv6Addresses=true
> ```
>
> I personally have set `WebUI\Address=localhost`
> in `~/.config/qBittorrent/qBittorrent.conf`
> which works for my setup,
> yet I don't know what good defaults the README should suggest.
127.0.0.1 is probably the best thing to suggest for listening to localhost.
For listening to connections from any v4 address use 0.0.0.0. Though, the
ideal fix for qbittorrent-nox would be if it created separate socket
bindings, one for IPv4, one for IPv6.
Java is a different situation as the *entire process* is restricted to
either IPv4 or IPv6 connections depending on the setting of these variables.
It *may* be possible to work around this by setting it as v6-only, pointing
at a DNS resolver doing DNS64, and nat-pt NAT translations ("af-to" in PF).
But it is a mess.
--
Please keep replies on the mailing list.