Hello, If I configure drakfirewall with "No firewall" on the server, NFS is working fine. If I configure drakfirewall checking the "NFS server" box, NFS doesn't work anymore. The client MCC displays the server IP address without the ">". If, on the server, I go into "Advanced" and manually add "30000:60000/tcp 30000:60000/udp" NFS works again. So, drakfirewall fails to open the mountd ports. FWIW, I tried to add a line in /etc/sysconfig/nfs-server to set a fixed port number for mountd, but it didn't work either.
CC: (none) => mageia, thierry.vignaudSource RPM: (none) => drakx-net
NFS ports are defined there: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/drakfirewall.pm#n55 Listed from: http://gitweb.mageia.org/software/drakx-net/tree/lib/network/nfs.pm#n7 So it looks like we failed to read the right mountd port (which we assume is 4003 by default, else defined by "RPCMOUNTD_OPTIONS=..." in /etc/sysconfig/nfs-server
Keywords: (none) => NEEDINFO
CC: (none) => anaselli, matteo.pasotti
Removing the NEEDINFO keyword as I see no question to the bug reporter. Maybe you meant NEEDHELP?
Keywords: NEEDINFO => (none)
FYI, I have with Mageia 4: [root@localhost ~]# cat /etc/sysconfig/nfs-server RPCMOUNTD_OPTIONS="--port 4002" [root@localhost ~]# Bug still valid.
Whiteboard: (none) => MGA4TOO
Whiteboard: MGA4TOO => MGA4TOO MGA5TOO FOR_ERRATA
Added in errata. https://wiki.mageia.org/en/Mageia_5_Errata#Drakfirewall_fails_to_open_mountd_ports_for_NFS
CC: (none) => yves.brungard_mageiaWhiteboard: MGA4TOO MGA5TOO FOR_ERRATA => MGA4TOO MGA5TOO IN_ERRATA
Created attachment 6982 [details] Patch to use correct config file for NFS The problem is because systemd starts mountd with the configuration file /etc/sysconfig/nfs while nfs.pm is looking at nfs-common and nfs-server. In addition the names of the parameters are changed in /etc/sysconfig/nfs so RPCMOUNTD_OPTIONS is now RPCMOUNTDARGS. A quick workaround the problem is to edit /etc/sysconfig/nfs and set RPCMOUNTDARGS="--port 4003" and restart nfs-mountd service. For a more complete fix see attached patch. It works for me.
CC: (none) => derekjenn
Hi, The patch works for me too. Thanks
Hi Why this patch isn't in Mageia 6?
Keywords: (none) => PATCHPriority: Normal => HighSeverity: normal => major
Assigning to drakx-net maintainer Olivier Blin. Patch attached (see comment #5).
Assignee: bugsquad => mageia
Applied by Papoteur in git, thanks for the patch!
Closing
Resolution: (none) => FIXEDStatus: NEW => RESOLVED
Reopened because of Mageia 5
Status: RESOLVED => REOPENEDWhiteboard: MGA4TOO MGA5TOO IN_ERRATA => MGA5TOO IN_ERRATAVersion: Cauldron => 5Resolution: FIXED => (none)
drakx-net 2.24.2 is ready in testing.
Assignee: mageia => qa-bugs
Drakx-net update is already assigned to QA in another bug.
Depends on: (none) => 18796Assignee: qa-bugs => yves.brungard_mageiaWhiteboard: MGA5TOO IN_ERRATA => IN_ERRATA
As a mg5 user, I downloaded drakx-net 2.24.2 from "Core Update Testing (distrib5)". And I tested it ok !( opened drakfirewall and re-applyed the "NFS" configuration. This time the nfs serveur is visible throught the firewall.
CC: (none) => choucroot
Alain, please report your successful test on Bug 18796. Also mention which architecture you tested on.
Followed in Bug 18796
Status: REOPENED => RESOLVEDResolution: (none) => FIXED