Re: Firefox and stuttering USB audio

2022-08-07 Thread Mihai Popescu
Courtney, I will try to suggest something.

First, I was having problems in the past with Firefox. I use to let
mpv play in the background ( a stream of internet radio) and the sound
has stuttering and pauses whenever Firefox loaded some pages. I was
told to use sndio for mpv as an option with ao=sndio in the mpv.conf.
I did this and the problem was gone.

Next, you could try something just to check. It is a shoot in the
dark, but I use it for something else.
I have an old computer, and the browsing was very slow. The disk (
mechanical) was spinning like hell whenever a page was loaded, both
Firefox and Chromium. Looking on internet, I found that browsers are
using caching on the disk a lot. I see you are using SSD, but here it
is anyway;

Do a backup:
# cp /etc/fstab /etc/fstab.install

Change the entry for the /tmp partition to look like this:
swap /tmp mfs rw,nodev,nosuid,-s=1g 0 0

Reboot in single user mode, using -s at boot prompt and do this on the shell:
# mount -uw /
#chmod 1777 /tmp
# reboot

Let it boot normally and issue this inside a terminal:
$ XDG_CACHE_HOME=/tmp firefox

Then do your job with sound and check for stuttering. If it is fine
now, use it like this. If not, just reverse the fstab backup and try
something else. Please report here, too :).



Re: Relayd Questions

2022-08-07 Thread Stuart Henderson
On 2022-08-06, Todd Carpenter  wrote:
> Hi all,
>
> I've been trying to get relayd up and running on my configuration and had a
> couple of questions I could not find answers for.
>
> As I understand it, relayd is capable of making a "protocol" where you
> could essentially take connection details and call it whatever you like,
> then create rules in pf via that protocol.
>
> for example, in mwl's relayd book he creates a "dns fix protocol"
> relay dns {
>  listen on 203.0.113.213 port 53
>  forward to check tcp
>  protocol dnsfix
> }
>
> questions:
> how can I pass this to pf.conf and apply stickines to it to ensure that if
> the protocol dnsfix was routed to server 52 on the back end.. that all
> future requests are sent to server 52 and not server 17 (ie is this a
> relayd.conf thing.. or a pf.conf thing)?

Relays are userland TCP proxies done inside relayd. Configuring them
is done in relayd.conf. See

man relayd.conf | less "+/set the scheduling algorithm"

> is it possible to have multiple ports and protocols wrapped into a new
> protocol?
> for example I need port 443 tcp, 10443 tcp, 8000 udp and 8001 tcp  .. to be
> treated as a single connection.  Is a protocol even the right tool for the
> job? If so, how do you add multiple ports? or does each rule need to be
> seperate?  (an example would be awesome)

As a single protocol definition? You can't, you need separate ones.

> Next question, in regards to the previous question. How would you apply a
> stickiness state to ensure that all 4 ports from the same client are sent
> to the same server?

"mode source-hash" is probably the only option.

> last question..
> how do you decide what configuration should be placed in pf.conf vs
> relayd.conf?  and if your using an anchor like relayd .. in terms of pf, is
> there 1 config or are they seperate?
>
> IE: if i have a  in relayd.conf that defines {server1,2,3,4}  do I
> need the same table in my pf.conf file? or should I make the exact same
> table with a unique name? or are the relayd.conf tables used as both an
> anchor and expanded into the default pf.conf?

For the main part relayd loads what it needs into PF under the anchor.

If you're using _redirections_ with sticky-address and want that to persist
across multiple connections then see "src.track" in pf.conf(5).


-- 
Please keep replies on the mailing list.



Re: Upgrading from 7.0 to 7.1

2022-08-07 Thread Tobias Fiebig
Heho,
You are unable to connect to the mirror (https fails, and http as well). 

Can you get into a shell (on the installer/bsd.rd) and check that:
- DNS resolution works and /etc/resolve.conf has the correct contents
- You can reach the mirror cdn.openbsd.org (ping, ftp get)

Do you have any network config setup on your device which is not in a 
/etc/hostname.if file/manual gateways or sth.?

With best regards,
Tobias

-Original Message-
From: owner-m...@openbsd.org  On Behalf Of 
latin...@vcn.bc.ca
Sent: Sunday, 7 August 2022 00:43
To: misc@openbsd.org
Subject: Upgrading from 7.0 to 7.1

Hello misc
Does somebody know how to solve this please:

Let's upgrade the sets!
Location of sets? (cd0 disk http nfs or 'done') [http] HTTP proxy URL? (e.g. 
'http://proxy:8080', or 'none') [none] HTTP Server? (hostname, list#, 'done' or 
'?') [cdn.openbsd.org] Server directory? [pub/OpenBSD/7.1/amd64] Unable to 
connect using HTTPS; using HTTP instead.
Unable to get a verified list of distribution sets.
Looked at  and found no OpenBSD/amd64 7.1 sets.  The set names looked for
were:
bsd   comp71.tgzxbase71.tgz   xserv71.tgz
bsd.rdman71.tgz xshare71.tgz  site71.tgz
base71.tgzgame71.tgzxfont71.tgz   site71-agrox.tgz

Location of sets? (cd0 disk http nfs or 'done') [http]

Note: After [http] there is one space. I did a new installation, and it failed 
stoping the download.

Thanks