Suppose, I want to allow access to my project for the IP falling between 192.168.1.1 and 192.168.1.40.
Nginx example:
stream {
#...
server {
listen 12345;
deny 192.168.1.2;
allow 192.168.1.1/24;
allow 2001:0db8::/32;
deny all;
}
}
I have to allow each and every IP separately or is there any technique that will allow access to the ip falling in the given range?