[network][easy case]troubleshoting the connection to a remote server
background & issue
I deployed a minio server on an ECS(a vps in alibaba), but I couldn't access it on local PC. It's an easy case but very common when connecting to a new server. so I record my brief procedure here in case you come into similar situation.
steps how I trouble shot and fix it
- check the connection
of course it couldn't connect.telnet <ip> <port> - check the port status is OK on remote server
it's healthy.netstat -anp | grep <port> - config the 'security group rule' on console(aliyun)
here I opened all ports for testing convenience. but failed when checking the connectiong again - check the firewall in remote server
login in server and
then the connection worked.sudo ip6tables -L -n -v sudo iptables -A INPUT -p tcp --dport <port> -j ACCEPT # add a rule for allowing traffic via <port>
浙公网安备 33010602011771号