Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Firewall rule - block all (with exception)?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Firewall rule - block all (with exception)? (Read 914 times)
Zoltrix
Newbie
Posts: 6
Karma: 0
Firewall rule - block all (with exception)?
«
on:
January 09, 2024, 07:03:07 am »
Hi all,
Probably a silly question. I am attempting to create a firewall rule set that will block all SNMP traffic to the firewall, except for one host.
I've attached a screenshot of the rules. I've created a "Pass" rule for the single host, and then a "Block" rule. The block rule works on its own, but when I enable the "Pass" rule, it allows access again for all IPs, not just the single IP in the rule.
Cheers
Logged
passeri
Full Member
Posts: 100
Karma: 4
Re: Firewall rule - block all (with exception)?
«
Reply #1 on:
January 09, 2024, 07:33:33 am »
All of your addresses cover the range 192.168.0.0 to 192.168.0.255. I think you want the source address to be specific, to have no CIDR or /32 if it does.
Logged
Zoltrix
Newbie
Posts: 6
Karma: 0
Re: Firewall rule - block all (with exception)?
«
Reply #2 on:
January 09, 2024, 08:10:04 am »
Thanks mate, that was an easy fix!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Firewall rule - block all (with exception)?