OPNsense Forum

English Forums => General Discussion => Topic started by: guest35930 on December 15, 2022, 02:20:51 AM

Title: Firewall: How to block ip range?
Post by: guest35930 on December 15, 2022, 02:20:51 AM
I need a guide or tutorial about how to block ip range 190.0.0.0 and all the ips regarding 190.x.x.x ...
how can i do it? tried to google it and youtube it and found no answers (found only block 1 one ip , and i need ALL the whole range) how can i do it? thank you
Title: Re: Firewall: How to block ip range?
Post by: Demusman on December 15, 2022, 03:00:45 AM
Use an alias for the whole range.
Title: Re: Firewall: How to block ip range?
Post by: guest35930 on December 15, 2022, 03:29:29 AM
what should i write here?

https://prnt.sc/uFQs3EWMMlIS

and what do i select here in this dropdown?

https://prnt.sc/iOutJrnNYNE3

i need to block all the 190.x.x.x to  190.999.999.999 or i do not know how it should be i am a newbie a noob and i do not know anything about networks so that is why im trying to ask help from the experts

Title: Re: Firewall: How to block ip range?
Post by: zan on December 15, 2022, 05:41:14 AM
Select 'Network(s)' for type then '190.0.0.0/8' for content
You can then create a block rule on the interface with that alias as source (or destination, depends on which direction you want to block)