I want to quickly block access to (stealth) ports 135, 137, 138, 139. What is one command line that would certainly get the job done?
I want to quickly block access to (stealth) ports 135, 137, 138, 139. What is one command line that would certainly get the job done?
hi there,
first you need to know which program is using these ports.
If you want to find out, which exact program is responsible for an open port, type:
replacing 25 in the example with your desired port. This should tell you which program is running.Code:sudo fuser -v 25/tcp
From then on, you have several possibilities. First, you can just uninstall the corresponding program, in this case the mailserver that's running. Second, if you want to keep the program, you could try just stopping the service, like so:
Code:sudo stop exim4
Bookmarks