Question: how to check if port is blocked by firewall linux?
Answer: You can first try to use ping to check if there is network connectivity.
then do a telnet to the host name for a specific port.
If the firewall to the specific host and port is enabled, then it will make a connection. otherwise, it will fail and display an error message.