Community discussions

MikroTik App
 
bledar
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Mon Nov 26, 2007 11:44 am
Location: Tirana/Albania

Block All activity for an specific IP

Mon Feb 04, 2008 4:27 pm

Please, help me to block all activity for an specific IP on firewall roules.

Thank You in advance.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6695
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Block All activity for an specific IP

Mon Feb 04, 2008 7:39 pm

ip firewall filter add action=drop src/dst-address
address depends on the traffic you want to drop.
Additionaly you need to specify chain,
input to filter traffic going to your router,
your clients traffic in forward.
 
bledar
Member Candidate
Member Candidate
Topic Author
Posts: 234
Joined: Mon Nov 26, 2007 11:44 am
Location: Tirana/Albania

Re: Block All activity for an specific IP

Wed Feb 06, 2008 6:04 pm

I want to block all trafic generated from local ip 192.168.12.250.

Is this the right config?

\ip firewall filter
chain=forward src-address=192.168.12.250 dst-address=0.0.0.0 action=drop

With this one I have no results.
\Please tell me if you have any nwe idea for block all the activity, even within subnet trafic.

Thnx a lot.
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Re: Block All activity for an specific IP

Thu Feb 07, 2008 2:00 pm

/ip firewall filter
chain=forward src-address=192.168.12.250 dst-address=0.0.0.0/0 action=drop
 
User avatar
hulk-bd
Member Candidate
Member Candidate
Posts: 231
Joined: Mon Sep 03, 2007 7:19 pm
Location: Uttara, Dhaka, Bangladesh

Re: Block All activity for an specific IP

Thu Feb 07, 2008 2:21 pm

you can block his MAC also like I have done it for my few clients.

/ip firewall filter
chain=forward src-mac-address= your client mac action=drop
 
estate100
just joined
Posts: 13
Joined: Sat Feb 09, 2008 6:13 am

Re: Block All activity for an specific IP

Thu Jan 22, 2009 1:12 am

i want to block ip is 172.30.12.30 to 172.30.12.255 . how can this plz help me
 
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location: Virginia, USA.

Re: Block All activity for an specific IP

Thu Jan 22, 2009 5:12 am

 
estate100
just joined
Posts: 13
Joined: Sat Feb 09, 2008 6:13 am

Re: Block All activity for an specific IP

Thu Jan 22, 2009 8:12 am

Thx Asishbhai... & best of luck for usa
 
estate100
just joined
Posts: 13
Joined: Sat Feb 09, 2008 6:13 am

Re: Block All activity for an specific IP

Sat Jan 24, 2009 11:51 pm

go ip ,address list & select local lan interface & example address 172.30.12.1/27 brodcast 172.30.12.30 network 172.30.12.0 interface local it is 100% working without queue 172.30.12.31 to 172.30.12.255 user not access internet any way (downloading & p2p )
 
channelasian
newbie
Posts: 28
Joined: Thu Jun 11, 2009 8:55 am

Re: Block All activity for an specific IP

Sun Nov 29, 2009 10:41 pm

you can block his MAC also like I have done it for my few clients.

/ip firewall filter
chain=forward src-mac-address= your client mac action=drop
this one not work for me.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Block All activity for an specific IP

Sun Nov 29, 2009 11:22 pm

what's your network config?
 
channelasian
newbie
Posts: 28
Joined: Thu Jun 11, 2009 8:55 am

Re: Block All activity for an specific IP

Mon Nov 30, 2009 12:33 am

what's your network config?
1 public ip in 1 interface as a WAN and share internet to the another 3 interfaces.

interface 2-4 got different network

the network of interface 3 is 10.100.100.0/24 one of ip of this rank using my internet very height. i want to block his ip or mac address or queue his traffic. i followed the config above
/ip firewall filter add chain=forward src-mac-address= your client mac action=drop
but not work.

And i want to block some websites like youtube or facebook also not work for me.
/ip firewall filter add chain = forward content=youtube comment="" action=drop
i also tired enable web proxy but still not working. must be something wrong somewhere.

Please correct me.

Thanks
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Block All activity for an specific IP

Mon Nov 30, 2009 2:57 am

check that you don't accept these packets above your 'drop' rule
 
channelasian
newbie
Posts: 28
Joined: Thu Jun 11, 2009 8:55 am

Re: Block All activity for an specific IP

Mon Nov 30, 2009 3:44 am

so what i am gonna do? could u help me?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Block All activity for an specific IP

Mon Nov 30, 2009 10:10 am

so what i am gonna do?
check
also, you may want to look at http://www.mikrotik.com/consultants.html
 
kingvijay
just joined
Posts: 1
Joined: Fri Dec 25, 2009 7:58 pm

Re: Block All activity for an specific IP

Fri Dec 25, 2009 8:08 pm

you can block his MAC also like I have done it for my few clients.

/ip firewall filter
chain=forward src-mac-address= your client mac action=drop
it says no such comments found.............

this is not working for me i want to block 1 customer's mac what i have to me tell me................

im using microtik V2.9.34 as my ISP access point....................



help me thanks........
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Block All activity for an specific IP

Tue Dec 29, 2009 3:40 pm

maybe syntax was changed a bit between v2.9 and v3/4. upgrade =)
 
apple123
just joined
Posts: 5
Joined: Mon Mar 12, 2012 12:20 pm

Re: Block All activity for an specific IP

Thu Jul 19, 2012 5:05 pm

Hello , Please i need help . . .
I have an rb433 with an 2 XR5s Wlan1 is working as station wds and Wlan 2 as AP Bridge giving connection to a reseller

how can I filter those two Wlans so that when my reseller enters his winbox he can only see his mikrotiks . . . not his a mine ?

please i need it urgent
 
kuldip
just joined
Posts: 1
Joined: Thu Nov 03, 2016 8:49 am

Re: Block All activity for an specific IP

Tue Dec 27, 2016 2:38 pm

Hi friends
i am using CCR1036-12G-4S i want configure firewall as follow
i want to create to three IP group-
1) for IT Manager Team-that set full access 2) for allow specific websites only and 3) block total websites.
How can i do.......please help
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Block All activity for an specific IP

Wed Dec 28, 2016 12:36 pm

i want to create to three IP group-
http://wiki.mikrotik.com/wiki/Manual:IP ... dress_list
1) for IT Manager Team-that set full access 2) for allow specific websites only and 3) block total websites.
http://wiki.mikrotik.com/wiki/Manual:IP/Firewall/Filter

Who is online

Users browsing this forum: defold, haung05, pe1chl, raiser and 73 guests