LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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: 242

Rep: Reputation: 18
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,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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: 242

Original Poster
Rep: Reputation: 18
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


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
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


All times are GMT -5. The time now is 09:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration