![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
This webpage might have the answer for you. Check it out.
http://www.redhat.com/docs/manuals/l...rs-xinetd.html |
|
||||
|
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 |
|
||||
|
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.. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|