LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   block request from telnet using iptables (http://www.linuxquestions.org/questions/linux-server-73/block-request-from-telnet-using-iptables-916402/)

dlugasx 11-30-2011 11:45 AM

block request from telnet using iptables
 
Hello Gurus,

question like in the subject.
Is it possible to block telnet request

for example:

Code:

telnet www.myexample.com 80
or

Code:

telnet myserver.com 22


using iptables ?

One big virtual beer + reputation point for person which know the answer! ;)


greetings

Dlugi

acid_kewpie 11-30-2011 11:58 AM

no, that's impossible. You'll only see a TCP connection wether it's a real UA or telnet.

(well, tbh you could probably use the iptables match module, but that's just awful, seriously... don't.)

Why do you want to do this? When this kind of question is asked, it typically stems from not fully grasping the situation. there is nothing wrong with doing this. it will not help you achieve a better system.

dlugasx 12-01-2011 05:14 AM

Quote:

Originally Posted by acid_kewpie (Post 4538372)
no, that's impossible. You'll only see a TCP connection wether it's a real UA or telnet.

(well, tbh you could probably use the iptables match module, but that's just awful, seriously... don't.)

Why do you want to do this? When this kind of question is asked, it typically stems from not fully grasping the situation. there is nothing wrong with doing this. it will not help you achieve a better system.

It seems that I have forgot to read docu about telnet. Now its clear.

Virtual beer for You :)))


All times are GMT -5. The time now is 08:44 AM.