Login Register




The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.


MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. filter_list
Author
Message
MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #1
Okay, this tutorial will be showing you how to install Config Server Firewall to work with your MyBB forum.
http://configserver.com/cp/csf.html

This will help you kill ddos attacks before they can do any damage, block spam, and http floods.
You can find a list of all the features here: http://configserver.com/cp/csf.html


You will need ROOT access to your server, and your OS must be supported by CSF.

Login via SSH and run these commands to install CSF.

Quote:rm -fv csf.tgz
wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

If you did it correctly you should see the following.
[Image: a62aa47b51.png]

Part one.
Now we are going to start configuring the server to block DDoS, SYN, and HTTP attacks.

So now we want to open this config file.
Quote:cd /etc/csf
nano csf.conf

You need nano to edit files.
Installing nano is very simple.
Quote:yum install nano

Now find each of these lines one by one.
Quote:CT_LIMIT
CT_SKIP_TIME_WAIT
SYNFLOOD

Edit their values to the following.
Quote:CT_LIMIT = "50"
CT_SKIP_TIME_WAIT = "1"
SYNFLOOD = "1"

That's all there is to it!
You will get an email when an attacking IP is blocked.

Part two.
Blocking known spammers

Now we want to open the config file again.
Quote:cd /etc/csf
nano csf.conf

Now find these lines.
Quote:LF_DSHIELD = "0"
LF_SPAMHAUS = "0"
LF_BOGON = "0"

Change the values to the following.
Quote:LF_DSHIELD = "86400"
LF_SPAMHAUS = "86400"
LF_BOGON = "86400"

This will block know spammers and spam addresses from BOGON, Dshield, and Spamhaus's lists.
Bogon isn't really that important, but it helps.


Now once this is finished your forum is protected from DDoS and spam attacks. Smile


Disable testing mode.
Spoiler:
In the config file find this line.
Quote:TESTING = "1"

and change the one to a zero.

Now restart the service.

Quote:service csf restart
service lfd restart

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #2
Kirito, thanks for this tutorial that one in every hundred people will undersstandWink

Nice one though.
Aim: auth@basedgod.co


[Image: first_animat_by_authworks-d6v9j2u.gif]

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #3
(10-31-2013, 08:36 AM)Villain Wrote: Kirito, thanks for this tutorial that one in every hundred people will undersstandWink

Nice one though.

D:
It's really simple.

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #4
HQ tutorial bro.
Keep up the good work.

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #5
Nice tutorial.
I'm more than likely never going to use it but a lot of people will probably be thankful for it.

Keep up the quality tutorials, man!
[Image: A3sy7H7.png]
Before you start a war, you better know what you're fighting for. -The Cab

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #6
Thanks for the tutorial. Appreciate it.

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #7
Nice tutorial, Kirito my man. DDoS is a bitch.

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #8
(11-04-2013, 06:03 PM)Blue Wrote: Nice tutorial, Kirito my man. DDoS is a bitch.

DDoS is indeed a bitch.
When you posted on my thread it made me feel like a school girl. <3

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #9
Gonna try this for fun. Thank a bunch for th tutorial, Kirito. Smile
[Image: a319ef9581853.560e3236d2b0b.png]

Reply

RE: MyBB - Config Server Firewall - Advanced DDoS And Spam Protection. #10
(11-12-2013, 12:34 PM)Exiled Wrote: Gonna try this for fun. Thank a bunch for th tutorial, Kirito. Smile

Let me know how it goes.

Reply