Eu descobri que o firewall da minha organização estava bloqueando as conexões de saída para essas portas (22000 e outras que eu tentei).
Eu vi muitos posts sobre o assunto, mas nenhuma das soluções sugeridas parece resolver o meu problema.
Estou usando programas simples de cliente-cliente de eco para testar a conectividade com a instância do Amazon EC2 executando o Ubuntu 12 de 64 bits. ( Java EchoServer ; Java EchoClient )
Aqui estão os fatos:
Eu criei uma regra no grupo de segurança que permite o TCP de entrada na porta
22000 por TCP Port (Service) 22000-22001 Source 0.0.0.0/0
O firewall do Ubuntu está desativado em sudo ufw disable
EchoClient [amazon-instance-dns-addr] 22000
de outra instância do Amazon EC2, ela funciona bem conforme o esperado [amazon-instance-dns-addr]
da máquina externa, recebo respostas (ativei a regra de ICMP no grupo de segurança também). EchoClient [amazon-instance-dns-addr] 22000
da máquina externa, ele não consegue se conectar. Então, o item 5 é o problema. Eu não vejo o que estou perdendo. Eu apreciaria alguma ajuda aqui.
Atualização: iptables -L
output.
Chain INPUT (policy ACCEPT)
target prot opt source destination
ufw-before-logging-input all -- anywhere anywhere
ufw-before-input all -- anywhere anywhere
ufw-after-input all -- anywhere anywhere
ufw-after-logging-input all -- anywhere anywhere
ufw-reject-input all -- anywhere anywhere
ufw-track-input all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ufw-before-logging-forward all -- anywhere anywhere
ufw-before-forward all -- anywhere anywhere
ufw-after-forward all -- anywhere anywhere
ufw-after-logging-forward all -- anywhere anywhere
ufw-reject-forward all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ufw-before-logging-output all -- anywhere anywhere
ufw-before-output all -- anywhere anywhere
ufw-after-output all -- anywhere anywhere
ufw-after-logging-output all -- anywhere anywhere
ufw-reject-output all -- anywhere anywhere
ufw-track-output all -- anywhere anywhere
Chain ufw-after-forward (1 references)
target prot opt source destination
Chain ufw-after-input (1 references)
target prot opt source destination
Chain ufw-after-logging-forward (1 references)
target prot opt source destination
Chain ufw-after-logging-input (1 references)
target prot opt source destination
Chain ufw-after-logging-output (1 references)
target prot opt source destination
Chain ufw-after-output (1 references)
target prot opt source destination
Chain ufw-before-forward (1 references)
target prot opt source destination
Chain ufw-before-input (1 references)
target prot opt source destination
Chain ufw-before-logging-forward (1 references)
target prot opt source destination
Chain ufw-before-logging-input (1 references)
target prot opt source destination
Chain ufw-before-logging-output (1 references)
target prot opt source destination
Chain ufw-before-output (1 references)
target prot opt source destination
Chain ufw-reject-forward (1 references)
target prot opt source destination
Chain ufw-reject-input (1 references)
target prot opt source destination
Chain ufw-reject-output (1 references)
target prot opt source destination
Chain ufw-track-input (1 references)
target prot opt source destination
Chain ufw-track-output (1 references)
target prot opt source destination
Tags networking amazon-ec2