Page 1 of 1

how to block traffic

Posted: Fri Jan 23, 2015 11:38 am
by wilsongamo
HI dear
I wanted to block all traffics of some machines going to the ip 192.168.0.2 even pings
Thanks

Re: how to block traffic

Posted: Mon Jan 26, 2015 5:42 am
by 43north
Just create a firewall rule. Google Mikrotik IP firewall rules and you should find some tutorials.

Re: how to block traffic

Posted: Mon Jan 26, 2015 10:37 pm
by EchtkPvL
Try the following Code:
/ip firewall filter add action=drop chain=input dst-address=192.168.0.2

Re: how to block traffic

Posted: Tue Jan 27, 2015 4:28 pm
by wilsongamo
Thank You .

Re: how to block traffic

Posted: Tue Feb 10, 2015 11:24 am
by wilsongamo
But its not working
/ip firewall filter add action=drop chain=input dst-address=192.168.0.2 src-address=192.168.0.33

Re: how to block traffic

Posted: Tue Feb 10, 2015 11:54 am
by ShayanFiroozi
Maybe your interface is bridged
go to bridge/bridge tab / settings/select use ip firewall

may help you

Re: how to block traffic

Posted: Tue Feb 10, 2015 11:56 am
by hossain2004a
no need to use src-address

Re: how to block traffic

Posted: Tue Feb 10, 2015 11:58 am
by yancho
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 :)

Re: how to block traffic

Posted: Tue Feb 10, 2015 12:13 pm
by ShayanFiroozi
Also you should know IP firewall doesn't work on bridged interface except you enable Use IP Firewall on Bridge/Setting