allow_nets equivalent for all users?

Aki Tuomi
Mon, 14 Mar 2022 16:33:16 -0000

> On 14/03/2022 18:31 Bryan K. Walton <bwalton.21225 at leepfrog.com>
wrote:
>
>
> Hi,
>
> It is my understanding that allow_nets is a field that gets used in a
> password database, and therefore is a per-user setting.
>
> Is there an equivalent method for defining allowed network(s) for ALL
> users? In other words, a single setting that applies to every user?
>
> Thanks,
> Bryan

If you really want, you can add default_fields = allow_nets=value or
override_fields = allow_nets=value to the passdb.

But question arises, why not just firewall the machine and allow connections
from trusted networks only?

Aki