<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Restict number of telnet sessions in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242101#M173818</link>
    <description>kaps,&lt;BR /&gt;&lt;BR /&gt; you can do that.Once i faced the problem after 70 users i am not able to getting telnet connection.So I had to increase the some kernel parameters such as NPTY NSTRPTY and created the device files.I dunno whether the  vice-versa will work.&lt;BR /&gt; I never tried that.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;Radhakrishnan</description>
    <pubDate>Wed, 07 Apr 2004 04:38:42 GMT</pubDate>
    <dc:creator>Radhakrishnan Venkatara</dc:creator>
    <dc:date>2004-04-07T04:38:42Z</dc:date>
    <item>
      <title>Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242099#M173816</link>
      <description>Can I do this ?. &lt;BR /&gt;&lt;BR /&gt;My telnetd service should refuce conenctions after it has reached a number (say 100)&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 07 Apr 2004 04:10:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242099#M173816</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-07T04:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242100#M173817</link>
      <description>You could try and install xinetd instead of inetd but this will probably cause you a few issues.&lt;BR /&gt; &lt;BR /&gt;Otherwise, you could script it in /etc/profile.  Something like&lt;BR /&gt; &lt;BR /&gt;[ `ps -ef | grep -v grep | grep telnetd | wc -l` -gt 100 ] &amp;amp;&amp;amp; exit</description>
      <pubDate>Wed, 07 Apr 2004 04:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242100#M173817</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-07T04:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242101#M173818</link>
      <description>kaps,&lt;BR /&gt;&lt;BR /&gt; you can do that.Once i faced the problem after 70 users i am not able to getting telnet connection.So I had to increase the some kernel parameters such as NPTY NSTRPTY and created the device files.I dunno whether the  vice-versa will work.&lt;BR /&gt; I never tried that.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;Radhakrishnan</description>
      <pubDate>Wed, 07 Apr 2004 04:38:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242101#M173818</guid>
      <dc:creator>Radhakrishnan Venkatara</dc:creator>
      <dc:date>2004-04-07T04:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242102#M173819</link>
      <description>trouble with that one Radhakrishnan is that it would not just restrict telnet.  You wouldn't be able to do all sorts of other networking type connections or even have many users with several xterms open.</description>
      <pubDate>Wed, 07 Apr 2004 04:44:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242102#M173819</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-07T04:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242103#M173820</link>
      <description>This is not really what i want. I want telnetd to reject anything after the 100th telnet connection onto it.&lt;BR /&gt;&lt;BR /&gt;Regds,&lt;BR /&gt;&lt;BR /&gt;Kaps</description>
      <pubDate>Wed, 07 Apr 2004 05:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242103#M173820</guid>
      <dc:creator>KapilRaj</dc:creator>
      <dc:date>2004-04-07T05:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242104#M173821</link>
      <description>I think xinetd is your only option here then.  xinetd is a replacement for inetd but it does allow you to specifiy the number of instances of a service.&lt;BR /&gt; &lt;BR /&gt;They don't have it at the porting center but it does compile on hpux.</description>
      <pubDate>Wed, 07 Apr 2004 05:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242104#M173821</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-04-07T05:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242105#M173822</link>
      <description>The thing would be to restrict the number with the kernel parameter nstrtel.&lt;BR /&gt;&lt;BR /&gt;If this is set to 100 and there are 100 telnet connections open,then it would reject new connections.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Apr 2004 06:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242105#M173822</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2004-04-07T06:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242106#M173823</link>
      <description>All Hail the pharaoh!! he has it right.</description>
      <pubDate>Wed, 07 Apr 2004 07:17:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242106#M173823</guid>
      <dc:creator>Tim Sanko</dc:creator>
      <dc:date>2004-04-07T07:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restict number of telnet sessions</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242107#M173824</link>
      <description>Depending on how the users make their connection (Xwindows makes it complicated) and the version of HP-UX you are using, just set the 3 kernel parameters: npty, nstrtel and nstrpty all equal to 100. As mentioned, this can affect other services, so you may be better off just counting logins in /etc/profile. Put something like this at the beginning on /etc/profile:&lt;BR /&gt; &lt;BR /&gt;QTY=$(who | wc -l)&lt;BR /&gt;if [ $QTY -gt 100 -a $(id -u) -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "\n\nSorry, no more connections allowed\n"&lt;BR /&gt;  sleep 3&lt;BR /&gt;  exit&lt;BR /&gt;fi&lt;BR /&gt; &lt;BR /&gt;The above code is simpler than changing the kernel parameters and will not affect other service connections. Note that this counts every session even if the same user has logged in several times.</description>
      <pubDate>Wed, 07 Apr 2004 07:25:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restict-number-of-telnet-sessions/m-p/3242107#M173824</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-04-07T07:25:22Z</dc:date>
    </item>
  </channel>
</rss>

