Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -F
- iptables -X
- iptables -t nat -F
- iptables -t nat -X
- iptables -t mangle -F
- iptables -t mangle -X
- iptables -P INPUT DROP
- iptables -P FORWARD DROP
- iptables -P OUTPUT ACCEPT
- iptables -I INPUT -p udp --dport 9987 -j ACCEPT
- iptables -I INPUT -p udp --sport 9987 -j ACCEPT
- iptables -I INPUT -p tcp --dport 30033 -j ACCEPT
- iptables -I INPUT -p tcp --sport 30033 -j ACCEPT
- iptables -I INPUT -p tcp --dport 10011 -j ACCEPT
- iptables -I INPUT -p tcp --sport 10011 -j ACCEPT
- iptables -I INPUT -p tcp --dport 80 -j ACCEPT
- iptables -I INPUT -p tcp --sport 80 -j ACCEPT
- iptables -I INPUT -p tcp --dport 443 -j ACCEPT
- iptables -I INPUT -p tcp --sport 443 -j ACCEPT
- iptables -I INPUT -p tcp --dport 22 -j ACCEPT
- iptables -I INPUT -p tcp --sport 22 -j ACCEPT
- iptables -I INPUT -p udp --dport 53 -j ACCEPT
- iptables -I INPUT -p udp --sport 53 -j ACCEPT
- service iptables save && service iptables restart
- yum -y update
- useradd teamspeak
- cd /home/teamspeak
- wget http://ftp.4players.de/pub/hosted/ts3/releases/3.0.7.1/teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
- tar xvfz teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
- mv teamspeak3-server_linux-amd64/* `pwd`
- rm -rf teamspeak3-server_linux-amd64 && rm -rf teamspeak3-server_linux-amd64-3.0.7.1.tar.gz
- sed -i 's/# All rights reserved/# All rights reserved\n# chkconfig: 2345 99 00/g' ts3server_startscript.sh
- ln -s /home/teamspeak/ts3server_startscript.sh /etc/init.d/teamspeak
- chown -R teamspeak:teamspeak /home/teamspeak
- chown -R teamspeak:teamspeak /etc/init.d/teamspeak
- mount -t tmpfs tmpfs /dev/shm
- su teamspeak
- service teamspeak start
- echo "Your Teamspeak URL is: `curl ipv4.icanhazip.com`"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement