How do i allow access from some specified IP-Adresses (maybe a txt file?) while blocking access by default. Background is that i dont want to copy and past the ip-adresses into every single rule, since it makes it awfull to maintain!
I don't think Windows firewall is quite flexible enough to do what you want. This is kind of hacky, but a way to solve your problem would be to setup a draconian block rule to block everything from every IP, except for the ones you want to allow.
The way to do it is to setup a block rule, and put in very large address ranges like this:
This blocks everything except for the 3 IPs: 220.127.116.11, 18.104.22.168, 22.214.171.124
For the 3 IPs that do get in - the rest of the rules will still apply to them as they normally would.
Also, if you do a "custom" rule instead of starting out with a port rule, it allows you to choose "Any" for the protocol to block all protocols/ports.