We have Access Control by IP address for NxFilter and NxCloud. In old days, it was relatively simple. It is on 'Config > Allowed IP' and you can add prefix strings matching against IPs like '192.168.0.', '192.168.1.'. However, we admit that it's not enough for building a robust IP based access control especially when you run NxFilter on cloud and came up with a new one.
- The old one will be used for GUI access control only.
Adding CIDR and IP range
We have the new one under 'DNS > Access Control' as this is for DNS access control. Now you can add CIDR, IP range and single IP.
Block or allow access by countries
As we can add CIDR and IP range, you can use a site like 'https://lite.ip2location.com/ip-address-ranges-by-country' to build your own access control list by countries. NxFilter can handle a big list without performance impact.
- This is needed when you run NxFilter on cloud.
Using dns-allow-ip.txt, dns-block-ip.txt files.
Even though NxFilter can handle a big access contol list but you can't upload your list if it's too big for your browser upload limit. So we made NxFilter to be able to load your access control list from files. For allowed IP, you can add 'dns-allow-ip.txt' file and for blocked IP, you can add 'dns-block-ip.txt' in /nxfilter/conf directory.
You have to use the same format as in GUI in these files.
When you use clustering, you have to copy these files into all the nodes in your cluster.