LPRng-HOWTO: 15 Oct 2001 (For LPRng-3.7.9)
Prev | Chapter 17. Permissions and Authentication | Next

# 17.5. Complex Permission Checking

One of the more useful types of permission checking is to restrict access to your printers from users outside your networks. The IP pattern can specify a list of IP addresses and netmasks to apply to them.

For example `IP=10.3.4.0/24` would match all hosts with the IP addresses `IP=10.3.4.0` to `IP=10.3.4.255`.

Similarly, the HOST pattern can specify a set of hostnames or patterns to match against based on the GLOB notation.

For example `REMOTEHOST=*.private` would match all hosts with a DNS entry which ended with `private`.

The NOT keyword reverses the match sense. For example `REJECT NOT REMOTEHOST=*.private,*.murphy.com` would reject all requests from hosts which did not have a DNS entry ending in `private` or `murphy.com`.

Prev | Home | Next
Example Permission File | Up | More Examples