LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Block Telnet connection by iptables (https://www.linuxquestions.org/questions/linux-networking-3/block-telnet-connection-by-iptables-4175527409/)

seprob 12-05-2014 04:01 AM

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?

michaelk 12-05-2014 05:09 AM

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.


All times are GMT -5. The time now is 02:13 PM.