LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 07: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, 07:39 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
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, 08: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, 01:24 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,665

Rep: Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259Reputation: 2259
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 01: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 08:42 AM
To Block SMTP on my Linux Box krishnakishore Linux - Wireless Networking 0 06-16-2004 12:53 PM
Telnet refused by my linux box murphaph Linux - Networking 10 04-02-2004 02:53 PM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 12:58 PM
telnet into a linux box todd499 Linux - Networking 13 11-24-2000 09:55 PM


All times are GMT -5. The time now is 10:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration