Mercurial > hg > Blog
diff content/Linux/nfs.md @ 98:1d9382b0329b
Specify the syntax on markdown blocks to avoid broken output that has class=err
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Thu, 19 Dec 2019 10:04:33 +0100 |
parents | 9693693301f2 |
children |
line wrap: on
line diff
--- a/content/Linux/nfs.md Thu Dec 19 09:31:57 2019 +0100 +++ b/content/Linux/nfs.md Thu Dec 19 10:04:33 2019 +0100 @@ -8,16 +8,19 @@ In `/etc/sysctl.conf` these settings: + :::shell fs.nfs.nlm_tcpport = 4001 fs.nfs.nlm_udpport = 4001 In `/etc/conf.d/nfs` enable these settings: + :::shell OPTS_RPC_MOUNTD="-p 32767" OPTS_RPC_STATD="-p 32765 -o 32766" Now all NFS daemons should be locked down to specific ports so you can add appropriate shorewall rules: + :::shell ACCEPT loc fw tcp 111 # portmapper ACCEPT loc fw udp 111 ACCEPT loc fw tcp 2049 # rpc.nfsd