Country block

Post Reply
zabidin2
Junior Member
Posts: 8
Joined: 06 Apr 2016, 09:05

Country block

Post 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.
postcd
Junior Member
Posts: 48
Joined: 15 May 2014, 17:10

Re: Country block

Post 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?
zabidin2
Junior Member
Posts: 8
Joined: 06 Apr 2016, 09:05

Re: Country block

Post by zabidin2 »

Can i put script and use iptables with csf? Is it ok or it will clash?
postcd
Junior Member
Posts: 48
Joined: 15 May 2014, 17:10

Re: Country block

Post 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.
zabidin2
Junior Member
Posts: 8
Joined: 06 Apr 2016, 09:05

Re: Country block

Post by zabidin2 »

zabidin2
Junior Member
Posts: 8
Joined: 06 Apr 2016, 09:05

Re: Country block

Post by zabidin2 »

Can i use iptables only without csf? Is it csf start auto when i use iptables?
Post Reply