## Exports and Netgroups Authentication for NFS This feature adds Linux-style exports & netgroups authentication to Gluster's NFS server. More specifically, this feature allows users to restrict access specific IPs (exports authentication) or a netgroup (netgroups authentication), or a combination of both for both Gluster volumes and subdirectories within Gluster volumes. Netgroups are used in Unix environments to control access for NFS exports, remote logins and remote shells. Each netgroup has a unique name and defines a set of hosts, users, groups and other netgroups. This information is stored in files and gluster NFS server manage permission for clients based on those file ## Implications and Usage Currently, gluster can restrict access to volumes through simple IP list. But this feature makes that capability more scalable by allowing large lists of IPs to be managed through a netgroup. Moreover it provides more granular permission handling on volumes like wildcard support, read-only permission to certain client etc. The file `/var/lib/glusterd/nfs/export` contains the details of machines which can be used as clients for that server.An typical export entry use the following format : / (options),.. Here export name can be gluster volume or subdirectory path inside that volume. Next it contains list of host/netgroup , followed by the options applicable to that entry.A string beginning with an '@' is treated as a netgroup and a string beginning without an @ is a host. The options include mount related parameters , right now options such as "sec", "ro/rw", "anonuid" valid one. If * is mention as host/netgroup field , then any client can mount that export path. The file `/var/lib/glusterd/nfs/netgroup` should mention the expansion of each netgroup which mentioned in the export file. An typical netgroup entry will look like : ng1000\nng1000 ng999\nng999 ng1\nng1 ng2\nng2 (ip1,ip2,..) The gluster NFS server will check the contents of these file after specific time intervals ## Volume Options 1. Enabling export/netgroup feature gluster volume set nfs.exports-auth-enable on 2. Changing the refresh interval for gluster NFS server gluster volume set nfs.auth-refresh-interval-sec