Teamcity blocked externally

Issues related to configuring your network
Post Reply
berniefitz
Posts: 2
Joined: 2017/04/21 05:24:17

Teamcity blocked externally

Post by berniefitz » 2017/04/21 05:56:21

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
Last edited by berniefitz on 2017/04/21 10:44:54, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Teamcity blocked externally

Post by TrevorH » 2017/04/21 10:33:45

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.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

berniefitz
Posts: 2
Joined: 2017/04/21 05:24:17

Re: Teamcity blocked externally

Post by berniefitz » 2017/04/21 12:24:52

Looks like firewall-cmd was blocking the connection after all.

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

Post Reply