LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-05-2014, 05:01 AM   #1
seprob
Member
 
Registered: Sep 2008
Posts: 50

Rep: Reputation: 15
Block Telnet connection by iptables


Hello! I want to block Telnet connection with given port but I want to still use this service. For example I have SSH server and when I do "telnet localhost 22" after connection the server displays some information. I want to block it but of course I still want to use SSH. Have some ideas?
 
Old 12-05-2014, 06:09 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,145

Rep: Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979Reputation: 2979
In a nutshell no. As far as I know it isn't possible to determine whether the TCP connection is coming from telnet or a client. In the case of ssh the only way to change the information displayed is to edit the source code and recompile.
 
  


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
block request from telnet using iptables dlugasx Linux - Server 2 12-01-2011 06:14 AM
Block telnet ceannfeachd Linux - Security 4 11-10-2007 01:47 PM
Block telnet against a particular IP shipon_97 AIX 1 10-04-2007 03:37 PM
block telnet port 25 yenonn Linux - Security 6 09-30-2005 02:34 AM
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:30 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