lonerunner
Verified User
- Joined
- Nov 16, 2010
- Messages
- 56
After i suffered with alot of brute force attacks i readed manual where i can have automatic ip blocking of attackers, this is instruction from here.
http://help.directadmin.com/item.php?id=380
In instructions it's required to change server iptables with one that came in instructions. Now i need to add another rule to my firewall that looks like this:
And when i add it output error of u32 module not loading.
Im runing centos 5.8 version, and in default iptables configuration module is loading and this rule works, but than i don't know how to add rule to block ip's of brute force attacks.
So to sumarize:
With centos iptables new firewall rule works but not brute force blocking from directadmin
In directadmin instructions and iptables from instructions, brute force attacks are blocked but when i add rule it's not working and output u32 module not loading.
Is there way that i can combine these 2 iptable configurations so i can have brute force attacks blocking ip's and runing new rule that works and with loaded modules?
http://help.directadmin.com/item.php?id=380
In instructions it's required to change server iptables with one that came in instructions. Now i need to add another rule to my firewall that looks like this:
# create chain
iptables -N quake3_ddos
# accept real client/player traffic
iptables -A quake3_ddos -m u32 ! --u32 "0x1c=0xffffffff" -j ACCEPT
# match "getstatus" queries and remember their address
iptables -A quake3_ddos -m u32 --u32 "0x20=0x67657473&&0x24=0x74617475&&0x25&0xff=0x73" -m recent --name getstatus --set
# drop packet if "hits" per "seconds" is reached
#
# NOTE: if you run multiple servers on a single host, you will need to higher these limits
# as otherwise you will block regular server queries, like Spider or QConnect
# e.g. they will query all of your servers within a second to update the list
iptables -A quake3_ddos -m recent --update --name getstatus --hitcount 5 --seconds 2 -j DROP
# accept otherwise
iptables -A quake3_ddos -j ACCEPT
#
#
# finally insert the chain as the top most input filter
# single server
# iptables -I INPUT 1 -p udp --dport 27960 -j quake3_ddos
And when i add it output error of u32 module not loading.
Im runing centos 5.8 version, and in default iptables configuration module is loading and this rule works, but than i don't know how to add rule to block ip's of brute force attacks.
So to sumarize:
With centos iptables new firewall rule works but not brute force blocking from directadmin
In directadmin instructions and iptables from instructions, brute force attacks are blocked but when i add rule it's not working and output u32 module not loading.
Is there way that i can combine these 2 iptable configurations so i can have brute force attacks blocking ip's and runing new rule that works and with loaded modules?