LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Port to be closed. (https://www.linuxquestions.org/questions/debian-26/port-to-be-closed-263986/)

lancillotto4648 12-08-2004 07:27 AM

Port to be closed.
 
Please,I do not know how to close the following:

1. Ports TCP opened by Xwindow.

2. Ports and services as:
sunrpc
auth
947
smtp
957

Your help is appreciated.
Thanks

m_yates 12-08-2004 07:38 AM

Just:
Code:

apt-get install firestarter
Type "firestarter" as root and it will open a graphical program to configure your firewall. After running the setup wizard, click edit>preferences>services and you can select which services you want open to the network. Click on "rules" to select specific ports to open or block. Once you do that, the firewall will automatically be started at boot up unless you specifically configure it not to.

Edit: Dang typos!

lancillotto4648 12-08-2004 08:18 AM

I wish to close not by firestarter but directly.
Thanks

andguent 12-08-2004 08:33 AM

The following code closes port 23 (telnet):
Code:

iptables -I INPUT 1 -p tcp --destination-port 23 -j DROP
Check out http://iptables-tutorial.frozentux.n...-tutorial.html for more info on iptables. Section 6.3 - Commands is the meat of the article.

lancillotto4648 12-08-2004 01:21 PM

Please,I wish ports to be closed and not firewall drops the packets.
Thanks

zuralin 12-08-2004 01:23 PM

edit /etc/inetd.conf, commenting out lines to services you want closed. When your done use "/etc/init.d/inetd restart".

basileus 12-09-2004 03:24 AM

Debian has special a program for this. Check out "man update-inetd". I've used it to close all unnecessary inetd services.

wallison 12-09-2004 06:21 AM

"startx -- -nolisten tcp" will close the X Window port.
I had to "chmod -x /etc/init.d/exim4" to get rid of smtp.


All times are GMT -5. The time now is 02:22 AM.