Computing.Net > Forums > Linux > how do i close ports?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

how do i close ports?

Reply to Message Icon

Name: hakan bjork
Date: August 3, 2001 at 17:25:08 Pacific
Comment:

i wounder how i close ports in slackware 7.1



Sponsored Link
Ads by Google

Response Number 1
Name: danny
Date: August 3, 2001 at 18:37:57 Pacific
Reply:

There is no reason to close a port is nothing is responding to it! you can disable services in /etc/inetd.conf file

Other you can definitly block a specific port with ipchain!! type: man ipchain for more info,


0

Response Number 2
Name: David
Date: August 7, 2001 at 09:23:54 Pacific
Reply:

iptables -A INPUT -p tcp --dport 80 -j drop

That is the iptables command to drop all tcp packets destined for port 80. iptables requires a 2.4.X kernel with correct options compiled.


0

Response Number 3
Name: Peter
Date: October 19, 2001 at 13:23:42 Pacific
Reply:

Referencing Danny:

A port is opened when you have a service running. It doesn't necessarily matter what OS you're running, but a port doesn't open up unless an application is running (in the background)to use the port.

For example: Apache running in the background responding to http requests on Port 80 (standard). If there's nothing there to respond to the requests of port 80, portt 80 isn't opened.

Also, take a look at your /etc/services file. That'll also give you a good idea of what ports are defined.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


configuring fa311 in linu... Linux Virus Email Attachm...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: how do i close ports?

How do I close X (or GNOME, we...) www.computing.net/answers/linux/how-do-i-close-x-or-gnome-we/26562.html

How do I enable iptables port forwa www.computing.net/answers/linux/how-do-i-enable-iptables-port-forwa/18599.html

external IP ? how do I find it? www.computing.net/answers/linux/external-ip-how-do-i-find-it/21280.html