how to block traffic

HI dear
I wanted to block all traffics of some machines going to the ip 192.168.0.2 even pings
Thanks

Just create a firewall rule. Google Mikrotik IP firewall rules and you should find some tutorials.

Try the following Code:

/ip firewall filter add action=drop chain=input dst-address=192.168.0.2

Thank You .

But its not working
/ip firewall filter add action=drop chain=input dst-address=192.168.0.2 src-address=192.168.0.33

Maybe your interface is bridged
go to bridge/bridge tab / settings/select use ip firewall

may help you

no need to use src-address

I bet on wrong chain. You should use forward

input > - used to process packets entering the router through one of the interfaces with the destination IP address which is one of the router’s addresses. Packets passing through the router are not processed against the rules of the input chain
forward > - used to process packets passing through the router
output > - used to process packets originated from the router and leaving it through one of the interfaces. Packets passing through the router are not processed against the rules of the output chain

And you should use src-address if you need :slight_smile:

Also you should know IP firewall doesn’t work on bridged interface except you enable Use IP Firewall on Bridge/Setting