LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2011, 11:45 AM   #1
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Smile 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
 
Old 11-30-2011, 11:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
1 members found this post helpful.
Old 12-01-2011, 05:14 AM   #3
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Original Poster
Rep: Reputation: 19
Cool

Quote:
Originally Posted by acid_kewpie View Post
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 ))
 
  


Reply

Tags
block, iptables, request, telnet



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
How to get minor number in block driver transfer request cjlinux Linux - Newbie 0 03-09-2009 10:26 AM
Block DHCP SERVER request on network louiscastoria Linux - Networking 1 04-29-2008 01:59 PM
Block telnet against a particular IP shipon_97 AIX 1 10-04-2007 02:37 PM
Block URL request in server spiffytech Linux - Security 2 02-08-2006 09:16 PM
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:08 PM.

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