Add Websites
Usually, your main job is to declare your website for vDDOS in the website.conf
file.
For example, you need to add a domain name your-domain.com
which needs to run through the vDDoS Proxy and go to the real web server at http://204.79.197.2:80
(because vDDoS acts as a Reverse Proxy):
Add Website:
1. Edit website.conf
:
nano /vddos/conf.d/website.conf # Website Listen Backend Cache Security SSL-Prikey SSL-CRTkey your-domain.com http://0.0.0.0:80 http://20.79.197.2:80 no no no no
In that configuration:
Website
is: your-domain.com
http://0.0.0.0:80
is: Protocol & IP:PORT
, that vDDoS needs to listen to serve for your-domain.com
domain.
http://20.79.197.2:80
is: Protocol & IP:PORT
of the original web server of your-domain.com
, which you want vDDoS to know and transfer traffic to that server (it’s called a Backend Server)
Cache
is: no
Security
is: no
SSL KEYs
is: no & no
2. Restart vDDoS (After each configuration change):
[root@vDDoS ~]# vddos restart (Defensive Estimating ~ 273 RealReq/s) 0.0.0.0:80 vDDos service Restart success!
Check Website:
1. Point the domain name your-domain.com
to the IP Address of the vDDoS Server. And now, your site your-domain.com
has gone through the vDDoS Proxy:
[root@vDDoS ~]# curl -I http://your-domain.com HTTP/1.1 200 OK Server: nginx-V-ddos Date: Tue, 30 May 2017 04:36:25 GMT Content-Type: text/html Content-Length: 365 Connection: keep-alive Keep-Alive: timeout=15 Expires: Thu, 01 Jan 1970 00:00:01 GMT Cache-Control: no-cache
Of course the original server would still have a different response:
[root@vDDoS ~]# curl -I http://20.79.197.2:80 HTTP/1.1 400 Bad Request Transfer-Encoding: chunked Server: Microsoft-IIS/10.0 X-MSEdge-Ref: Ref A: DDA6A977287B4D31AB647F1017C30880 Ref B: NYCEDGE0316 Ref C: Mon May 29 21:38:12 2017 PST Date: Tue, 30 May 2017 04:38:12 GM
Other configuration options:
Website: (Add domain name of website)
variable: default
, your-domain.com
, www.your-domain.com
Listen: (Sets IP & Port listen)
variable: http://0.0.0.0:80
, https://0.0.0.0:443
, http://123.234.012.321:80
Backend: (Sets Real IP & Port Backend Service)
variable: http://123.234.012.321:80
, https://123.234.012.321:443
, http://127.0.0.1:8080
Cache: (Sets proxy cache website on vDDoS.)
variable: no
, yes
Security: (Sets a valid for Security Level Protection)
variable: no
, 307
, 200
, click
, 5s
, high
, captcha
. Note: no < 307 < 200 < click < 5s < high < captcha
Option need for HTTPS Listen:
SSL-Prikey: (Sets SSL Private key website for vDDoS)
variable: /location/ssl/key/of/your/private/key/privkey.pem
SSL-CRTkey: (Sets SSL Public key website for vDDoS)
variable: /location/ssl/key/of/your/public/key/cert.pem