Try this:

# /etc/conf.d/nfs

# If you wish to set the port numbers for lockd,
# please see /etc/sysctl.conf

# Optional services to include in default `/etc/init.d/nfs start`
# For NFSv4 users, you'll want to add "rpc.idmapd" here.
NFS_NEEDED_SERVICES="rpc.idmapd"

# Number of servers to be started up by default
OPTS_RPC_NFSD="8"

# Options to pass to rpc.mountd
# ex. OPTS_RPC_MOUNTD="-p 32767"
OPTS_RPC_MOUNTD="-p 4000"

# Options to pass to rpc.statd
# ex. OPTS_RPC_STATD="-p 32765 -o 32766"
OPTS_RPC_STATD="-p4001 -o4002" #-p 4000"

# Options to pass to rpc.idmapd
OPTS_RPC_IDMAPD=""

# Options to pass to rpc.gssd
OPTS_RPC_GSSD=""

# Options to pass to rpc.svcgssd
OPTS_RPC_SVCGSSD=""

# Options to pass to rpc.rquotad (requires sys-fs/quota)
OPTS_RPC_RQUOTAD=""

# Timeout (in seconds) for exportfs
EXPORTFS_TIMEOUT=30


in /etc/sysctl.conf:
...
# TCP Port for lock manager
fs.nfs.nlm_tcpport = 4003
# UDP Port for lock manager
fs.nfs.nlm_udpport = 4003



asterisk ~ # rpcinfo -p
   program vers proto   port  service
    100000    4   tcp    111  portmapper
    100000    3   tcp    111  portmapper
    100000    2   tcp    111  portmapper
    100000    4   udp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100024    1   udp   4001  status
    100024    1   tcp   4001  status
    100005    1   udp   4000  mountd
    100005    1   tcp   4000  mountd
    100005    2   udp   4000  mountd
    100005    2   tcp   4000  mountd
    100005    3   udp   4000  mountd
    100005    3   tcp   4000  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100021    1   udp   4003  nlockmgr
    100021    3   udp   4003  nlockmgr
    100021    4   udp   4003  nlockmgr
    100021    1   tcp   4003  nlockmgr
    100021    3   tcp   4003  nlockmgr
    100021    4   tcp   4003  nlockmgr
asterisk ~ #


BillK




On 02/01/14 19:23, Tanstaafl wrote:
> No one?
> 
> Another reboot, and had to open up OUTGOING port 57212 this time.
> 
> Why are the static ports I'm assigning not being used?
> 
> On 2013-12-31 8:11 AM, Tanstaafl <tansta...@libertytrek.org> wrote:
>> On 2013-12-31 7:30 AM, Tanstaafl <tansta...@libertytrek.org> wrote:
>>> I've made the following changes to the following config files:
>>>
>>> /etc/conf.d/nfs
>>>
>>> OPTS_RPC_MOUNTD="-p 32767"
>>> OPTS_RPC_STATD="-p 32765 -o 32766"
>>>
>>> I've also changed the lockd ports
>>>
>>> /etc/sysctl.conf
>>>
>>> # You should compile nfsd into the kernel or add it
>>> # to modules.autoload for this to work properly
>>> # TCP Port for lock manager
>>> fs.nfs.nlm_tcpport = 4001
>>> # UDP Port for lock manager
>>> fs.nfs.nlm_udpport = 4001
>>>
>>> But when I try to mount the remote filesystem, I see the outbound
>>> request being blocked by the firewall.
>>>
>>> If I open up the port in the firewall, it mounts immediately.
>>>
>>> But after a reboot, the next time I try mounting it, some other random
>>> port shows up in the firewall logs...
>>>
>>> This can't be all that difficult... I must be missing something obvious.
>>
>>   # rpcinfo -p
>>     program vers proto   port  service
>>      100000    4   tcp    111  portmapper
>>      100000    3   tcp    111  portmapper
>>      100000    2   tcp    111  portmapper
>>      100000    4   udp    111  portmapper
>>      100000    3   udp    111  portmapper
>>      100000    2   udp    111  portmapper
>>      100024    1   udp  32765  status
>>      100024    1   tcp  32765  status
>>
>> Again, this system is NOT running an NFS SERVER, I am only trying to use
>> the nfs CLIENT to mount a remote NFS share - so, is the above what I
>> should expect to see? something tells me no...
>>
>> Shouldn't the lockd ports be showing up to?
>>
> 
> 


Reply via email to