0 votes
1 view
in AWS by (8.9k points)

I have a Tomcat 7 instance running on port 8080, and would like to run Jenkins on a different port. Another alternative would be to change the Jenkins URL.

How do I add an entry to the list of allowed ports?

I have tried running: sudo /sbin/iptables -A INPUT -p tcp --dport 8181 -j ACCEPT, but in the AWS console it shows only these ports:

0 - 65535       0.0.0.0/0

22 (SSH)        0.0.0.0/0

80 (HTTP)       0.0.0.0/0

443 (HTTPS)     0.0.0.0/0

3306 (MYSQL)    0.0.0.0/0

8080 (HTTP*)    0.0.0.0/0

Is it possible to add a HTTP port (8181) via the AWS console?

1 Answer

0 votes
by (18.5k points)

1. In your EC2 dashboard, find the security group column of your instance.

2. Click on the security group 

image

3. Click on inbound, and then click on edit. 

image

4. In port range input 8181 and source the IP you want to allow incoming access to the instance. then click on apply changes.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...