The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
telnet on specific port?? zing_foru UNIX for Advanced & Expert Users 6 05-27-2008 08:51 AM
How to block a port Saurabh78 IP Networking 4 05-15-2008 11:59 AM
How to know port is block.. Saurabh78 IP Networking 2 05-15-2008 11:51 AM
Extracting specific block Dastard Shell Programming and Scripting 7 02-27-2008 02:21 PM
How to Block/Ban Traffic From Specific Referrer osoamor UNIX for Dummies Questions & Answers 4 01-12-2007 03:58 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-19-2002
xiamin xiamin is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 64
block telnet to specific port

Hello All

I am running redhat linux 7.2 and would like to know how i can block telnetting to a specified port .

say for example i would like to block telnet acesses to port 80.


regards
Xiamin
  #2 (permalink)  
Old 03-19-2002
killerserv's Avatar
killerserv killerserv is offline Forum Advisor  
Unix Predator
  
 

Join Date: Dec 2000
Location: Phoenix, AZ
Posts: 670
This webpage might have the answer for you. Check it out.
http://www.redhat.com/docs/manuals/l...rs-xinetd.html
  #3 (permalink)  
Old 03-20-2002
xiamin xiamin is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 64
Hi killserv

That was the most helpful link thank you very much.However my question still reamins unanswered.

regards
Hrishy
  #4 (permalink)  
Old 03-20-2002
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
What do you mean by "telnet access to port 80"? Incoming? Or outgoing? As far as I am aware, there is no reliable means of knowing which application is producing an incoming request, nor is there any reliable way of blocking outgoing requests based on the application. One of the reasons is that there is no set source port - it just picks one above 1024 that isn't in use, and makes the connection.

Someone let me know if I'm wrong...
  #5 (permalink)  
Old 03-20-2002
xiamin xiamin is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 64
Hello

I mean something like this .If there is a incomming request to my server thru a telnet session on port 80.Those packests should be dropped.Hope i am clear....( i think it can be done through iptables currently i am raeding them but this thing is not makin much sense to me. ;-D

regards
Hrishy
  #6 (permalink)  
Old 03-20-2002
thomas.jones thomas.jones is offline
Registered User
  
 

Join Date: Mar 2002
Posts: 12
First of all, the standard telnet port is 23. If you have telnet enabled through inetd.conf...then it's probably the default port of 23. Now to stop port 80 access it's just a little different.

If you had a webserver available on your node....then a person telnetting to it will get the httpd system banner:

**********************
Whatever Linux v2.2.14
Apache vX.X.XX
etc.
**********************

They can then send a GET command using telnet to pull the HTML...this is exactly what a web browser does.


To stop someone from connecting to this port...all you have to do is go into inetd.conf and comment out the HTTP line....which should look something like this:

http stream tcp nowait nobody ?/var/www/server/httpd httpd

This will shutdown the daemon...or "service"......then no one will be able to connect to it. Restart the inetd daemon by issuing the following command:

killall -HUP inetd

BTW, you will NOT be able to block a telnet'd connection to your port....and allow a web browser. To the firewall, they are essentially the same traffic. [TCP from a 1024+ port]

HTH.

Last edited by thomas.jones; 03-20-2002 at 09:01 PM..
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0