dnscrypt-proxy icon indicating copy to clipboard operation
dnscrypt-proxy copied to clipboard

How to block IP Address Ranges

Open S8D opened this issue 6 years ago • 1 comments

How to block IP Address Ranges of Country with IP blacklist.txt I want to block IP of China: https://lite.ip2location.com/china-ip-address-ranges Thanks!

S8D avatar Feb 04 '20 05:02 S8D

On Linux you can use ipset.

https://linoxide.com/linux-how-to/block-ips-country-ipset/ https://askubuntu.com/questions/868334/block-china-with-iptables

There are many other tutorials about this, search for linux block country ip.

But blocking a whole country for security is a very lame practice.

jedisct1 avatar Feb 04 '20 10:02 jedisct1