OPNsense Forum
Archive => 18.7 Legacy Series => Topic started by: MakesSense on January 13, 2019, 10:23:31 pm
-
Hi
I'm wondering if there any way to add a list of IP addresses to the firewall blocklist?
-
Hi!
Create an Alias (Firewall - Settings) and add the IPs. Afterwards create an block rule on the respective interface and use as target the alias (should be in the respective drop-down menu). :-)
-
Thanks, I have done that for the most intrusive ones earlier, but I have a list with over 9000 IP addresses.
I tried to add them directly in the config.xml file, but then I can't open that alias in the webb GUI.
-
I use a URL Table(IP).
Add a file to a webserver - blockIPs.txt
Edit the file and add all the IP addresses, one per line. (may use other delimiter, not sure ??)
then Add alias URL Table (IPs) , then frequency of update, then FQDN of file.
This works for me.
-
Thanks for the tip! I will try that.