We have server in AWS that's trying to connect over TCP to an application in an on premise server but fails.
Initially we thought it might be routing/firewall issues so we tried to connect to that application using telnet on the specific port it's running while running tcpdump
on the on-premise server.
What we (think) see is that we get the telenet connection request but nothing is sent back:
On the AWS server we run: telnet ON_PREMISE_IP PORT
On the On-Premise server we run tcpdump -i INTERFACE -n port PORT
And we see:
15:02:49.785795 IP AWS_IP.RANDOM_PORT > ON_PREMISE_IP.int-rcv-cntrl: Flags [S], seq 3124225083, win 62727, options [mss 1350,sackOK,TS val 576158266 ecr 0,nop,wscale 7], length 0
And on the AWS side we get:
telnet: Unable to connect to remote host: No route to host
I've verified that we're listening on that port by running netstat:
sudo netstat -ltnp | grep PORT
tcp 0 0 ON_PREMISE_IP:PORT 0.0.0.0:* LISTEN PID/java
In addition to that we're able to establish connection from the on premise server to that same AWS server.
The on premise server is running CentOS 8 with kernel 4.18.0-305.19.1.el8_4.x86_64
I've no idea how to continue from here :/
Update-1: I've used netcat
to listen to that port instead of our own Java app but the issue persist.