I'm trying to reach my server's FTP-port by its Elastic IP. I've configured the security group as follows:
Inbound
Type Protocol Port Range Destination
All traffic All All 10.0.0.0/8
Custom TCP Rule TCP 20 - 21 0.0.0.0/0
Custom TCP Rule TCP 2048 - 10240 0.0.0.0/0
Outbound
Type Protocol Port Range Destination
All traffic All All 0.0.0.0/0
But I still can not get a response, when FTP-ing from the outside. Running tcpdump
on the server, I see the connection come in:
108.53.86.X.60187 > 10.95.76.163.ftp: Flags [S], cksum 0xe8e3 (correct), seq 2617787548, win 65535, options [mss 1460,nop,wscale 6,sackOK,TS val 4094985480 ecr 0], length 0
The server replies right away too:
10.95.76.163.ftp > 108.53.86.X.60187: Flags [S.], cksum 0x79e2 (correct), seq 2393660903, ack 2617787549, win 17898, options [mss 8961,sackOK,TS val 2177008039 ecr 4094927043,nop,wscale 7], length 0
but the connecting client never receives the reply...
It must be something foolishly obvious, but I am at a loss... Any ideas? Thank you!
Update: I just tried ssh-ing out of the server into the external box -- successfully. However, the IP-address seen on the external box is different from the Elastic IP I tried to FTP into. Is this a manifestation of a problem with default routing? The server uses the same private igw as all other systems on the VPC, but none of them need to accept direct connections...