12-21-2013, 10:10 AM
![[Image: 5TLQK.png]](http://puu.sh/5TLQK.png)
Okay, this tutorial will be showing you how to install Config Server Firewall to work with your MyBB forum.
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:
You will need ROOT access to your server, and your OS must be supported by CSF.
Login via
If you did it correctly you should see the following.
![[Image: a62aa47b51.png]](http://puu.sh/54gMU/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.
You need nano to edit files.
Installing nano is very simple.
Now find each of these lines one by one.
Edit their values to the following.
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.
Now find these lines.
Change the values to the following.
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.
[To see links please register here]
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:
[To see links please register here]
You will need ROOT access to your server, and your OS must be supported by CSF.
Login via
[To see links please register here]
and run these commands to install CSF.Quote:rm -fv csf.tgz
wget[To see links please register here]
tar -xzf csf.tgz
cd csf
sh install.sh
If you did it correctly you should see the following.
![[Image: a62aa47b51.png]](http://puu.sh/54gMU/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.
Hidden Content