Computing.Net > Forums > Linux > Closing ports

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Closing ports

Reply to Message Icon

Name: Greg
Date: March 7, 2002 at 13:49:18 Pacific
Comment:

Does anybody know where the file that allows ports to be open or closed is located? Is this a simple text file or do I have to start learning about IPCHAINS and IPTABLES.

Thanks for the direction.



Sponsored Link
Ads by Google

Response Number 1
Name: danny
Date: March 8, 2002 at 09:52:14 Pacific
Reply:

It's a nonsense to think that a port may be closed or open!! A port will work only if something (server deamon) is listening to it. If not, there is no reason to "close" this port.

However, with ipchains you can RESTRICT the usage of a running port to an ip range, or deny the usage of a port that could be used if your server is compromised.



0

Response Number 2
Name: Name:
Date: March 9, 2002 at 05:55:21 Pacific
Reply:

Yes, the file that defines most running server processes, and thereby open ports, is /etc/inetd.conf (or possibly /etc/xinetd.conf if you use xinetd). It's a simple text file. You may also want to take a look into iptables (or ipchains) for more protection or functionality.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







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: Closing ports

how do i close ports? www.computing.net/answers/linux/how-do-i-close-ports/5020.html

closing ports? www.computing.net/answers/linux/closing-ports/11900.html

Closing ports www.computing.net/answers/linux/closing-ports/22213.html