MyTetra Share
Делитесь знаниями!
Get a list of Open Ports in Linux
Время создания: 23.03.2017 09:23
Автор: https://superuser.com/users/166247/mehulved
Текстовые метки: linux open ports
Раздел: Linux
Запись: Velonski/mytetra-database/master/base/1490243032474b04yie6/text.html на raw.githubusercontent.com
netstat -lntu

as replied by @askmish will give you list of services running on your system on tcp and udp ports where

  • -l = only services which are listening on some port
  • -n = show port number, don't try to resolve the service name
  • -t = tcp ports
  • -u = udp ports
  • -p = name of the program

You don't need the 'p' parameter as you're only interested in getting which ports are free and not which program is running on it.

This only shows which ports on your system are used up, though. This doesn't tell you the status of your network e.g. if you're behind NAT and you want some services to be accessible from outside. Or if the firewall is blocking the port for outside visitors. In that case, nmap comes to the rescue. WARNING: Use nmap only on networks which are under your control. Also, there are firewall rules which can block nmap pings, you'll have to fiddle around with options to get correct results.

Так же в этом разделе:
 
MyTetra Share v.0.65
Яндекс индекс цитирования