I have Deployed Jenkins On a Server. The Server runs a CentOS Linux 8 as Operating system. I Wanted to access the Jenkins from another Device (laptop/PC) which is already in same network. but firewall restricts me in doing this. whenever i disable firewall I’m able to access the Jenkins but disabling firewall isn’t option for me what else can i do to resolve this problem.
2
Answers
Well you need to open the ports used by Jenkins in the Centos Firewall. As I understand Jenkins uses ports 8080 and 8443 by default. See this guide on how to open and close ports in Centos 8
You can open the ports used by Jenkins/Tomcat using this command:
After doing that, you have to reload the FirewallD tables using:
The
--perm
option makes your rule permanent upon reboot.