Advertisement
MertcanGokgoz

teamspeak install

Dec 30th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. iptables -F
  2. iptables -X
  3. iptables -t nat -F
  4. iptables -t nat -X
  5. iptables -t mangle -F
  6. iptables -t mangle -X
  7. iptables -P INPUT DROP
  8. iptables -P FORWARD DROP
  9. iptables -P OUTPUT ACCEPT
  10. iptables -I INPUT -p udp --dport 9987 -j ACCEPT
  11. iptables -I INPUT -p udp --sport 9987 -j ACCEPT
  12. iptables -I INPUT -p tcp --dport 30033 -j ACCEPT
  13. iptables -I INPUT -p tcp --sport 30033 -j ACCEPT
  14. iptables -I INPUT -p tcp --dport 10011 -j ACCEPT
  15. iptables -I INPUT -p tcp --sport 10011 -j ACCEPT
  16. iptables -I INPUT -p tcp --dport 80 -j ACCEPT
  17. iptables -I INPUT -p tcp --sport 80 -j ACCEPT
  18. iptables -I INPUT -p tcp --dport 443 -j ACCEPT
  19. iptables -I INPUT -p tcp --sport 443 -j ACCEPT
  20. iptables -I INPUT -p tcp --dport 22 -j ACCEPT
  21. iptables -I INPUT -p tcp --sport 22 -j ACCEPT
  22. iptables -I INPUT -p udp --dport 53 -j ACCEPT
  23. iptables -I INPUT -p udp --sport 53 -j ACCEPT
  24.  
  25. service iptables save && service iptables restart
  26. yum -y update
  27. useradd teamspeak
  28.  
  29. cd /home/teamspeak
  30. wget http://ftp.4players.de/pub/hosted/ts3/releases/3.0.7.1/teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
  31. tar xvfz teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
  32. mv teamspeak3-server_linux-amd64/* `pwd`
  33. rm -rf teamspeak3-server_linux-amd64 && rm -rf teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
  34.  
  35. sed -i 's/# All rights reserved/# All rights reserved\n# chkconfig: 2345 99 00/g' ts3server_startscript.sh
  36. ln -s /home/teamspeak/ts3server_startscript.sh /etc/init.d/teamspeak
  37.  
  38. chown -R teamspeak:teamspeak /home/teamspeak
  39. chown -R teamspeak:teamspeak /etc/init.d/teamspeak
  40.  
  41. mount -t tmpfs tmpfs /dev/shm
  42. su teamspeak
  43. service teamspeak start
  44.  
  45. echo "Your Teamspeak URL is: `curl ipv4.icanhazip.com`"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement