????????? TeamSpeak ???????? ?? Debian Buster

??????? ?????? ? ???????????? ??? TeamSpeak

groupadd ts3
useradd -g ts3 -d /srv/srv3 -s /bin/bash -m ts3
passwd ts3

????????? ?????? ??? ????????????? TeamSpeak

su ts3
cd /srv/ts3/
wget http://dl.4players.de/ts/releases/3.0.13.8/teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2
tar xjf teamspeak3-server_linux_amd64-3.0.13.8.tar.bz2
cp -r teamspeak3-server_linux_amd64/* .

??????? ???? ?????????

./ts3server createinifile=1

? ????? ???????? ???? ts3server.ini

?????? ??????????? ?????

vim ts3server.ini:

default_voice_port=9988
filetransfer_port=30034
query_port=10012

??????????????? ?????? ????? ?? ??????????? ? ????????

mv ts3server ts3server2


vim ts3server_startscript.sh:

COMMANDLINE_PARAMETERS="inifile=ts3server.ini"
BINARYNAME="ts3server2"


vim ts3server_minimal_runscript.sh:

./ts3server2 $@


./ts3server_minimal_runscript.sh inifile=ts3server.ini

?????????? ????-?????? ?????, ?????? ? ?????
???????? ctrl + c

??????????? ????????? ?????? ??? ??????? ???????
vim /etc/init.d/ts3server:

#! /bin/sh
### BEGIN INIT INFO
# Provides:          teamspeak
# Required-Start:    networking
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: TeamSpeak Server Daemon
# Description:       Starts/Stops/Restarts the TeamSpeak Server Daemon
### END INIT INFO

set -e

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Team Speak Server"
NAME=ts3server
USER=ts3
DIR=/srv/ts3/
DAEMON=$DIR/ts3server_startscript.sh
SCRIPTNAME=/etc/init.d/$NAME

test -x $DAEMON || exit 0

cd $DIR
sudo -u ts3 ./ts3server_startscript.sh $1


chmod u+x /etc/init.d/ts3server

????????? ? ????????????

systemctl enable ts3server


/etc/init.d/ts3server start

????????????? ?????? ??? ?????????

aptitude update
aptitude install iptables-persistent

????????? ?????

iptables -I INPUT 1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -I INPUT 2 -d 100.1.1.1 -i eth0 -p udp --dport 9988 -j ACCEPT
iptables -I INPUT 3 -d 100.1.1.1 -i eth0 -p tcp -m state --state NEW -m multiport --dports 10012,30034 -j ACCEPT

????????? ???????

/etc/init.d/netfilter-persistent save

???????????? ? ??????? TeamSpeak ? ??????? ? ???????, ????????? ????? ??? ??????? ts3server_minimal_runscript.sh
?????? ???? ?????????? (?????)
? ??????? TeamSpeak ??????? ??????????? -> ??????????????
?????? ??????? «?? ?????????» -> ??????????????
??????????? ???? ?????????? ?????????????? ??????? ? ???????? ?????

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *