How to check the status of open ports in suse?

On SUSE systems, there are several methods available to check the status of open ports.

  1. Use the netstat command: typing the following command in the terminal will display all the ports and their status information on the current system.
  2. Show me a list of all currently listening TCP and UDP connections.
  3. Explanation of parameters:
  4. -show only TCP ports
  5. -u: display only UDP ports
  6. -n: display the port number in numerical form.
  7. – Show only ports in listen state.
  8. To use the ss command: The ss command is a modern alternative to netstat and can also be used to view port information. Input the following command in the terminal:
  9. Show all TCP and UDP connections in numerical format.
  10. Explanation of parameters:
  11. – Display only TCP ports.
  12. -u: Display only UDP ports.
  13. – Display the port number in numerical form.
  14. Display only the ports in a listening state.
  15. To check the open ports on a system with the firewall enabled, use the firewall-cmd command in the terminal by inputting the following command.
  16. Show the list of ports in the public zone using firewall-cmd.
  17. This will list all the currently open ports in the firewall configuration.

Please note that the above methods may require root permission to be executed.

bannerAds