Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 2 of 2
  1. #1
    Join Date
    August 2013
    Posts
    1

    Server running, Cannot Connect

    I am running a Ts server on a centos VPS. It has been up for the past 30 days until today when the host had to reboot the node. The server is running and I receive confirmation that it is running through the command line and I am able to connect to telnet and login to make changes. I figured there was an error so I backed up my files and reinstalled my OS and attempted to rerun the server and received the same results. Once again I reinstalled my OS and tried to just run a new server without any NPL license or anything and the set up went through without any issues but I still was not able to connect. No UDP ports are blocked and all of the proper ports are forwarded. I have tried installing Ts servers on other vps's that I have and they have worked perfectly. This is my only server that I have used a NPL license on so im imagining it could be the cause even when its not added to the server after reinstalling.

    512 MB Ram with 1024 vSwap
    Centos 6.4 32 Bit
    Fresh installation

    Any input is appreciated. And Yes I looked from top to bottom on these forums.

  2. #2
    Join Date
    February 2012
    Location
    Germany
    Posts
    577
    You say you forwarded the proper ports: where and how did you do this? From your description I get the impression you are installing on a datacenter-hosted publicly available machine. The only thing to to in this case is opening ports in the firewall, but no port forwarding like in a home net from your router to your local machine. In case of Centos 6, this is done by extending the /etc/sysconfig/iptables file. Additionally, some vps hosters provide a firewall on the host system that can be configured as well, but usually this is not recommended.

    For Teamspeak, I extended the default CentOS 6 firewall configuration in /etc/sysconfig/iptables like this:

    Code:
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    :SSH - [0:0]
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -i lo -j ACCEPT
    -A INPUT -i tun+ -j ACCEPT
    
    # throttle ssh connects to a maximum of 3 within 311 seconds from the same IP
    -A SSH -m recent --name SSH --update --seconds 311 --hitcount 3 -j DROP
    -A SSH -m recent --name SSH --set -j ACCEPT
    
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j SSH
    
    # completely block sites that tried to hack our ssh port
    -A INPUT -m recent --name SSH --rcheck --seconds 311 --hitcount 3 -j DROP
    
    # web server
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    
    # dns
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT
    
    # mail, imap, pop
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 587 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 993 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 995 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 4190 -j ACCEPT
    
    # teamspeak3
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 41144 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 30033 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 10011 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 9987 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 9999 -j ACCEPT
    
    -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A FORWARD -p icmp -j ACCEPT
    -A FORWARD -i lo -j ACCEPT
    -A FORWARD -i tun+ -j ACCEPT
    
    #-A INPUT -j LOG --log-level info --log-prefix "ipt-drop "
    -A INPUT -j REJECT --reject-with icmp-host-prohibited
    -A INPUT -j DROP
    
    -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    -A FORWARD -j DROP
    COMMIT

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Server is running but can't connect
    By Asyndeton in forum Linux / FreeBSD
    Replies: 1
    Last Post: October 21st, 2014, 07:56 PM
  2. Server running but can't connect
    By Numens.de in forum Server Support
    Replies: 5
    Last Post: April 3rd, 2012, 08:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •