Starting a Teamspeak 3 Server on CentOS 6.4

Run the following commands to install a Teamspeak 3 server.

# Secure Iptablesiptables -Fiptables -Xiptables -t nat -Fiptables -t nat -Xiptables -t mangle -Fiptables -t mangle -Xiptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPUT ACCEPT# Teamspeakiptables -I INPUT -p udp --dport 9987 -j ACCEPTiptables -I INPUT -p udp --sport 9987 -j ACCEPTiptables -I INPUT -p tcp --dport 30033 -j ACCEPTiptables -I INPUT -p tcp --sport 30033 -j ACCEPTiptables -I INPUT -p tcp --dport 10011 -j ACCEPTiptables -I INPUT -p tcp --sport 10011 -j ACCEPT# HTTP(s)iptables -I INPUT -p tcp --dport 80 -j ACCEPTiptables -I INPUT -p tcp --sport 80 -j ACCEPTiptables -I INPUT -p tcp --dport 443 -j ACCEPTiptables -I INPUT -p tcp --sport 443 -j ACCEPT# SSHiptables -I INPUT -p tcp --dport 22 -j ACCEPTiptables -I INPUT -p tcp --sport 22 -j ACCEPT# DNSiptables -I INPUT -p udp --dport 53 -j ACCEPTiptables -I INPUT -p udp --sport 53 -j ACCEPTservice iptables save && service iptables restart# Update systemyum -y update# Add Teamspeak useruseradd teamspeak# Download, unzip and cleanup Teamspeakcd /home/teamspeakwget xvfz teamspeak3-server_linux-amd64- teamspeak3-server_linux-amd64/* `pwd`rm -rf teamspeak3-server_linux-amd64 && rm -rf teamspeak3-server_linux-amd64- Add chkconfig support to startup file and link to binarysed -i 's/# All rights reserved/# All rights reserved/n# chkconfig: 2345 99 00/g' ts3server_startscript.shln -s /home/teamspeak/ /etc/init.d/teamspeak# Change permissions of Teamspeakchown -R teamspeak:teamspeak /home/teamspeakchown -R teamspeak:teamspeak /etc/init.d/teamspeak# Remount shared memorymount -t tmpfs tmpfs /dev/shm# Change to Teamspeak user and run serversu teamspeak./ startecho "Your Teamspeak URL is: `curl`"

Want to contribute?

You could earn up to $300 by adding new articles

Submit your article
Suggest an update
Request an article

No comments

Powered by Blogger.