Amazon EC2实例 - Play Framework连接 [英] Amazon EC2 instance - Play Framework connectivity

查看:206
本文介绍了Amazon EC2实例 - Play Framework连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个EC2实例,并添加了所有TCP和UDP端口。 ICMP也...开始我的播放应用程序与端口9000和80,都没有解决。应用程序启动,我可以从实例连接到它,但我不能从外部连接到它。



telnet instance_dns_name 9000失败,而telnet instance_dns_name 3389有效。



我不知道我缺少什么。同样的问题也发生在微软的Azure。

解决方案

还有一件很重要的事情...



如果您有Amazon EC2实例 Debian Ubuntu - 默认情况下,它们没有内部防火墙( iptables p>

另一方面, RedHat Enterprise 具有防火墙,如果您想正常工作,可以打开iptables中的适当端口或禁用 iptables - 您的选择。



我希望完全停用 iptables ,因为您已拥有与 iptables 角色相同的Amazon安全组。


I created an EC2 instance and added ALL TCP and UDP ports. ICMP also... Started my play application with both port 9000 and 80, neither worked out. The application starts, I can connect to it from the instance but I cannot connect to it from outside.

telnet instance_dns_name 9000 fails whereas telnet instance_dns_name 3389 works.

I don't know what I am missing. The same issue happened in Microsoft's Azure too. May it be about the region?

解决方案

One more important thing...

If you have Amazon EC2 instance of Debian or Ubuntu - by default, they do not have internal firewall (iptables)

On the other hand, RedHat Enterprise edition DO HAVE firewall and if you want to work properly, you can open the proper ports in iptables or disable iptables - your choice.

I prefer to disable completely iptables since you already have Amazon Security Groups that are with the same role as iptables.

这篇关于Amazon EC2实例 - Play Framework连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆