Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] static mountd port #34

Open
sylvainfaivre opened this issue Dec 9, 2019 · 3 comments
Open

[FEATURE] static mountd port #34

sylvainfaivre opened this issue Dec 9, 2019 · 3 comments

Comments

@sylvainfaivre
Copy link

Is your feature request related to a problem?

Using default settings, the NFS mountd service listens on a random port.
An option to set up a fixed port would be nice, in order to be able to open that port on the firewall settings.

Describe the solution you'd like

On Debian distro, this setting can be used in /etc/default/nfs-kernel-server (only relevant lines copied below) :

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
RPCMOUNTDOPTS="--manage-gids"

It would be nice to have an option to add the --port xxxxx setting to this line.

Describe alternatives you've considered

Additional context

@myii
Copy link
Member

myii commented Dec 9, 2019

Useful reference: https://wiki.debian.org/SecuringNFS.

@sylvainfaivre
Copy link
Author

Yes, that link is referenced in the comments I quoted ;-)

My point is, we know how to setup that setting, but it would be nice if the formula allowed to do it.

@myii
Copy link
Member

myii commented Dec 10, 2019

Yes, that link is referenced in the comments I quoted ;-)

Ah, but you didn't turn it into a hyperlink for following easily!

My point is, we know how to setup that setting, but it would be nice if the formula allowed to do it.

Sure, would you like to provide a PR for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants