Basic connectivity tests through firewalls

  Snippets, bash snippets, Network

Possible telnet test output for another database and their meaning is listed below:

a) Result when firewall is blocking connection for a IP and port combination:
    >telnet 20.25.127.140 3306
    Trying 20.25.127.140...
    telnet: Unable to connect to remote host: Connection timed out

b) Result when firewall is allowing connections through for IP address and port number but listener on
 remote host is down:
    >telnet 20.25.127.140 3306
    Trying 20.25.127.140...
    telnet: Unable to connect to remote host: Connection refused

c) Result when firewall is allowing connections through for IP address and port number and listener on 
remote host is running:
    >telnet 32.82.12.177  3306
    Trying 32.82.12.177...
    Connected to 32.82.12.177.
    Escape character is '^]'.