- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disable Telnet but Allow Telnet Out
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
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
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-11-2003 12:30 AM
тАО07-11-2003 12:30 AM
Disable Telnet but Allow Telnet Out
I have just installed SSH and disabled telnet. The client is now happy with the added security.
My client now wants to be able to ssh into the box and telnet to any machine outside our network. (This is a library system (Aleph)using the Z39.50 protocol)
Is it possible to disable telnet in but allow telnet out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 12:33 AM
тАО07-11-2003 12:33 AM
Re: Disable Telnet but Allow Telnet Out
to disable telnet in you can either disalbe it from the inet (/etc/inetd.conf) or use the sec to secure them (/var/adm/inetd.sec).
telnet out is always enabled, unless you remove the executable, i think.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 12:50 AM
тАО07-11-2003 12:50 AM
Re: Disable Telnet but Allow Telnet Out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 12:51 AM
тАО07-11-2003 12:51 AM
Re: Disable Telnet but Allow Telnet Out
Yes. Massimo is correct. Telnet in can be disabled which you have done and telnet out should work.
Check the following for disabling telnet. See that you have followed the correct steps.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x24fee822e739d711abdc0090277a778c,00.html
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 12:54 AM
тАО07-11-2003 12:54 AM
Re: Disable Telnet but Allow Telnet Out
You can get around this as follows.
Run telnetd as some other service on some other port. (Files - inetd.conf and services)
Now restrict this service in inetd.sec. (So that incoming connections will not be possible, but you can use that port for outbound connections.)
Also you need to have required permissions on your firewall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 01:06 AM
тАО07-11-2003 01:06 AM
Re: Disable Telnet but Allow Telnet Out
In your server,
#iptables -A INPUT -i eth0 -p tcp --dport telnet -j DROP
#iptables-save > /etc/sysconfig/iptables
eth0 is just a example , replace the exact interface of your server.
Now you will able to ssh to the server. But users cannot telnet to his server. But users can telnet outside.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 01:25 AM
тАО07-11-2003 01:25 AM
Re: Disable Telnet but Allow Telnet Out
"inetd -c" to refresh .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 01:58 AM
тАО07-11-2003 01:58 AM
Re: Disable Telnet but Allow Telnet Out
- telnet tool may be you usual practice, but you should prevent it become you second nature. using ssh starts from today.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2003 05:24 PM
тАО07-11-2003 05:24 PM
Re: Disable Telnet but Allow Telnet Out
The easiest way is to disable the telnet reference to port 23 in /etc/services. However, that doesn't prevent someone from explicitly specifying the port at the command line and telneting out:
# telnet another.com 23
You can disable the telnet binaries but that doesn't prevent users from compiling their own. Users can rely on other tools like netcat etc.
The most effective way would be to perform filtering at either a network-based firewall or host-based firewall on outbound traffic.
There are of course still loopholes on this. Depending on which ports you allow for initiated outbound traffic, a malicious user can still run a telnetd daemon at a high port which you did not block on his system e.g.
# telnet another.com 65535
OR
# nc another.com 65535
Such residual risk is where your Corporate IT Security Policies come into play. If you have a policy that states that no clear-text data should be transmitted over the network, then all staff should adhere to it.
Hope this helps. Regards.
Steven Sim Kok Leong