Results 1 to 2 of 2

Thread: Quickly close certain ports

  1. #1
    Join Date
    Apr 2012
    Beans
    26

    Quickly close certain ports

    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?

  2. #2
    Join Date
    Sep 2011
    Beans
    58

    Re: Quickly close certain ports

    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:
    Code:
    sudo fuser -v 25/tcp
    replacing 25 in the example with your desired port. This should tell you which program is running.

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •