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
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.
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.
Summary: I am setting up a mail server. I need to use bind as a caching-nameserver only, so I don't want to have it listening, I want to close port 53 on eth0. So far I did this: iptables -A INPUT -p tcp -i et...