{
  "created": "2015-12-20T19:56:52Z",
  "hierarchy": [
    {
      "name": "ROOT",
      "type": "folder",
      "uri": "/ROOT"
    },
    {
      "name": "Assigning Fixed Ports to an NIS Server",
      "type": "article",
      "uri": "Assigning_Fixed_Ports_to_an_NIS_Server"
    }
  ],
  "html": "<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\"/>\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\"/>\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>\n    <meta property=\"og:image\" content=\"/img/logo512.png\"/>\n    <meta property=\"og:site_name\" content=\"Nikhil's Personal Wiki\"/>\n    <link rel=\"og:image\" href=\"/img/logo512.png\"/>\n    <link rel=\"icon\" href=\"/img/favicon.png\"/>\n    <link rel=\"apple-touch-icon\" href=\"/img/logo192.png\"/>\n    <link rel=\"stylesheet\" href=\"/css/styles.css\"/>\n    <link rel=\"stylesheet\" href=\"/css/highlight.css\"/>\n    <title>Assigning Fixed Ports to an NIS Server &ndash; Nikhil's Personal Wiki</title>\n    <script type=\"text/javascript\" id=\"MathJax-script\" defer src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js\"></script>\n    <script defer data-domain=\"wiki.nikhil.io\" src=\"https://plausible.io/js/plausible.js\"></script>\n  </head>\n  <body>\n    <noscript>\n      👉 A few things won&#8217;t work if you have JavaScript disabled.\n    </noscript>\n    <div class=\"container article\">\n      <header>\n        <nav>\n          <ul>\n            <li>\n              <a href=\"/archive\"  title=\"Archive\">\n                <span>Archive</span>\n              </a>\n            </li>\n            <li>\n              <a href=\"/Home\"  title=\"Home\">\n                <span>Home</span>\n              </a>\n            </li>\n            <li>\n              <a href=\"/random\"  title=\"See a random article\">\n                <span>Random</span>\n              </a>\n            </li>\n            \n            \n              \n                <li>\n                  <a href=\"/Assigning_Fixed_Ports_to_an_NIS_Server/raw\"  title=\"View Source\">\n                    <span>Raw</span>\n                  </a>\n                </li>\n              \n              \n            \n            \n            \n            \n              \n                <li>\n                  <a href=\"/Assigning_Fixed_Ports_to_an_NIS_Server/revisions\" >\n                    <span>Revisions</span>\n                  </a>\n                </li>\n              \n            \n            \n              \n                \n                  <li>\n                    <a href=\"/Assigning_Fixed_Ports_to_an_NIS_Server/index.json\" title=\"View JSON Object\">\n                      <span>JSON</span>\n                    </a>\n                  </li>\n                \n              \n            \n          </ul>\n        </nav>\n      </header>\n      <main>\n        \n  <nav>\n  <ul>\n    \n      <li>\n        <a data-entity-type=\"folder\" href=\"/ROOT\" title=\"ROOT\">Root</a>\n      </li>\n    \n      <li>\n        <a data-entity-type=\"article\" href=\"/Assigning_Fixed_Ports_to_an_NIS_Server\" title=\"Assigning Fixed Ports to an NIS Server\">Assigning Fixed Ports to an NIS Server</a>\n      </li>\n    \n    \n    \n    \n    \n  </ul>\n</nav>\n\n  <h1>Assigning Fixed Ports to an NIS Server\n    \n  </h1>\n  <h2>Configuring Fixed Ports</h2>\n<p>The motivation is to create better firewalls. You can find out what<br />\nports your server&rsquo;s listening on by issuing <code>rpcinfo</code>.</p>\n<pre><code>[admin@server ~]# rpcinfo -p\n  program vers proto   port  \n   100000    2   tcp    111  portmapper  \n   100000    2   udp    111  portmapper  \n   100024    1   udp    778  status  \n   100024    1   tcp    781  status  \n   100004    2   udp   1002  ypserv  \n   100004    1   udp   1002  ypserv  \n   100004    2   tcp   1005  ypserv  \n   100004    1   tcp   1005  ypserv  \n   100069    1   udp   1015  fypxfrd  \n   100069    1   tcp   1017  fypxfrd  \n   100009    1   udp    781  yppasswdd  \n   100007    2   udp    958  ypbind  \n   100007    1   udp    958  ypbind  \n   100007    2   tcp    961  ypbind  \n   100007    1   tcp    961  ypbind\n</code></pre>\n<p>You can choose a port that&rsquo;s on that list or come up with your own. I&rsquo;m<br />\ngoing to use:</p>\n<ul>\n<li>Port <strong>854</strong> for <strong><code>ypserv</code></strong></li>\n<li>Port <strong>855</strong> for <strong><code>ypxfrd</code></strong></li>\n</ul>\n<p>Next, configure <code>/etc/sysconfig/network</code> to use these ports. Add this:</p>\n<pre><code>YPSERV_ARGS=&quot;-p 854&quot;  \nYPXFRD_ARGS=&quot;-p 855&quot;\n</code></pre>\n<p>Restart the <code>ypserv</code> and <code>ypxfrd</code> services. <code>rpcinfo</code> should now show<br />\nthe fixed ports:</p>\n<pre><code>[admin@server ~]# rpcinfo -p  \n  program vers proto   port  \n   100000    2   tcp    111  portmapper  \n   100000    2   udp    111  portmapper  \n   100024    1   udp    778  status  \n   100024    1   tcp    781  status  \n   100009    1   udp    781  yppasswdd  \n   100007    2   udp    960  ypbind  \n   100007    1   udp    960  ypbind  \n   100007    2   tcp    963  ypbind  \n   100007    1   tcp    963  ypbind  \n   100004    2   udp    854  ypserv\n   100004    1   udp    854  ypserv  \n   100004    2   tcp    854  ypserv  \n   100004    1   tcp    854  ypserv  \n   100069    1   udp    855  fypxfrd\n   100069    1   tcp    855  fypxfrd\n</code></pre>\n<h2>Sources</h2>\n<ul>\n<li><a href=\"http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html\">Securing NIS (RedHat)</a></li>\n<li><a href=\"http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS\">Configuring NIS - LinuxHomeNetwork</a></li>\n</ul>\n\n\n      </main>\n      <footer>\n        <p>\n          \n        </p>\n        <ul>\n          \n  <li>2,670 bytes</li>\n  \n    <li>Created on Sunday, 20 December 2015 at 19:56 UTC</li>\n    <li>Modified on Tuesday, 13 January 2026 at 18:47 UTC</li>\n    <br/>\n    <li>\n      <a\n        href=\"https://github.com/afreeorange/wiki.nikhil.io.articles/edit/master/Assigning Fixed Ports to an NIS Server.md\"\n        title=\"Edit this article\">Edit this article</a>\n    </li>\n  \n\n          <li>\n            <a href=\"https://github.com/afreeorange/bock\" title=\"View the project that generates this wiki on Github\">bock\n            5.2.0-beta</a>\n          </li>\n        </ul>\n      </footer>\n    </div>\n    \n    \n      <script type=\"text/javascript\">\n        /**\n         * Quick shortcut to take me to the search box which is 90% of how I navigate\n         * this wiki anyway.\n         */\n        document.body.addEventListener(\n          \"keypress\", (e) => e.key === \"f\"\n          ? window.location.assign(\"/archive\")\n          : null);\n        window.MathJax = {\n          tex: {\n            inlineMath: [\n              [\n                '$', '$'\n              ],\n              [\n                '\\\\(', '\\\\)'\n              ]\n            ]\n          },\n          svg: {\n            fontCache: 'global'\n          }\n        };\n      </script>\n    \n  </body>\n</html></head></html>\n",
  "id": "2ee4f2d0-ee89-59fe-b596-d4be9ade4d77",
  "modified": "2026-01-13T18:47:28Z",
  "revisions": [
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2026-01-13T18:47:28Z",
      "id": "2436477560f26e23d00a24add1cbfeafdca4af78",
      "shortId": "24364775",
      "subject": "No compression\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n    [admin@server ~]# rpcinfo -p\n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100004    2   udp   1002  ypserv  \n       100004    1   udp   1002  ypserv  \n       100004    2   tcp   1005  ypserv  \n       100004    1   tcp   1005  ypserv  \n       100069    1   udp   1015  fypxfrd  \n       100069    1   tcp   1017  fypxfrd  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    958  ypbind  \n       100007    1   udp    958  ypbind  \n       100007    2   tcp    961  ypbind  \n       100007    1   tcp    961  ypbind\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n* Port **854** for **`ypserv`**\n* Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n    YPSERV_ARGS=\"-p 854\"  \n    YPXFRD_ARGS=\"-p 855\"\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n    [admin@server ~]# rpcinfo -p  \n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    960  ypbind  \n       100007    1   udp    960  ypbind  \n       100007    2   tcp    963  ypbind  \n       100007    1   tcp    963  ypbind  \n       100004    2   udp    854  ypserv\n       100004    1   udp    854  ypserv  \n       100004    2   tcp    854  ypserv  \n       100004    1   tcp    854  ypserv  \n       100069    1   udp    855  fypxfrd\n       100069    1   tcp    855  fypxfrd\n\nSources\n-------\n\n* [Securing NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n* [Configuring NIS - LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2025-06-06T14:38:23Z",
      "id": "c94a7e7ca1fce8cd9c634d81b8b5711166546c9c",
      "shortId": "c94a7e7c",
      "subject": "Merge branch 'master' of github.com:afreeorange/wiki.nikhil.io.articles\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n    [admin@server ~]# rpcinfo -p\n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100004    2   udp   1002  ypserv  \n       100004    1   udp   1002  ypserv  \n       100004    2   tcp   1005  ypserv  \n       100004    1   tcp   1005  ypserv  \n       100069    1   udp   1015  fypxfrd  \n       100069    1   tcp   1017  fypxfrd  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    958  ypbind  \n       100007    1   udp    958  ypbind  \n       100007    2   tcp    961  ypbind  \n       100007    1   tcp    961  ypbind\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n* Port **854** for **`ypserv`**\n* Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n    YPSERV_ARGS=\"-p 854\"  \n    YPXFRD_ARGS=\"-p 855\"\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n    [admin@server ~]# rpcinfo -p  \n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    960  ypbind  \n       100007    1   udp    960  ypbind  \n       100007    2   tcp    963  ypbind  \n       100007    1   tcp    963  ypbind  \n       100004    2   udp    854  ypserv\n       100004    1   udp    854  ypserv  \n       100004    2   tcp    854  ypserv  \n       100004    1   tcp    854  ypserv  \n       100069    1   udp    855  fypxfrd\n       100069    1   tcp    855  fypxfrd\n\nSources\n-------\n\n* [Securing NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n* [Configuring NIS - LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2021-06-04T03:04:37Z",
      "id": "fa9f7632d7901e6f9bb62b88594735ccc3588d28",
      "shortId": "fa9f7632",
      "subject": "Update Dovecot.md\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n    [admin@server ~]# rpcinfo -p\n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100004    2   udp   1002  ypserv  \n       100004    1   udp   1002  ypserv  \n       100004    2   tcp   1005  ypserv  \n       100004    1   tcp   1005  ypserv  \n       100069    1   udp   1015  fypxfrd  \n       100069    1   tcp   1017  fypxfrd  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    958  ypbind  \n       100007    1   udp    958  ypbind  \n       100007    2   tcp    961  ypbind  \n       100007    1   tcp    961  ypbind\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n* Port **854** for **`ypserv`**\n* Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n    YPSERV_ARGS=\"-p 854\"  \n    YPXFRD_ARGS=\"-p 855\"\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n    [admin@server ~]# rpcinfo -p  \n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    960  ypbind  \n       100007    1   udp    960  ypbind  \n       100007    2   tcp    963  ypbind  \n       100007    1   tcp    963  ypbind  \n       100004    2   udp    854  ypserv\n       100004    1   udp    854  ypserv  \n       100004    2   tcp    854  ypserv  \n       100004    1   tcp    854  ypserv  \n       100069    1   udp    855  fypxfrd\n       100069    1   tcp    855  fypxfrd\n\nSources\n-------\n\n* [Securing NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n* [Configuring NIS - LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-27T07:27:56Z",
      "id": "1aa29105a45aa67523ffb61e73bcc415f935a47e",
      "shortId": "1aa29105",
      "subject": "Fix Markdown conversion\n\nSaw half a season of The Office\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n    [admin@server ~]# rpcinfo -p\n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100004    2   udp   1002  ypserv  \n       100004    1   udp   1002  ypserv  \n       100004    2   tcp   1005  ypserv  \n       100004    1   tcp   1005  ypserv  \n       100069    1   udp   1015  fypxfrd  \n       100069    1   tcp   1017  fypxfrd  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    958  ypbind  \n       100007    1   udp    958  ypbind  \n       100007    2   tcp    961  ypbind  \n       100007    1   tcp    961  ypbind\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n* Port **854** for **`ypserv`**\n* Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n    YPSERV_ARGS=\"-p 854\"  \n    YPXFRD_ARGS=\"-p 855\"\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n    [admin@server ~]# rpcinfo -p  \n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    960  ypbind  \n       100007    1   udp    960  ypbind  \n       100007    2   tcp    963  ypbind  \n       100007    1   tcp    963  ypbind  \n       100004    2   udp    854  ypserv\n       100004    1   udp    854  ypserv  \n       100004    2   tcp    854  ypserv  \n       100004    1   tcp    854  ypserv  \n       100069    1   udp    855  fypxfrd\n       100069    1   tcp    855  fypxfrd\n\nSources\n-------\n\n* [Securing NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n* [Configuring NIS - LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-21T02:30:47Z",
      "id": "d658e80d1ecb97b196531c7b15a0f9af709c05de",
      "shortId": "d658e80d",
      "subject": "Incremental\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n` [admin@server ~]# `**`rpcinfo` `-p`**  \n`  program vers proto   port`  \n`   100000    2   tcp    111  portmapper`  \n`   100000    2   udp    111  portmapper`  \n`   100024    1   udp    778  status`  \n`   100024    1   tcp    781  status`  \n`   100004    2   udp   1002  ypserv`  \n`   100004    1   udp   1002  ypserv`  \n`   100004    2   tcp   1005  ypserv`  \n`   100004    1   tcp   1005  ypserv`  \n`600100069    1   udp   1015  fypxfrd`  \n`600100069    1   tcp   1017  fypxfrd`  \n`   100009    1   udp    781  yppasswdd`  \n`   100007    2   udp    958  ypbind`  \n`   100007    1   udp    958  ypbind`  \n`   100007    2   tcp    961  ypbind`  \n`   100007    1   tcp    961  ypbind`\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n-   Port **854** for **`ypserv`**\n-   Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n` YPSERV_ARGS=\"-p 854\"`  \n` YPXFRD_ARGS=\"-p 855\"`\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n`[admin@server ~]# rpcinfo -p`  \n`  program vers proto   port`  \n`   100000    2   tcp    111  portmapper`  \n`   100000    2   udp    111  portmapper`  \n`   100024    1   udp    778  status`  \n`   100024    1   tcp    781  status`  \n`   100009    1   udp    781  yppasswdd`  \n`   100007    2   udp    960  ypbind`  \n`   100007    1   udp    960  ypbind`  \n`   100007    2   tcp    963  ypbind`  \n`   100007    1   tcp    963  ypbind`  \n`   `**`100004` `2` `udp` `854` `ypserv`**  \n`   100004    1   udp    854  ypserv`  \n`   100004    2   tcp    854  ypserv`  \n`   100004    1   tcp    854  ypserv`  \n**`600100069` `1` `udp` `855` `fypxfrd`**  \n`600100069    1   tcp    855  fypxfrd`\n\nClient-side firewall config\n---------------------------\n\nSources\n-------\n\n-   [Securing\n    NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n-   [Configuring NIS -\n    LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n\n\n\n"
    },
    {
      "authorEmail": "mail@nikhil.io",
      "authorName": "Nikhil Anand",
      "date": "2015-12-20T19:56:52Z",
      "id": "87838b23344cd66554546a3a5561539d48001941",
      "shortId": "87838b23",
      "subject": "Assigning Fixed Ports to an NIS Server : First Draft\n",
      "content": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n` [admin@server ~]# `**`rpcinfo` `-p`**  \n`  program vers proto   port`  \n`   100000    2   tcp    111  portmapper`  \n`   100000    2   udp    111  portmapper`  \n`   100024    1   udp    778  status`  \n`   100024    1   tcp    781  status`  \n`   100004    2   udp   1002  ypserv`  \n`   100004    1   udp   1002  ypserv`  \n`   100004    2   tcp   1005  ypserv`  \n`   100004    1   tcp   1005  ypserv`  \n`600100069    1   udp   1015  fypxfrd`  \n`600100069    1   tcp   1017  fypxfrd`  \n`   100009    1   udp    781  yppasswdd`  \n`   100007    2   udp    958  ypbind`  \n`   100007    1   udp    958  ypbind`  \n`   100007    2   tcp    961  ypbind`  \n`   100007    1   tcp    961  ypbind`\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n-   Port **854** for **`ypserv`**\n-   Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n` YPSERV_ARGS=\"-p 854\"`  \n` YPXFRD_ARGS=\"-p 855\"`\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n`[admin@server ~]# rpcinfo -p`  \n`  program vers proto   port`  \n`   100000    2   tcp    111  portmapper`  \n`   100000    2   udp    111  portmapper`  \n`   100024    1   udp    778  status`  \n`   100024    1   tcp    781  status`  \n`   100009    1   udp    781  yppasswdd`  \n`   100007    2   udp    960  ypbind`  \n`   100007    1   udp    960  ypbind`  \n`   100007    2   tcp    963  ypbind`  \n`   100007    1   tcp    963  ypbind`  \n`   `**`100004` `2` `udp` `854` `ypserv`**  \n`   100004    1   udp    854  ypserv`  \n`   100004    2   tcp    854  ypserv`  \n`   100004    1   tcp    854  ypserv`  \n**`600100069` `1` `udp` `855` `fypxfrd`**  \n`600100069    1   tcp    855  fypxfrd`\n\nClient-side firewall config\n---------------------------\n\nSources\n-------\n\n-   [Securing\n    NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n-   [Configuring NIS -\n    LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n\n[Category:Nikhil's Notes](Category:Nikhil's_Notes \"wikilink\")\n[Category:From a past sysadmin\nlife](Category:From_a_past_sysadmin_life \"wikilink\")\n"
    }
  ],
  "sizeInBytes": 2670,
  "source": "Configuring Fixed Ports\n-----------------------\n\nThe motivation is to create better firewalls. You can find out what\nports your server's listening on by issuing `rpcinfo`.\n\n    [admin@server ~]# rpcinfo -p\n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100004    2   udp   1002  ypserv  \n       100004    1   udp   1002  ypserv  \n       100004    2   tcp   1005  ypserv  \n       100004    1   tcp   1005  ypserv  \n       100069    1   udp   1015  fypxfrd  \n       100069    1   tcp   1017  fypxfrd  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    958  ypbind  \n       100007    1   udp    958  ypbind  \n       100007    2   tcp    961  ypbind  \n       100007    1   tcp    961  ypbind\n\nYou can choose a port that's on that list or come up with your own. I'm\ngoing to use:\n\n* Port **854** for **`ypserv`**\n* Port **855** for **`ypxfrd`**\n\nNext, configure `/etc/sysconfig/network` to use these ports. Add this:\n\n    YPSERV_ARGS=\"-p 854\"  \n    YPXFRD_ARGS=\"-p 855\"\n\nRestart the `ypserv` and `ypxfrd` services. `rpcinfo` should now show\nthe fixed ports:\n\n    [admin@server ~]# rpcinfo -p  \n      program vers proto   port  \n       100000    2   tcp    111  portmapper  \n       100000    2   udp    111  portmapper  \n       100024    1   udp    778  status  \n       100024    1   tcp    781  status  \n       100009    1   udp    781  yppasswdd  \n       100007    2   udp    960  ypbind  \n       100007    1   udp    960  ypbind  \n       100007    2   tcp    963  ypbind  \n       100007    1   tcp    963  ypbind  \n       100004    2   udp    854  ypserv\n       100004    1   udp    854  ypserv  \n       100004    2   tcp    854  ypserv  \n       100004    1   tcp    854  ypserv  \n       100069    1   udp    855  fypxfrd\n       100069    1   tcp    855  fypxfrd\n\nSources\n-------\n\n* [Securing NIS (RedHat)](http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/security-guide/s1-server-nis.html)\n* [Configuring NIS - LinuxHomeNetwork](http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS)\n",
  "title": "Assigning Fixed Ports to an NIS Server",
  "untracked": false,
  "uri": "/Assigning_Fixed_Ports_to_an_NIS_Server",
  "relativePath": "Assigning Fixed Ports to an NIS Server.md"
}
