Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Trying to block two IP addresses from accessing the network
« previous
next »
Print
Pages: [
1
]
Author
Topic: Trying to block two IP addresses from accessing the network (Read 1031 times)
Heiko910
Newbie
Posts: 10
Karma: 1
Trying to block two IP addresses from accessing the network
«
on:
December 25, 2023, 09:16:04 pm »
Hi there,
I am trying to block two IPs from access my network/the internet at a certain time a day.
I have created an Alias that includes the two IPs 192.168.2.7-192.168.2.8
I also created a schedule for Mon-Sun 21:00 - 23.59 and 0:00-08:00
I then went into Firewall rules in my Lan section and created a block rule for inbound traffic from source (the Alias) and I selected the schedule.
I applied all the changes but the two devices still have network access during the period of time.
What am I missing?
Thanks
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: Trying to block two IP addresses from accessing the network
«
Reply #1 on:
December 25, 2023, 09:43:42 pm »
Did you place the block rule above the default allow rule?
Cheers
Maurice
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
Heiko910
Newbie
Posts: 10
Karma: 1
Re: Trying to block two IP addresses from accessing the network
«
Reply #2 on:
December 25, 2023, 09:56:38 pm »
No, is that the problem? Let me try.
Thanks,
Merry Christmas
Logged
Maurice
Hero Member
Posts: 1213
Karma: 158
Re: Trying to block two IP addresses from accessing the network
«
Reply #3 on:
December 25, 2023, 09:59:08 pm »
Rule order is important because they are evaluated sequentially from top to bottom. If you have a quick "allow all" rule above the block rule, the block rule will never be evaluated.
Cheers & happy holidays
Maurice
Logged
OPNsense virtual machine images
OPNsense aarch64 firmware repository
Commercial support & engineering available. PM for details (en / de).
Heiko910
Newbie
Posts: 10
Karma: 1
Re: Trying to block two IP addresses from accessing the network
«
Reply #4 on:
December 25, 2023, 10:07:47 pm »
you are a rockstar. I put that rule at the top and it works. Thanks again
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
Trying to block two IP addresses from accessing the network