Hello everyone, I cannot open ports 8080 and all others, on AWS EC2, ubuntu is installed, the security group has full access for everyone to port 8080, all firewalls in ubunt are disabled (ufw, iptables is not active), but the port is closed and that's it. .. Only two ports work 22, 80, please tell me what I did wrong?
2 answers
The steps are as follows:
- See which Security Group is installed for this ec2 instace ( EC2 Dashboard-> Instaces ).
For this Security Group ( EC2 Dashboard-> Security Groups ) add and save the inbound rule of this content: Custom TCP Rule TCP 8080 Anywhere 0.0.0.0/0
Then by ssh go to instace. If apache web server is installed, edit the following configuration file: /etc/apache2/ports.conf . Add the line Listen 8080 to it .
- Restart apache: sudo service apache2 restart
- Make sure the port is added: netstat -lntup
|
Thanks, I figured out it turns out that just no one listened to the port, and on the port check sites, it turns out that the port is closed, in fact, they just cannot recognize when the port is closed and when no one is listening ..
- @StateItPrimitive is not, it was exactly the answer to the question. - Pavel Mayorov
|