Find the answer to your Linux question:
Results 1 to 8 of 8
Hi. I'm using ubuntu-linux ( ubuntu 9.10) I use utility autoscan network to scan the systems available in local area network of my hostel. It shows my open TCP ports ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Location
    Dehradun,Uttarakhand,INDIA
    Posts
    13

    Smile unnecessary ports open

    Hi.
    I'm using ubuntu-linux ( ubuntu 9.10)
    I use utility autoscan network to scan the systems available in local area network of my hostel.
    It shows my open TCP ports : like Ssh , Smtp , Http , NetBios-ssn , Microsoft-ds , ipp , Mysql , Postgres.
    Are all these services need to run all the time or I can manage the ports.
    Don't know much about it just want to know these ports are by default open or I can manage them.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    if you don't want them to be open, then don't run the service they are associated with

  3. #3
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    This ought to turn them off. You might consider uninstalling them.

    sudo /etc/init.d/servicename stop

    Edit: The machine in question is a client of this network?

  4. #4
    Linux User ptkobe's Avatar
    Join Date
    Feb 2008
    Location
    Torres Vedras, PT
    Posts
    274
    aduaitpokhriyal
    lol. manage ports. Are you a manager?

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    3
    enable ufw..open ports only when needed. Who knows you might need them later.

  6. #6
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    i think you need to find out why these services are installed on your system in the first place. I don't know about default services on Ubuntu, but I do know you have to manually install openssh-server on Ubuntu if you want to use it. So if port 22/tcp (ssh) is open, it is open because someone installed openssh-server for a reason. If you are sure you don't need it, best thing to do is fully uninstall the package. Same goes for the other services, find out what package install brought them on the system and figure out if you still need that package.

    This command may be of some help to you:
    sudo netstat -ap | grep --color -Ei '(Ssh|Smtp|Http|NetBios-ssn|Microsoft-ds|ipp|Mysql|Postgres)'
    The last commands prints the PID / process name that is connected to the port and with that knowledge you kan look at the manual page eg. 'man master' and/or google around a bit.

    Also don't be bothered too much with services that are only listening on IP range 127.*.*.* as they only listen on internal connections coming in. Did you scan your system from the system itself or did you scan it from a remote machine?

    You may also consider changing the IP adress these services are listening on. May listen on all IP addresses, but are easily reconfigured just to listen on 127.0.0.1 Check the manual pages for this.

  7. #7
    Linux Newbie
    Join Date
    Oct 2008
    Posts
    140
    Quote Originally Posted by ptkobe View Post
    aduaitpokhriyal
    lol. manage ports. Are you a manager?
    He is now, he is using Linux. Why not welcome the new guy?

  8. #8
    Just Joined!
    Join Date
    Mar 2010
    Location
    Dehradun,Uttarakhand,INDIA
    Posts
    13

    Smile

    thanks all for advices

Posting Permissions

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