LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2011, 06:29 AM   #1
jaomedes
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Block Telnet Access to a Linux Box


Dear experts,

How can I block Telnet Access to a Linux Box. Is there a possibility of blocking telnet depending on the source IP Address?

Thanks
 
Old 12-11-2011, 06:39 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by jaomedes View Post
Dear experts,

How can I block Telnet Access to a Linux Box.
Just don't run a telnet daemon on that box.

Quote:
Is there a possibility of blocking telnet depending on the source IP Address?
You should be able to do that with /etc/hosts.deny and /etc/hosts.allow. But in the first place I would recommend to use SSH instead of telnet. telnet is obsolete and insecure.
 
1 members found this post helpful.
Old 12-11-2011, 07:28 AM   #3
Nibaly
LQ Newbie
 
Registered: Nov 2011
Posts: 7

Rep: Reputation: Disabled
Hi jaomedes,
U can try to use iptables rules:

Code:
iptables -A INPUT --dport 23 -j DROP
But..as TobiSGD said:

Quote:
Just don't run a telnet daemon on that box.


Bye
 
1 members found this post helpful.
Old 12-11-2011, 12:24 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
Delete (uninstall) the telent client and server.

telnet isn't that secure so blocking by ip is a waste of time. Use ssh tunnel instead maybe.

Last edited by jefro; 12-11-2011 at 12:25 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
From Solaris box i need to access linux box files and filesyste. How to achieve this? vengadesh Solaris / OpenSolaris 2 06-12-2009 07:42 AM
To Block SMTP on my Linux Box krishnakishore Linux - Wireless Networking 0 06-16-2004 11:53 AM
Telnet refused by my linux box murphaph Linux - Networking 10 04-02-2004 01:53 PM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 11:58 AM
telnet into a linux box todd499 Linux - Networking 13 11-24-2000 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration