Product SiteDocumentation Site

7.2. Setting the NIS Port for FreeIPA

The FreeIPA server binds to its NIS services over a random port that is selected when the server starts. It sends that port assignment to the portmapper so that NIS clients know what port to use to contact the FreeIPA server.
Administrators may need to open a firewall for NIS clients or may have other services that need to know the port number in advance and need that port number to remain the same. In that case, an administrator can specify the port to use.


Any available port number below 1024 can be used for the NIS Plug-in setting.
The NIS configuration is in the NIS Plug-in in FreeIPA's internal Directory Server instance. To specify the port:
  1. Edit the plug-in configuration and add the port number as an argument. For example, to set the port to 514:
    [root@ipaserver ~]# ldapmodify -x -D 'cn=directory manager' -w secret
    dn: cn=NIS Server,cn=plugins,cn=config 
    changetype: modify
    add: nsslapd-pluginarg0
    nsslapd-pluginarg0: 514
    modifying entry "cn=NIS Server,cn=plugins,cn=config"
  2. Restart the Directory Server to load the new plug-in configuration.
    [root@ipaserver ~]# service dirsrv restart