简体   繁体   中英

netcat getting connection timeout to specific ports alone

I am trying to connect from my kubernetes cluster to a port which is used by nginx service running on abc server. The command which I used is nc -v <server-ip> 8080 . I could see the below output

Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection timed out.

But when I try to connect to http port (80) on the same abc server, it got connected.

nc -v <server-ip> 80
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to <server-ip>:80.

port in listen mode on server abc:

netstat -alpn | grep 8080
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      2316/nginx: master

What could be the reason for this issue? How can I debug this issue? It would be really helpful if someone suggests me how to find the root cause for this issue. Thanks in advance

After adding outbound traffic rule in security groups this issue if fixed

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM