OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: dreamerman on May 11, 2019, 12:34:35 pm

Title: Block a device by IP
Post by: dreamerman on May 11, 2019, 12:34:35 pm
Hi, is there a way to temporarily block internet or network access based on IP or MAC address of a device? I have assigned static addresses for every device on my network. I wonder if I can use Mac Access Control to deny a MAC address? Cheers.
Title: Re: Block a device by IP
Post by: ruggerio on May 11, 2019, 06:13:02 pm
Thats quite easy. Create e.g. an alias for blocked_internal_IP (type URL (IPs))

Put all the ips in that alias. Create a blocking rule within the interface/net you want to block. Choose as source the newly created alias. If using target any/any, they will be blocked.