Skip to contentSkip to conversation

manpage: add info about IPv6 configuration to exports(5)

PATCH In review Jeff Layton 2 participants 3 messages Jun 20, 2011 – Jun 26, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 manpage: add info about IPv6 configuration to exports(5)

The parts of the exports(5) manpage that discuss IP addressing neglect IPv6 configuration. Update to include info on how to export to IPv6 subnets and addresses, and add a line demonstrating that to the EXAMPLE section.

---
 utils/exportfs/exports.man |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
utils/exportfs/exports.man +5 -3
index 241b3af..cf5f365 100644
@@ -47,7 +47,7 @@ NFS clients may be specified in a number of ways:
 .IP "single host
 This is the most common format. You may specify a host either by an
 abbreviated name recognized be the resolver, the fully qualified domain
-name, or an IP address.
+name, an IPv4 address, or an IPv6 address enclosed in square brackets.
 .IP "IP networks
 You can also export directories to all hosts on an IP (sub-) network
 simultaneously. This is done by specifying an IP address and netmask pair
@@ -57,7 +57,7 @@ where the netmask can be specified in dotted-decimal format, or as a
 contiguous mask length.
 For example, either `/255.255.252.0' or `/22' appended
 to the network base IPv4 address results in identical subnetworks with 10 bits of
-host. Wildcard characters generally do not work on IP addresses, though they
+host. IPv6 addresses must use a contiguous mask length and be enclosed in square brackets. Wildcard characters generally do not work on IP addresses, though they
 may work by accident when reverse DNS lookups fail.
 .IP "wildcards
 Machine names may contain the wildcard characters \fI*\fR and \fI?\fR.
@@ -486,6 +486,7 @@ The format for extra export tables is the same as
 /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
 /pub            *(ro,insecure,all_squash)
 /srv/www        \-sync,rw server @trusted @external(ro)
+/foo            [2001:321:9:e54::/64](rw) 192.168.1.0/24(rw)
 '''/pub/private    (noaccess)
 .fi
 .PP
@@ -501,7 +502,8 @@ option in this entry also allows clients with NFS implementations that
 don't use a reserved port for NFS.
 The sixth line exports a directory read-write to the machine 'server'
 as well as the `@trusted' netgroup, and read-only to netgroup `@external',
-all three mounts with the `sync' option enabled.
+all three mounts with the `sync' option enabled. The seventh line exports
+a directory to both an IPv6 and an IPv4 subnet.
 ''' The last line denies all NFS clients
 '''access to the private directory.
 '''.SH CAVEATS
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 41 lines · On Mon, 20 Jun 2011 15:20:04 -0400 Jeff Layton <[email protected]> wrote:

The parts of the exports(5) manpage that discuss IP addressing neglect IPv6 configuration. Update to include info on how to export to IPv6 subnets and addresses, and add a line demonstrating that to the EXAMPLE section.

---
 utils/exportfs/exports.man |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
utils/exportfs/exports.man +3 -2
index 241b3af..cf5f365 100644
@@ -47,7 +47,7 @@ NFS clients may be specified in a number of ways:
 .IP "single host
 This is the most common format. You may specify a host either by an
 abbreviated name recognized be the resolver, the fully qualified domain
-name, or an IP address.
+name, an IPv4 address, or an IPv6 address enclosed in square brackets.
 .IP "IP networks
 You can also export directories to all hosts on an IP (sub-) network
 simultaneously. This is done by specifying an IP address and netmask pair
@@ -57,7 +57,7 @@ where the netmask can be specified in dotted-decimal format, or as a
 contiguous mask length.
 For example, either `/255.255.252.0' or `/22' appended
 to the network base IPv4 address results in identical subnetworks with 10 bits of
-host. Wildcard characters generally do not work on IP addresses, though they
+host. IPv6 addresses must use a contiguous mask length and be enclosed in square brackets. Wildcard characters generally do not work on IP addresses, though they
 may work by accident when reverse DNS lookups fail.
 .IP "wildcards
 Machine names may contain the wildcard characters \fI*\fR and \fI?\fR.
@@ -486,6 +486,7 @@ The format for extra export tables is the same as
 /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
 /pub            *(ro,insecure,all_squash)
 /srv/www        \-sync,rw server @trusted @external(ro)
+/foo            [2001:321:9:e54::/64](rw) 192.168.1.0/24(rw)
 '''/pub/private    (noaccess)
 .fi
 .PP

utils/exportfs/exports.man option in this entry also allows clients with NFS implementations that · line 509

Quoted 9 lines
utils/exportfs/exports.man +2 -1
@@ -501,7 +502,8 @@ option in this entry also allows clients with NFS implementations that
 don't use a reserved port for NFS.
 The sixth line exports a directory read-write to the machine 'server'
 as well as the `@trusted' netgroup, and read-only to netgroup `@external',
-all three mounts with the `sync' option enabled.
+all three mounts with the `sync' option enabled. The seventh line exports
+a directory to both an IPv6 and an IPv4 subnet.
 ''' The last line denies all NFS clients
 '''access to the private directory.
 '''.SH CAVEATS

Self NAK on this, as brackets don't seem to be required after all. I'll respin and resend once I get that straightened out.

Signature · 1 line
Jeff Layton <[email protected]>
#2 lore raw
Quoted 5 lines · Jeff Layton
utils/exportfs/exports.man +1 -0
+/foo            [2001:321:9:e54::/64](rw) 192.168.1.0/24(rw)
 '''/pub/private    (noaccess)
 .fi
 .PP

utils/exportfs/exports.man option in this entry also allows clients with NFS implementations that · line 509

Quoted 9 lines
utils/exportfs/exports.man +2 -1
@@ -501,7 +502,8 @@ option in this entry also allows clients with NFS implementations that
 don't use a reserved port for NFS.
 The sixth line exports a directory read-write to the machine 'server'
 as well as the `@trusted' netgroup, and read-only to netgroup `@external',
-all three mounts with the `sync' option enabled.
+all three mounts with the `sync' option enabled. The seventh line exports
+a directory to both an IPv6 and an IPv4 subnet.
 ''' The last line denies all NFS clients
 '''access to the private directory.
 '''.SH CAVEATS

Self NAK on this, as brackets don't seem to be required after all. I'll respin and resend once I get that straightened out.

Are the brackets allowed, and if so, must the mask be inside the brackets or can it be outside? And should this be documented?

This came up on another server implementation recently and I couldn't find any spec that describes the brackets. It would be nice to achieve some kind of standardization.