Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想确保我可以连接到支持 JDBC 的源,但我想确保我的防火墙规则设置正确以允许这样做。如何确保我的网络基础设施正确设置以进行连接?
验证这一点的一种方法是使用与代理 VM 的 SSH 会话并使用ping命令(或类似的netstat/ traceroute)来确保到您的主机的简单路由可用。
ping
netstat
traceroute
这看起来像:
ssh
ping my.hostname.com:PORT
如果no route to host返回,这意味着您的防火墙规则设置不正确,因此代理 VM 所有者将需要更改配置以允许流量。
no route to host
如果X bytes received from my.hostname.com返回通知指示,这意味着您可以访问主机并且您的防火墙规则已正确设置。
X bytes received from my.hostname.com