PDA

View Full Version : auto ban fake clients



feanor
5th April 2016, 12:34
anyone have idea for this ? example if there is 5 same ips on server ban automaticly with iptables ?

maxdamage99
5th April 2016, 12:43
iptable - protection for ddos "getstatus"
Your problem:
https://killtube.org/showthread.php?1767-Q3-FIX-Q3-fake-clients-fix&highlight=fake+clients
p.s: WITH LIBCOD!

feanor
5th April 2016, 12:49
kick is not solution its fucking my traffic and players cant join

IzNoGoD
5th April 2016, 12:52
Use the search function and find this
https://killtube.org/showthread.php?1767-Q3-FIX-Q3-fake-clients-fix

feanor
5th April 2016, 13:02
you meant this right ?


iptables -N CQUERY-BLOCK
iptables -A CQUERY-BLOCK -m recent --set --name cblocked-hosts -j DROP
iptables -N CQUERY-CHECK
iptables -A CQUERY-CHECK -p udp -m string ! --string "connect" --algo bm --from 32 --to 39 -j RETURN
iptables -A CQUERY-CHECK -m recent --update --name cblocked-hosts --seconds 30 --hitcount 1 -j DROP
iptables -A CQUERY-CHECK -m hashlimit --hashlimit-mode srcip --hashlimit-name getstatus --hashlimit-above 2/second -j CQUERY-BLOCK
iptables -A INPUT -p udp --dport 27960:29000 -j CQUERY-CHECK


its not blocking sometimes and still 2 fake clients can come.. how can ban auto ? that fucking hosting service makes me mad

maxdamage99
7th April 2016, 16:10
Iznogod, repost omg :)