Raised This Month: $ Target: $400
 0% 

Block ddos steam Fail2Ban


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Knight Vision Systems
New Member
Join Date: Mar 2011
Old 03-21-2011 , 22:13   Re: Block ddos steam Fail2Ban
Reply With Quote #1

Group,

I'm trying to understand 1) how to implement this, 2) how this works.

In the IP Tables rules, the following is presented,

Code:
iptables -A INPUT -i eth0 -p udp --dport your_port -m length --length 28 -j REJECT_FLOOD28
Does the "your_port" part mean, the ports which my game servers are on? For example, 27015, 27016, etc?

Also, what part does the fail2ban program play in the equation?

Much thanks in advance!
Knight
Knight Vision Systems
http://www.knightvisionsystems.com
Knight Vision Systems is offline
Ubunter
New Member
Join Date: Nov 2013
Old 11-17-2013 , 13:35   Re: Block ddos steam Fail2Ban
Reply With Quote #2

Quote:
Originally Posted by Knight Vision Systems View Post
Group,

Code:
iptables -A INPUT -i eth0 -p udp --dport your_port -m length --length 28 -j REJECT_FLOOD28
Does the "your_port" part mean, the ports which my game servers are on? For example, 27015, 27016, etc?
Hi, sorry for late intervention, i just was googling, and arrived here...

Yes, here is to monitorize the port, but I have removed the port, to monitorize all, even, in my server I have just 5060, and 443 open... But I did:

Quote:
iptables -A INPUT -i eth0 -p udp -m length --length 28 -j
But I have a question:

In the jail conf, I'm missing the action, dose the action should be to deliver back to the iptables?? I have did:

Quote:
[ddos]
enabled = true
#port = 27015,27025,27050,28000,29000 ## I comminted out the port, to monitor all ports!
protocol = udp
filter = ddos
logpath = /var/log/messages
maxretry = 2
bantime = 60000
action = iptables[name=ddos-404-SLT] ## Dose this action here is correct??
Thank you in advance!
Ubunter is offline
shady2k2
Member
Join Date: Oct 2009
Old 11-04-2009 , 01:36   Re: Block ddos steam Fail2Ban
Reply With Quote #3

it works on debian??
shady2k2 is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 07-14-2010 , 22:43   Re: Block ddos steam Fail2Ban
Reply With Quote #4

for ubuntu 10.04

this line
Code:
logpath = /var/log/messages.log
should be
Code:
logpath = /var/log/messages
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 07-15-2010 , 21:19   Re: Block ddos steam Fail2Ban
Reply With Quote #5

Thank you for the tut
Mavrick4283 is offline
sphinx
Senior Member
Join Date: Jun 2005
Location: E.U. / localhost
Old 08-03-2010 , 13:06   Re: Block ddos steam Fail2Ban
Reply With Quote #6

the ddos.conf content as shown in this thread prevents fail2ban to start.
is anybody having a working ddos.conf?
sphinx is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 08-04-2010 , 14:12   Re: Block ddos steam Fail2Ban
Reply With Quote #7

my ddos.conf is same as in the first post, and it works just fine
you should change IN=eth0 to your own external interface, or interface where is server you running
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
sphinx
Senior Member
Join Date: Jun 2005
Location: E.U. / localhost
Old 08-05-2010 , 02:30   Re: Block ddos steam Fail2Ban
Reply With Quote #8

Code:
[Definition]

failregex = IPTABLES-FLOOD LENGTH (28|48): IN=eth0:0 OUT= MAC=[a-zA-F0-9:]+ SRC=<HOST> DST=([0-9]{1,3}\.?){4} LEN=28
fail2ban still fail to start with this ddos.conf
sphinx is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 08-05-2010 , 18:03   Re: Block ddos steam Fail2Ban
Reply With Quote #9

check your fail2ban.log
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
sphinx
Senior Member
Join Date: Jun 2005
Location: E.U. / localhost
Old 08-06-2010 , 01:25   Re: Block ddos steam Fail2Ban
Reply With Quote #10

nothing in /var/log/fail2ban.log
sphinx is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode