Check port availability behind firewall from Linux

Shares

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).

nutanix@NTNX-15SM65300246-A-CVM:10.4.91.56:~$ nc -znw1 10.4.91.57 2020
Connection to 10.4.91.57 2020 port [tcp/*] succeeded!
nutanix@NTNX-15SM65300246-A-CVM:10.4.91.56:~$ nc -znw1 10.4.91.57 2009
Connection to 10.4.91.57 2009 port [tcp/*] succeeded!
nutanix@NTNX-15SM65300246-A-CVM:10.4.91.56:~$ nc -znw1 10.4.91.57 22
Connection to 10.4.91.57 22 port [tcp/*] succeeded!
nutanix@NTNX-15SM65300246-A-CVM:10.4.91.56:~$

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).

You may also like...

Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jai

Shall we do the same command from PC VM?

2
0
Would love your thoughts, please comment.x
()
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!

Pin It on Pinterest