Community discussions

MikroTik App
 
wilsongamo
newbie
Topic Author
Posts: 45
Joined: Thu Jan 22, 2015 1:22 pm

how to block traffic

Fri Jan 23, 2015 11:38 am

HI dear
I wanted to block all traffics of some machines going to the ip 192.168.0.2 even pings
Thanks
 
User avatar
43north
Member Candidate
Member Candidate
Posts: 209
Joined: Fri Nov 14, 2014 7:06 am

Re: how to block traffic

Mon Jan 26, 2015 5:42 am

Just create a firewall rule. Google Mikrotik IP firewall rules and you should find some tutorials.
 
EchtkPvL
just joined
Posts: 9
Joined: Sun Aug 17, 2014 1:48 am

Re: how to block traffic

Mon Jan 26, 2015 10:37 pm

Try the following Code:
/ip firewall filter add action=drop chain=input dst-address=192.168.0.2
 
wilsongamo
newbie
Topic Author
Posts: 45
Joined: Thu Jan 22, 2015 1:22 pm

Re: how to block traffic

Tue Jan 27, 2015 4:28 pm

Thank You .
 
wilsongamo
newbie
Topic Author
Posts: 45
Joined: Thu Jan 22, 2015 1:22 pm

Re: how to block traffic

Tue Feb 10, 2015 11:24 am

But its not working
/ip firewall filter add action=drop chain=input dst-address=192.168.0.2 src-address=192.168.0.33
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: how to block traffic

Tue Feb 10, 2015 11:54 am

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

may help you
 
User avatar
hossain2004a
Member Candidate
Member Candidate
Posts: 247
Joined: Mon Dec 22, 2014 7:34 pm
Location: Iran

Re: how to block traffic

Tue Feb 10, 2015 11:56 am

no need to use src-address
 
yancho
Member Candidate
Member Candidate
Posts: 207
Joined: Tue Jun 01, 2004 3:04 pm
Location: LV

Re: how to block traffic

Tue Feb 10, 2015 11:58 am

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 :)
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: how to block traffic

Tue Feb 10, 2015 12:13 pm

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