Page 1 of 1

Teamcity blocked externally

Posted: 2017/04/21 05:56:21
by berniefitz
Hi,

Firstly I'm a CentOS newbie.

I am trying to view my teamcity (https://www.jetbrains.com/teamcity/)installation externally.

I followed the installation instructions at jetbrains and everything seems to be up and running fine. I have browsed the teamcity site on my server at mydomain.com:8112 (I changed the custom port for testing from 8111 to 8112) and it seems to be working correctly.

When I try and view the site externally I just get timed out.

I have checked my firewall rules as follows:

Code: Select all

firewall-cmd --state
running
firewall-cmd --get-default-zone
public
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources:
  services: dhcpv6-client http https ssh
  ports: 443/tcp 80/tcp 8111/tcp 8112/tcp
  protocols:
  masquerade: no
  forward-ports:
  sourceports:
  icmp-blocks:
  rich rules:

I have set tomcat connector to port 8112 in the <TeamCity>/conf/server.xml file as well/

From this point I'm not sure what I need to change in order to see the site?

Please let me know what other information is required to figure this out and I'll post accordingly.

Thanks in advance

Re: Teamcity blocked externally

Posted: 2017/04/21 10:33:45
by TrevorH
If you've checked your own firewalld rules and the right port is allowed access and you have run ss -antup | grep 8112 and it is listening on other than 127.0.0.1 only then it's likely that your hoster has an external firewall that's blocking the port.

Re: Teamcity blocked externally

Posted: 2017/04/21 12:24:52
by berniefitz
Looks like firewall-cmd was blocking the connection after all.

Thanks for your help (I'm sure I'll be back) :)