View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1606
|
Posted: Fri Oct 09, 2015 11:09 am Post subject: NFS firewall configuration[solved] |
|
|
I'm trying to configure my NFS server to use static ports
I have the following entry in /etc/conf.d/nfs:
OPTS_RPC_MOUNTD="-p 32767"
but:
pc ~ # rpcinfo -p | grep udp.*mountd
100005 1 udp 33268 mountd
100005 2 udp 37470 mountd
100005 3 udp 47579 mountd
thanks
Last edited by Adel Ahmed on Sat Oct 10, 2015 9:26 pm; edited 1 time in total |
|
Back to top |
|
|
Keruskerfuerst Advocate
Joined: 01 Feb 2006 Posts: 2289 Location: near Augsburg, Germany
|
Posted: Sat Oct 10, 2015 12:54 pm Post subject: |
|
|
It is uncommon to setup a firewall for NFS. |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3494
|
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1606
|
Posted: Sat Oct 10, 2015 9:21 pm Post subject: |
|
|
nope that did not work
I did notice in the systemd script:
ExecStart=/usr/sbin/rpc.mountd $RPCMOUNTDOPTS
EnvironmentFile=/etc/conf.d/nfs
so I changed that to:
ExecStart=/usr/sbin/rpc.mountd $OPTS_RPC_MOUNTD
worked like a charm |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3494
|
Posted: Sun Oct 11, 2015 8:40 am Post subject: |
|
|
Quite funny. They should either both work or both fail.
After expanding variables you get exactly the same command line. If one worked and the other didn't, you had to either make some typo or define the variable in wrong place. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1606
|
Posted: Tue Oct 13, 2015 9:38 am Post subject: |
|
|
I don't remember exactly, but I probably had copied that service script of some website, I probably just copide and didn't check |
|
Back to top |
|
|
|