yusha
New member
@"DJB" @"Genesis" @"un4saken"
I am developing a web-server on CentOS7 for my client who runs an ISP in my country. The site is about file sharing with all the LAN users. As they can get 10MB/ps download and upload speed. The server is currently 3TB in size but we will expand it soon.
Now coming to the question, I am having DDoS Attack, and what can I do to protect the server?
I've looked through the internet and all I get is business plans who tells me to buy the service from them. But I want to protect the web server by myself. Also posted on serverfault but not getting any helpful post.
Any step by step guide will be very helpful. Also please refer any DDoS protection script if you can.
Edit from last post: by GigaGreg
Well guys, I have solved the issue a long time ago.. but I think it's better If I share the method which I used. Because this may help someone else in later.
I have disabled the SSH Logins and I only turn it on when I need to login through SSH by changing the config file using Webmin. And again disable SSH soon after I finish working on that. Obviously I have changed the port of Webmin to a secret one.
And I have also installed a shell script by which my server is Protected up to 15 Gbps.
By using this method I'm running my own dedicated Webserver (CentOS 7.x) without having any problem within last 1 year. :yahoo:
Here is the script and method how to use it. Cheers...:drinks:
Hit the Thank You button if this helps..
I am developing a web-server on CentOS7 for my client who runs an ISP in my country. The site is about file sharing with all the LAN users. As they can get 10MB/ps download and upload speed. The server is currently 3TB in size but we will expand it soon.
Now coming to the question, I am having DDoS Attack, and what can I do to protect the server?
I've looked through the internet and all I get is business plans who tells me to buy the service from them. But I want to protect the web server by myself. Also posted on serverfault but not getting any helpful post.
Any step by step guide will be very helpful. Also please refer any DDoS protection script if you can.
Edit from last post: by GigaGreg
Well guys, I have solved the issue a long time ago.. but I think it's better If I share the method which I used. Because this may help someone else in later.
I have disabled the SSH Logins and I only turn it on when I need to login through SSH by changing the config file using Webmin. And again disable SSH soon after I finish working on that. Obviously I have changed the port of Webmin to a secret one.
And I have also installed a shell script by which my server is Protected up to 15 Gbps.
By using this method I'm running my own dedicated Webserver (CentOS 7.x) without having any problem within last 1 year. :yahoo:
Here is the script and method how to use it. Cheers...:drinks:
Code:
Open Putty..
2nd step: Login username then password
3rd step Is:
yum install wget
4th step: Use this for protecting your server from ddos
wget http://www.inetbase.com/scripts/ddos/install.sh
5th step:
chmod 0700 install.sh
6th step:
./install.sh
It is installed :) congrats... i will show you more protection of AFC.
7th Step Is:
user ctrl+z in one time
then
wget http://www.rfxn.com/downloads/apf-current.tar.gz
8th step: Extract it
tar -zxvf apf-current.tar.gz
cd apf-9.7-2
we have changed directory
----------------------------
9th step is: Install it
sh ./install.sh
it is installed :)
10th step is: edit it's config
DEVEL_MODE="0"
Use ctrl + O enter press enter your config has been saved
Hit the Thank You button if this helps..