Teamspeak 3 Serveradmin Quarry auf ip Whitelist setzen?

Hambi10

Member
Jul 10, 2016
2
0
33
Hey I have a problem, I am a Free Teamspeak 3 hoster www.Hambitv.de My problem is I have somewhere a security hole in my side and someone managed to read out the Config.php file whereby he can read Serverquarry access data now I wanted to ask if it is somehow possible to limit the whole on ips, that only I with my Ip can access the serverquarry login and I do not want to make an entry in the firewall, where the port is made accessible only on the one IP, since others must use this port
 
Last edited by a moderator:

gamesbond

Member
Jul 21, 2015
103
13
53
First of all change query passwords and put an alphanumerical pass

Second u need an entry in firewall for block ips
 

pwn3r

Member
Jan 1, 2018
143
63
64
First, create a file iptables.conf and put this into the file:
Code:
iptables -A INPUT -s 127.0.0.1 -p tcp -m tcp --dport 10011 -j ACCEPT
iptables -A INPUT -s 127.0.0.2 -p tcp -m tcp --dport 10011 -j ACCEPT
iptables -A INPUT -s 127.0.0.3 -p tcp -m tcp --dport 10011 -j ACCEPT
iptables -A INPUT -s 127.0.0.4 -p tcp -m tcp --dport 10011 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 10011 -j DROP
Then, use this command:
iptables-restore < /home/iptables.conf

Make sure to replace 127.0.0.1/2/3/4 with the addresses that you want whitelisted ( for example GameTracker IPs and your own IP so that you can control your server via YatQa )
You can add more if you wish just by duplicating the line and replacing the IP address.
and change /home/iptables.conf with your current path ofc
 
Top