New Jenkins 2.7.3 server on CentOS 7 needed firewall disabled for web access (would like to be more restrictive).

13 views
Skip to first unread message

Steve K

unread,
Oct 16, 2019, 12:53:42 PM10/16/19
to Jenkins Users
Recently, I installed Jenkins 2.7.3 on a new VM running CentOS 7.  The older (2.7.3) version was selected for consistency with an existing server that this new server will replace.
The install appeared to be fine.  Full disclosure, there is an `/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled` line shown with /etc/init.d/jenkins status, but I think that is a different topic.

On the CentOS machine, I did execute `sudo firewall-cmd --zone=public --permanent --add-port=8080/tcp` but, apparently, that was not sufficient to allow access to the jenkins page from any machine other than the server itself.
In a "brute-force" approach, I disabled the firewall and now I am able to access the jenkins page from other machines on my network.
I don't want to keep the server open like that though.

Could you please suggest what I might need to do to limit access through the firewall?

Thanks in advance.

Reply all
Reply to author
Forward
0 new messages