[SOLVED] how to close port which is not necessary?
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have found some opened port with nmap, I have closed the tcp port 25 and 111 by stop the sendmail and rpcbind service. the problem now is how to close the 631 port , the port was detected as ipp (internet printint protocol) by nmap .
Last edited by Antares.Liu; 03-28-2012 at 09:54 AM.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
631 is the CUPS server.
Either you can disable/uninstall CUPS, but you also disable printing.
Or you can HTTP to localhost:631 and configure CUPS such that it doesn't allow connections from localhost.
Or you can install iptables and deny all connections as a policy and then open only the ports you need specifying which hosts are allowed to connect etc.
Either you can disable/uninstall CUPS, but you also disable printing.
Or you can HTTP to localhost:631 and configure CUPS such that it doesn't allow connections from localhost.
Or you can install iptables and deny all connections as a policy and then open only the ports you need specifying which hosts are allowed to connect etc.
jlinkels
Thanks for your hints, can you tell me how to stop the server, because I find all the services(rpcbind service and sendmail service) I had stopped still running when my laptop reboot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.