- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: telnet access denied
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:10 AM
07-22-2002 06:10 AM
telnet access denied
We are using /etc/networks to configure our network ranges and /etc/nsswitch.conf is set to 'networks: files [NOTFOUND=return UNAVAIL=return]'
/etc/networks looks like this
myCompany 130.143.80
myCompany 130.143.81
. . .
Then /var/adm/inetd.sec has lines like
telnet allow myCompany loopback
When I put the IP addresses directly into inetd.sec I can telnet into the system. When I am using the /etc/network approach access is denied.
This is strange because in our current network we are using the /etc/network approach without any problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:24 AM
07-22-2002 06:24 AM
Re: telnet access denied
man networks shows 3 required fields
"official name" IP Alias
Try adding an alias field on 1 machine and see if it works. Inet is very picky about file formats and may be bailing when the alias field is absent.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 06:28 AM
07-22-2002 06:28 AM
Re: telnet access denied
...and "inetd.sec" expects the format "1.2.3.*" IIRC (not "1.2.3")...
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 07:05 AM
07-22-2002 07:05 AM
Re: telnet access denied
myCompany 130.143.80.* myalias
...
But it did not change anything.
I then changed inetd.sec to
telnet allow myCompany loopback 130.134
and it works.
This shows me that the problem must be something else but not with aliases and or asterisks.
As I stated in my original message, we have our current network running with the same /etc/networks approach and it works without problems.
I attached the head of our current /etc/networks for reference.
My feeling is, that the /etc/networks file is not read at all but I have no clue why so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 08:50 AM
07-22-2002 08:50 AM
Re: telnet access denied
telnet allow myCompany loopback 130.134.8*
and at least restrict the access some.
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 09:08 AM
07-22-2002 09:08 AM
Re: telnet access denied
If your using the networks then forget about coding the ip into inetd.sec
Now, I think someone elses answer may have confused you. If you want to fix the "/etc/networks" file then the format is
ProperName IP Alias
MyNet 10.1.1 MN
You can NOT put an asterisk into the /etc/networks file.
If you have a bad field in networks, it will not be read by inet. Same is true for netgroups.
While in networks the alias field on my Sun's are optional, the HP's may be more particular.
Second, I dont think you can use networks for securing inetd. I think your confusing networks and netgroups. inetd supports the same getnetbyname and getnetbynumber as NFSD for which I have never seen /etc/networks used or supported, but rather a network number, netgroup name, ip, or hostname. (Solaris supports a .domain feature as well, but that's another discussion). I could very well be wrong on this.
When you say your using the /etc/network approach on your network without any problems, what excatly are you using it for? (/etc/networks is the precursor to /etc/netgroups, so not widely used any more)
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 09:34 AM
07-22-2002 09:34 AM
Re: telnet access denied
I do only want to use /etc/networks in the same manner as we are using it now in our running LAN.
I just played around with entries in inetd.sec to test some of the answers I got.
As I stated in my first reply I already tested putting an Alias after every network entry an it did not work.
In our actual LAN we do not have aliases and it works without them without problems so I think it is not a mandatory field.
In HP-UX the file /etc/nsswitch.conf can be configured by using SAM and when you select files instead of NIS it creates the /etc/networks entry.
Thus I think /etc/networks is still used by HP-UX as the central point to define various IP ranges as a common network, thus avoiding long lists after every service in inetd.sec.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 09:48 AM
07-22-2002 09:48 AM
Re: telnet access denied
You probably already did this, but check your services file to ensure the entry for telnet is in the correct format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 09:50 AM
07-22-2002 09:50 AM
Re: telnet access denied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 12:45 PM
07-22-2002 12:45 PM
Re: telnet access denied
AFAIK you cannot have ranges and/or wildcards in "/etc/networks", but you need those in "/var/adm/inetd.sec". So you cannot use the *network names* in "inetd.sec" :-(
Sorry,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 01:06 PM
07-22-2002 01:06 PM
Re: telnet access denied
The following is from the man page of inetd.sec on a 10.20 server.
The following entry denies rlogin access to host cory.berkeley.edu,
any hosts on the network named testlan, and the host with internet
address 192.54.24.5:
login deny 192.54.24.5 cory.berkeley.edu testlan
To me, this example means that the testlan (variable if you will) can be used in the inetd.sec file. If I am wrong in this assumption please tell me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2002 11:08 PM
07-22-2002 11:08 PM
Re: telnet access denied
In our company LAN we have several class B and class C networks worldwide and ALL services in inetd.sec are configured using the scheme:
service allow myCompany loopback
The network name "myCompany" is defined in /etc/networks on MULTIPLE lines as shown below
myCompany X1.Y1 # class B network 1
myCompany X2.Y2 # class B network 2
myCompany X3.Y3.Z3 # class C network 1 myCompany X3.Y3.Z4 # class C network 2
...
This scheme works fine and without any problems.
No aliases, asterisks or anything the like are used and everything is OK.
We are running this scheme for years now.
We are trying to set up a seperate Test LAN with a few class C networks.
So I copied our actual scheme to the hosts in the test LAN but it seems that the entries in /etc/networks are not processed at all.
All I get in the syslog is "..telnet/tcp: Access denied for ..."
As I stated before, I can grant access by adding the ip ranges into inetd.sec.
Because there are so many entries in inetd.sec this makes the file very awkward and error prone. It is also essential to understand the problem and not look for a workaround because there may be other side effects caused by this problem.