---
name: "securenet"
section: "5"
platform: "openbsd"
package: "man"
version: "8.0-current-20261101"
release: "OpenBSD 8.0-current (2026-11-01)"
platforms: ["openbsd"]
url: "https://new.carta.tech/securenet"
---

# securenet(5)

ypserv(8) configuration file for secure networks

## NAME

**securenet** – [ypserv(8)](/ypserv/8.md) configuration file for secure networks

## DESCRIPTION

The **securenet** file controls which hosts can connect to the **YP** server.

The format is rather simple. Each row consists of two items. The first item is the network mask. The second item is the network.

## FILES

- */var/yp/securenet*

  a [ypserv(8)](/ypserv/8.md) configuration file

## EXAMPLES

A configuration file might look like the following:

```
#
# Only my local net is secure.
#
255.255.255.0 139.58.253.0
```

## SEE ALSO

[ypserv.acl(5)](/ypserv.acl/5.md), [yp(8)](/yp/8.md), [ypserv(8)](/ypserv/8.md)

## HISTORY

The **securenet** file was added to NIS by Sun Microsystems, Inc. as a bugfix for weak security.
