LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   ports (https://www.linuxquestions.org/questions/slackware-14/ports-365972/)

firebug1 09-22-2005 12:29 PM

ports
 
my open ports on Slack 10 are

37/tcp time
113/tcp auth
631/tcp ipp

how i can close them....?

also i want to know how i can close ports
80/tcp
21/tcp

also i want to ask if i should always have all ports closed...is it harmless for the system?

can you propose me a good firewall program?

## sorry for my english!!! ##

Nylex 09-22-2005 12:40 PM

I'd imagine you'd close them by stopping the services that have them open.

631 is for CUPS, so it'd probably be something like "/etc/rc.d/rc.cups stop".

80 is for a webserver. For Apache, you could try "/etc/rc.d/rc.httpd stop" or maybe just "httpd stop".

21 is for FTP but I dunno what script you'd use for that as I don't have an FTP server running on my machine.

Not sure about the others. Remember you need to run these commands as root and without the quotes.

nukey 09-22-2005 03:40 PM

First check out your /etc/inetd.conf

Comment what you don't need.

Port 80, apache is running.

To stop it,

apachectl stop

And to make sure it won't start next time

chomd -x /etc/rc.d/rc.httpd



And off course you could always use iptables to close your ports.

dive 09-22-2005 07:53 PM

Quote:

How to deny remote connection to the CUPS daemon ?

To be sure the CUPS daemon only listens on your local computer, you can edit the /etc/cups/cupsd.conf file and replace the following line :

Port 631

with :

Listen 127.0.0.1:631


All times are GMT -5. The time now is 03:59 PM.