duy13 / vDDoS-Protection

Welcome to vDDoS, a HTTP(S) DDoS Protection Reverse Proxy. Thank you for using!
https://vddos.voduy.com
482 stars 140 forks source link

Help config. #73

Open ghost opened 2 years ago

ghost commented 2 years ago

hi,

is this correct?

default http://0.0.0.0:80 http://127.0.0.1:80 no 200 no No kiwi.puntochat.net http://0.0.0.0:80 http://127.0.0.1:80 no 200 no No default http://0.0.0.0:443 http://127.0.0.1:443 yes 307 /vddos/conf.d/ssl/kiwi.puntochat.net.pri /vddos/conf.d/ssl/kiwi.puntochat.net.crt kiwi.puntochat.net https://0.0.0.0:443 http://127.0.0.1:443 yes captcha /vddos/conf.d/ssl/kiwi.puntochat.net.pri /vddos/conf.d/ssl/kiwi.puntochat.net.crt

i dont feel like is working. And on logs is empty.

duy13 commented 2 years ago

it is wrong, because you are calling vddos listen at 0.0.0.0:80 i.e. it will also listen at 127.0.0.1:80, so it has duplicate port, replace 0.0.0.0 with 1 specific WAN IP

default http://1.2.3.4:80 http://127.0.0.1:80 no 200 no No

ghost commented 2 years ago

hi, 2022/05/27 12:52:45 [notice] 218553#218553: signal process started 2022/05/27 12:52:45 [error] 218553#218553: open() "/var/run/vddos.pid" failed (2: No such file or directory) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:443 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:80 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:443 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:80 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:443 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:80 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:443 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:80 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:443 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: bind() to 178.170.40.99:80 failed (98: Address already in use) 2022/05/27 12:52:48 [emerg] 218556#218556: still could not bind() I use nginx on 80 and 443 don't really understand why is trying to bind on tose.

duy13 commented 2 years ago

change port your nginx to other port and use vddos proxy to them

https://www.youtube.com/playlist?list=PL16uFXhfbHsQqen5Zm6MxTOLpjnyTdpG9