Check port availability behind firewall from Linux


In Microsoft Windows, if you want to check, if desire port is reachable on remote system, you use telnet client. How about Linux? How to check port availability behind firewall from Linux? You can use tool called nc (arbitrary TCP and UDP connections and listens) with parameters.

In below example, I checked availability of ports needed by Nutanix DR. I did nc from one Nutanix cluster (CVM) to remote Nutanix cluster (CVM).

[email protected]:$ nc -znw1 2020
Connection to 2020 port [tcp/*] succeeded!
[email protected]:$ nc -znw1 2009
Connection to 2009 port [tcp/*] succeeded!
[email protected]:$ nc -znw1 22
Connection to 22 port [tcp/*] succeeded!
[email protected]:$

If you would like to learn more about Nutanix network ports, have a look at my blog post – Nutanix network port diagrams. Where you can find port diagrams for Nutanix in different configurations.

Read nc tool Linux manual to learn more about switches

0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

Notify of
Newest Most Voted
Inline Feedbacks
View all comments

Shall we do the same command from PC VM?

Would love your thoughts, please comment.x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Don't miss any posts. Subscribe To Our Newsletter!!

Join our mailing list to receive the latest news and updates from

You have Successfully Subscribed!

Pin It on Pinterest