View Single Post
Old 21/03/2019, 01:44 AM   #17
Kalcor
SA-MP Developer
 
Join Date: Apr 2005
Posts: 1,178
Reputation: 2865
Default Re: Servers are getting attacked

If you don't need South American players, this should fend off most of the attack
Code:
/sbin/iptables -A INPUT -s 180.0.0.0/8 -j DROP
/sbin/iptables -A INPUT -s 181.0.0.0/8 -j DROP
/sbin/iptables -A INPUT -s 190.0.0.0/8 -j DROP
/sbin/iptables -A INPUT -s 200.0.0.0/8 -j DROP
/sbin/iptables -A INPUT -s 201.0.0.0/8 -j DROP
How to track queries in the server log? Add this to server.cfg
Code:
logqueries 1
You can monitor the server queries by tailing the server log
Code:
user@host:~/samp03$ tail -f server_log.txt | grep "query"
Kalcor is offline   Reply With Quote