Restricting NFS clients to particular IP addresses blocks _all_ addresses

Clash Royale CLAN TAG#URR8PPP
I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system.
I have roughly the following value for the share property of a tank/mail ZFS filesystem:
name=mail,path=/tank/mail,prot=nfs,none=*,rw=@10.0.23.43,sec=sys
I cannot mount the share on the client (running Solaris 11.3) at 10.0.23.43. I attempt like so:
mount -F nfs keisha:/tank/mail /tmp/mnt
and get the following error:
nfs mount: mount: /tmp/mnt: Permission denied
If I remove none=* then the client mounts fine. However, it is my understanding that doing so will allow access to clients at any address, which I want to prevent (and yes, I'm aware that it may be possible to spoof the address, but prefer to add whatever hoops I can.)
I have tried reversing the order of none and rw, and this changes nothing. I've tried rw=@10.0.23.43/32 and that doesn't work either.
I've tried opening it up to the whole subnet with rw=@10.0.0.0/16 and even that doesn't work. I've also double-checked that I have the client's address right. The client can't be using IPv6 to access the server, as the server's DNS entry is only IPv4 and I'm accessing it by name.
Why does restricting the client addresses prevent access even from a client at an explicitly allowed address? How do I fix this?
solaris nfs
add a comment |
I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system.
I have roughly the following value for the share property of a tank/mail ZFS filesystem:
name=mail,path=/tank/mail,prot=nfs,none=*,rw=@10.0.23.43,sec=sys
I cannot mount the share on the client (running Solaris 11.3) at 10.0.23.43. I attempt like so:
mount -F nfs keisha:/tank/mail /tmp/mnt
and get the following error:
nfs mount: mount: /tmp/mnt: Permission denied
If I remove none=* then the client mounts fine. However, it is my understanding that doing so will allow access to clients at any address, which I want to prevent (and yes, I'm aware that it may be possible to spoof the address, but prefer to add whatever hoops I can.)
I have tried reversing the order of none and rw, and this changes nothing. I've tried rw=@10.0.23.43/32 and that doesn't work either.
I've tried opening it up to the whole subnet with rw=@10.0.0.0/16 and even that doesn't work. I've also double-checked that I have the client's address right. The client can't be using IPv6 to access the server, as the server's DNS entry is only IPv4 and I'm accessing it by name.
Why does restricting the client addresses prevent access even from a client at an explicitly allowed address? How do I fix this?
solaris nfs
1
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19
add a comment |
I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system.
I have roughly the following value for the share property of a tank/mail ZFS filesystem:
name=mail,path=/tank/mail,prot=nfs,none=*,rw=@10.0.23.43,sec=sys
I cannot mount the share on the client (running Solaris 11.3) at 10.0.23.43. I attempt like so:
mount -F nfs keisha:/tank/mail /tmp/mnt
and get the following error:
nfs mount: mount: /tmp/mnt: Permission denied
If I remove none=* then the client mounts fine. However, it is my understanding that doing so will allow access to clients at any address, which I want to prevent (and yes, I'm aware that it may be possible to spoof the address, but prefer to add whatever hoops I can.)
I have tried reversing the order of none and rw, and this changes nothing. I've tried rw=@10.0.23.43/32 and that doesn't work either.
I've tried opening it up to the whole subnet with rw=@10.0.0.0/16 and even that doesn't work. I've also double-checked that I have the client's address right. The client can't be using IPv6 to access the server, as the server's DNS entry is only IPv4 and I'm accessing it by name.
Why does restricting the client addresses prevent access even from a client at an explicitly allowed address? How do I fix this?
solaris nfs
I'm having trouble getting a Solaris 11.0 server to restrict access to an NFS share to a single client system.
I have roughly the following value for the share property of a tank/mail ZFS filesystem:
name=mail,path=/tank/mail,prot=nfs,none=*,rw=@10.0.23.43,sec=sys
I cannot mount the share on the client (running Solaris 11.3) at 10.0.23.43. I attempt like so:
mount -F nfs keisha:/tank/mail /tmp/mnt
and get the following error:
nfs mount: mount: /tmp/mnt: Permission denied
If I remove none=* then the client mounts fine. However, it is my understanding that doing so will allow access to clients at any address, which I want to prevent (and yes, I'm aware that it may be possible to spoof the address, but prefer to add whatever hoops I can.)
I have tried reversing the order of none and rw, and this changes nothing. I've tried rw=@10.0.23.43/32 and that doesn't work either.
I've tried opening it up to the whole subnet with rw=@10.0.0.0/16 and even that doesn't work. I've also double-checked that I have the client's address right. The client can't be using IPv6 to access the server, as the server's DNS entry is only IPv4 and I'm accessing it by name.
Why does restricting the client addresses prevent access even from a client at an explicitly allowed address? How do I fix this?
solaris nfs
solaris nfs
edited Jun 29 '17 at 11:46
Kevin
asked Jun 28 '17 at 11:18
KevinKevin
199112
199112
1
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19
add a comment |
1
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19
1
1
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19
add a comment |
2 Answers
2
active
oldest
votes
Looks like ridgy answered your question, if it's shared to just one host. If you have multiple, using a semi-colon, or creating a netgroup could be used.
If you need/want additional blocking, you could look into using ipfilters or the Solaris Firewall derived from OpenBSD PF (pkg:/network/firewall).
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
add a comment |
The comment by ridgy hinted at the answer. What was needed was to remove none, leaving:
name=mail,path=/tank/mail,prot=nfs,rw=@10.0.23.43,sec=sys
(It might be possible to omit the @ but the documentation calls for it so I figured it better to leave it in, in case the interpretation becomes more strict in future.)
This is a case of poor documentation. The man page states (emphasis mine):
none
Access is disallowed to all clients. Theroorrwoptions can overridenone.
none=access_list
Access is not allowed to any client that matches the access list. The exception is when the access list is an asterisk (*), in which caseroorrwcan overridenone.
Not only does this very explicitly indicate that my client at 10.0.23.43 should have gained access even with none (which it did not,) it also implies that you actually need none in order to avoid clients not listed in rw getting at least some kind of access, because otherwise, why would the override exception for none=* have even (supposedly) been implemented? It would be redundant!
I didn't have any other NFS clients handy to test, so I changed the IP number of my client and confirmed that, indeed, none is not required in order for clients not otherwise listed to be denied access. Just to be sure, I added ro as a test, and my client at a different address could then read but not write.
Though this seems to be the solution, I'm not happy with it, because the documentation implies that what I'm doing is leaving it wide open, and indeed I might be doing just that in a future version that corrects itself to obey the intentions implied by the documentation. (At least I have external firewalls.)
Did you see this part of the man page forshare_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list torw=@10.0.23.43,none=*it may have worked as you intended.
– Andrew Henle
Jun 29 '17 at 19:13
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,none=is only specified for smb, not for nfs. This seems to be sort of "Try and Error".
– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to therw,ro, ornoneoption, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.
– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373894%2frestricting-nfs-clients-to-particular-ip-addresses-blocks-all-addresses%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Looks like ridgy answered your question, if it's shared to just one host. If you have multiple, using a semi-colon, or creating a netgroup could be used.
If you need/want additional blocking, you could look into using ipfilters or the Solaris Firewall derived from OpenBSD PF (pkg:/network/firewall).
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
add a comment |
Looks like ridgy answered your question, if it's shared to just one host. If you have multiple, using a semi-colon, or creating a netgroup could be used.
If you need/want additional blocking, you could look into using ipfilters or the Solaris Firewall derived from OpenBSD PF (pkg:/network/firewall).
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
add a comment |
Looks like ridgy answered your question, if it's shared to just one host. If you have multiple, using a semi-colon, or creating a netgroup could be used.
If you need/want additional blocking, you could look into using ipfilters or the Solaris Firewall derived from OpenBSD PF (pkg:/network/firewall).
Looks like ridgy answered your question, if it's shared to just one host. If you have multiple, using a semi-colon, or creating a netgroup could be used.
If you need/want additional blocking, you could look into using ipfilters or the Solaris Firewall derived from OpenBSD PF (pkg:/network/firewall).
edited Jun 28 '17 at 17:24
answered Jun 28 '17 at 16:34
sleepyweaselsleepyweasel
88329
88329
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
add a comment |
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
Feel free to incorporate the comments into your answer, as comments can be deleted, making this answer much less useful.
– Jeff Schaller♦
Jun 28 '17 at 19:11
add a comment |
The comment by ridgy hinted at the answer. What was needed was to remove none, leaving:
name=mail,path=/tank/mail,prot=nfs,rw=@10.0.23.43,sec=sys
(It might be possible to omit the @ but the documentation calls for it so I figured it better to leave it in, in case the interpretation becomes more strict in future.)
This is a case of poor documentation. The man page states (emphasis mine):
none
Access is disallowed to all clients. Theroorrwoptions can overridenone.
none=access_list
Access is not allowed to any client that matches the access list. The exception is when the access list is an asterisk (*), in which caseroorrwcan overridenone.
Not only does this very explicitly indicate that my client at 10.0.23.43 should have gained access even with none (which it did not,) it also implies that you actually need none in order to avoid clients not listed in rw getting at least some kind of access, because otherwise, why would the override exception for none=* have even (supposedly) been implemented? It would be redundant!
I didn't have any other NFS clients handy to test, so I changed the IP number of my client and confirmed that, indeed, none is not required in order for clients not otherwise listed to be denied access. Just to be sure, I added ro as a test, and my client at a different address could then read but not write.
Though this seems to be the solution, I'm not happy with it, because the documentation implies that what I'm doing is leaving it wide open, and indeed I might be doing just that in a future version that corrects itself to obey the intentions implied by the documentation. (At least I have external firewalls.)
Did you see this part of the man page forshare_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list torw=@10.0.23.43,none=*it may have worked as you intended.
– Andrew Henle
Jun 29 '17 at 19:13
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,none=is only specified for smb, not for nfs. This seems to be sort of "Try and Error".
– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to therw,ro, ornoneoption, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.
– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
add a comment |
The comment by ridgy hinted at the answer. What was needed was to remove none, leaving:
name=mail,path=/tank/mail,prot=nfs,rw=@10.0.23.43,sec=sys
(It might be possible to omit the @ but the documentation calls for it so I figured it better to leave it in, in case the interpretation becomes more strict in future.)
This is a case of poor documentation. The man page states (emphasis mine):
none
Access is disallowed to all clients. Theroorrwoptions can overridenone.
none=access_list
Access is not allowed to any client that matches the access list. The exception is when the access list is an asterisk (*), in which caseroorrwcan overridenone.
Not only does this very explicitly indicate that my client at 10.0.23.43 should have gained access even with none (which it did not,) it also implies that you actually need none in order to avoid clients not listed in rw getting at least some kind of access, because otherwise, why would the override exception for none=* have even (supposedly) been implemented? It would be redundant!
I didn't have any other NFS clients handy to test, so I changed the IP number of my client and confirmed that, indeed, none is not required in order for clients not otherwise listed to be denied access. Just to be sure, I added ro as a test, and my client at a different address could then read but not write.
Though this seems to be the solution, I'm not happy with it, because the documentation implies that what I'm doing is leaving it wide open, and indeed I might be doing just that in a future version that corrects itself to obey the intentions implied by the documentation. (At least I have external firewalls.)
Did you see this part of the man page forshare_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list torw=@10.0.23.43,none=*it may have worked as you intended.
– Andrew Henle
Jun 29 '17 at 19:13
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,none=is only specified for smb, not for nfs. This seems to be sort of "Try and Error".
– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to therw,ro, ornoneoption, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.
– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
add a comment |
The comment by ridgy hinted at the answer. What was needed was to remove none, leaving:
name=mail,path=/tank/mail,prot=nfs,rw=@10.0.23.43,sec=sys
(It might be possible to omit the @ but the documentation calls for it so I figured it better to leave it in, in case the interpretation becomes more strict in future.)
This is a case of poor documentation. The man page states (emphasis mine):
none
Access is disallowed to all clients. Theroorrwoptions can overridenone.
none=access_list
Access is not allowed to any client that matches the access list. The exception is when the access list is an asterisk (*), in which caseroorrwcan overridenone.
Not only does this very explicitly indicate that my client at 10.0.23.43 should have gained access even with none (which it did not,) it also implies that you actually need none in order to avoid clients not listed in rw getting at least some kind of access, because otherwise, why would the override exception for none=* have even (supposedly) been implemented? It would be redundant!
I didn't have any other NFS clients handy to test, so I changed the IP number of my client and confirmed that, indeed, none is not required in order for clients not otherwise listed to be denied access. Just to be sure, I added ro as a test, and my client at a different address could then read but not write.
Though this seems to be the solution, I'm not happy with it, because the documentation implies that what I'm doing is leaving it wide open, and indeed I might be doing just that in a future version that corrects itself to obey the intentions implied by the documentation. (At least I have external firewalls.)
The comment by ridgy hinted at the answer. What was needed was to remove none, leaving:
name=mail,path=/tank/mail,prot=nfs,rw=@10.0.23.43,sec=sys
(It might be possible to omit the @ but the documentation calls for it so I figured it better to leave it in, in case the interpretation becomes more strict in future.)
This is a case of poor documentation. The man page states (emphasis mine):
none
Access is disallowed to all clients. Theroorrwoptions can overridenone.
none=access_list
Access is not allowed to any client that matches the access list. The exception is when the access list is an asterisk (*), in which caseroorrwcan overridenone.
Not only does this very explicitly indicate that my client at 10.0.23.43 should have gained access even with none (which it did not,) it also implies that you actually need none in order to avoid clients not listed in rw getting at least some kind of access, because otherwise, why would the override exception for none=* have even (supposedly) been implemented? It would be redundant!
I didn't have any other NFS clients handy to test, so I changed the IP number of my client and confirmed that, indeed, none is not required in order for clients not otherwise listed to be denied access. Just to be sure, I added ro as a test, and my client at a different address could then read but not write.
Though this seems to be the solution, I'm not happy with it, because the documentation implies that what I'm doing is leaving it wide open, and indeed I might be doing just that in a future version that corrects itself to obey the intentions implied by the documentation. (At least I have external firewalls.)
edited Jun 29 '17 at 11:47
answered Jun 29 '17 at 11:21
KevinKevin
199112
199112
Did you see this part of the man page forshare_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list torw=@10.0.23.43,none=*it may have worked as you intended.
– Andrew Henle
Jun 29 '17 at 19:13
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,none=is only specified for smb, not for nfs. This seems to be sort of "Try and Error".
– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to therw,ro, ornoneoption, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.
– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
add a comment |
Did you see this part of the man page forshare_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list torw=@10.0.23.43,none=*it may have worked as you intended.
– Andrew Henle
Jun 29 '17 at 19:13
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,none=is only specified for smb, not for nfs. This seems to be sort of "Try and Error".
– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to therw,ro, ornoneoption, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.
– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
Did you see this part of the man page for
share_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list to rw=@10.0.23.43,none=* it may have worked as you intended.– Andrew Henle
Jun 29 '17 at 19:13
Did you see this part of the man page for
share_nfs: The list is searched sequentially until a match is found that either grants or denies access I suspect that if you had reversed your list to rw=@10.0.23.43,none=* it may have worked as you intended.– Andrew Henle
Jun 29 '17 at 19:13
1
1
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,
none= is only specified for smb, not for nfs. This seems to be sort of "Try and Error".– ridgy
Jun 29 '17 at 21:41
The documentation indeed is not consistent. Especially for ZFS, there is docs.oracle.com/cd/E23824_01/html/821-1448/gayne.html, which refers to docs.oracle.com/cd/E23824_01/html/821-1462/… somewhere. But at the options section,
none= is only specified for smb, not for nfs. This seems to be sort of "Try and Error".– ridgy
Jun 29 '17 at 21:41
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to the
rw, ro, or none option, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.– Kevin
Jun 30 '17 at 10:46
@AndrewHenle I did see that statement, which by context applies to the contents of the access list given to the
rw, ro, or none option, as opposed to the order of those options themselves. Nevertheless I did try reversing the options as in your example and the outcome was the same.– Kevin
Jun 30 '17 at 10:46
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@Kevin Well, it's either a bug or you've just been welcomed to Solaris documentation. If it's not a bug, the behavior you're seeing almost certainly is documented somewhere in the documentation, but it's likely to be a footnote, obscure example, or a parenthetical expression on a man page at best peripherally related to sharing over NFS. The only way to find it is to know where it is in the first place, or open a support ticket and be told where it's documented. The newer, Oracle-era additions to Solaris also don't seem to be as rigorously documented as the Sun-legacy parts.
– Andrew Henle
Jun 30 '17 at 12:10
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
@AndrewHenle Yup, definitely have been experiencing that welcome! :)
– Kevin
Jul 5 '17 at 19:14
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373894%2frestricting-nfs-clients-to-particular-ip-addresses-blocks-all-addresses%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
If you only define one client, there should be no access from any other one. And by giving the complete IP, you do not need the '@'.
– ridgy
Jun 28 '17 at 14:22
@ridgy I'll try taking out the '@', but the man page does indicate it even for a single IP. I think it's to signal that it's not a hostname. 10.0.23.43 could be a valid hostname if someone gets crazy enough to pay $185,000 for .43 and ICANN gets crazy enough to approve. :)
– Kevin
Jun 28 '17 at 21:19