Page 1 of 1
Country block
Posted: 06 Apr 2016, 09:08
by zabidin2
Hi,
I just want to block certain country. Let say i want to block vietnam. So i put on CC_DENY="VN". After restart and a few days, i got attack from vietnam. Is it suppose to block vietnam from accessing my webpage? Please advice.
Thanks.
Re: Country block
Posted: 06 Apr 2016, 15:16
by postcd
Similar 2 year old topic:
viewtopic.php?t=7850
Interesting topic:
https://serverfault.com/questions/59668 ... ot-working
Here is tutorial on how to country block:
https://www.scalescale.com/tips/nginx/h ... -on-linux/ or google it
Maybe the VN IPs that connected and was nto blocked was not in the GEO IP database CSF is using, you can veriffy that. and prove why do you thing CSF not blocked the VN IPs. If attack is big, it can saturate the network connection and impact the server still i guess?
Re: Country block
Posted: 07 Apr 2016, 02:44
by zabidin2
Can i put script and use iptables with csf? Is it ok or it will clash?
Re: Country block
Posted: 07 Apr 2016, 12:06
by postcd
CSF is using iptables and canot work without it. Not sure about what kind of script you talking about and where you want to put it.
Re: Country block
Posted: 12 Apr 2016, 09:05
by zabidin2
Re: Country block
Posted: 13 Apr 2016, 05:48
by zabidin2
Can i use iptables only without csf? Is it csf start auto when i use iptables?