Community discussions

MikroTik App
wilsongamo
newbie
Topic Author
Posts: 45
加入: 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
Top
用户头像
43north
Member Candidate
Member Candidate
Posts: 208
加入: 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.
Top
EchtkPvL
刚刚加入了
Posts: 9
加入: Sun Aug 17, 2014 1:48 am

Re: how to block traffic

Mon Jan 26, 2015 10:37 pm

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

Re: how to block traffic

Tue Jan 27, 2015 4:28 pm

Thank You .
Top
wilsongamo
newbie
Topic Author
Posts: 45
加入: 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
Top
用户头像
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
加入: 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
Top
用户头像
hossain2004a
Member Candidate
Member Candidate
Posts: 247
加入: 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
Top
yancho
Member Candidate
Member Candidate
Posts: 207
加入: 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:)
Top
用户头像
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
加入: 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
Top

Who is online

Users browsing this forum:Darj,Majestic-12 [Bot],vlahrtand 19 guests