Hello all,
Je possède un VPS qui fonctionne sous Debian GNU/Linux 7 64b.
J’aimerai appliquer (traduire) les règles suivante savec IPTABLES
[size=70][color=#004000]Default voice port (UDP in): 9987
Default filetransfer port (TCP in): 30033
Default serverquery port (TCP in): 10011
Default tsdns port (TCP in): 41144
Default weblist port (UDP out): 2011-2110 (first available port in given range)
In addition to that, packets originating from or sent to accounting.teamspeak.com:2008 (TCP) and weblist.teamspeak.com:2010 (UDP) must not be blocked. The local port for these connections is randomly assigned by the operating system when the connection is established. Please note that we do not guarantee that these DNS names will resolve to the same IP Address at any point in time. These services have changed IP addresses in the past and will continue to do so in the future.[/color][/size]
Le code mis en place:
[size=70][color=#004000]# Autoriser premier serveur Teamspeak numero 1(9987)
iptables -t filter -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 9987 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 9987 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 9987 -j ACCEPT
echo - Premier serveur Teamspeak 9987 autorise : [OK]
Autoriser serveur Teamspeak numero 2 (9988)
iptables -t filter -A INPUT -p udp --dport 9988 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 9988 -j ACCEPT
echo - Deuxieme serveur Teamspeak 9988 autorise : [OK]
#Autoriser la license Teamspeak
iptables -A INPUT -p tcp --source accounting.teamspeak.com -j ACCEPT
iptables -A OUTPUT -p tcp --source accounting.teamspeak.com -j ACCEPT
Autoriser les regles generales du process Teamspeak (optionnel)
iptables -t filter -A INPUT -p udp --dport 2010 -j ACCEPT
iptables -t filter -A OUTPUT -p udp --dport 2010 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 30033 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 30033 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 10011 -j ACCEPT
iptables -t filter -A OUTPUT -p tcp --dport 10011 -j ACCEPT
iptables -t filter -A INPUT -p tcp --dport 41144 -j ACCEPT[/color][/size]
Ces règles ne doivent pas s’exécuter correctement car le service teamspeak bloque au démarrage:
erreur :
TS3ANetwork::Connect failed error: 110 , Unable to connect to primary address, trying secondary
Si je retire les règles je n ai aucun souci, le serveur démarre correctement.
N’étant pas ç l’aise avec IPTABLES je vous sollicite.
Merci par avance.