Assign fixed port to nlockmgr
Hi,
I'm running Slackware 12.1 and I'd like to assign fixed udp and tcp port numbers to nlockmgr. I can't find any documentation on how to do this in Slackware. I have found things suggested for other distributions but none of them seem to apply (basically they specify files to edit). I'd also like to know how nlockmgr gets started. I have all the other processes that show up for rpcinfo -p using fixed ports. I want to get them all set up with fixed port numbers so that I can use those port numbers in a set of firewall rules. Thanks for any help you are able to provide. Randy |
|
Rick,
Thanks for you reply. I had already done everything in your howto prior to posting. # cat /etc/modprobe.d/lockd options lockd nlm_udpport=4001 nlm_tcpport=4001 I had also tried replacing lockd with nlockmgr in the above but that did not help. Does it matter that I see nlockmgr, as shown below, and your example is for lockd? 100021 1 udp 60350 nlockmgr 100021 3 udp 60350 nlockmgr 100021 4 udp 60350 nlockmgr 100021 1 tcp 47943 nlockmgr 100021 3 tcp 47943 nlockmgr 100021 4 tcp 47943 nlockmgr Thank you, Randy |
Hi,
I think maybe the problem is that lockd is not configured as as a loadable module. When I do a make menuconfig I can not determine what I need to change to make lockd a loadable module. Can anyone tell me where to specify this? I know how to compile the kernel and make the modules, just not what I need to change/specify. Thanks, Randy |
I'm not sure where that is in the config (I'll poke around in a bit), but for the time being, you can use kernel appends to do the same thing. In lilo.conf, put this:
append = "lockd.nlm_tcpport=4045 lockd.nlm_udpport=4045" |
I have no idea how to tune whether LOCKD is modular or not, unless you edit the .config file directly. Pat's .config looks like this:
Code:
CONFIG_NETWORK_FILESYSTEMS=y |
Hi,
Thanks for your reply. Sorry for getting your name wrong Robby, I used to work with a RIck Workman. I have resolved the problem by making lockd a module. To do this I specified that NFS file system support should be a module and then recompiled the kernel and installed the modules. Randy |
Quote:
Quote:
|
Hi,
I'm upgrading to Slackware 13.1 and getting lockd built as a module now requires that NFS client support be specified as a module under File Systems -> Network File Systems when rebuilding the kernel. NFS server support is still required to be built as a module as well (but that's the default for 13.1). I hope this helps anyone else trying to build lockd as a module. Randy |
The howto doc is updated with the way to handle that now:
Code:
In Slackware 13.1, which has a 2.6.33.x kernel, you will instead need to |
When using /etc/sysctl.conf do you known if lockd still needs to be built as a module? The old way still works but requires lockd to be built as a module.
Thanks, Randy |
It does not.
|
All times are GMT -5. The time now is 08:33 AM. |