Community discussions

MikroTik App
 
amsteen
Member Candidate
Member Candidate
Topic Author
Posts: 180
Joined: Sat Apr 04, 2009 11:09 am

allow by mac address

Mon Nov 02, 2009 6:09 am

Dear Sir's

If we block a pc from internet with web-proxy (with its IP)
is it possible to allow iternet for it by mac address (from firewall filter)

thanks
Eng. Amgad
 
amsteen
Member Candidate
Member Candidate
Topic Author
Posts: 180
Joined: Sat Apr 04, 2009 11:09 am

Re: allow by mac address

Wed Nov 04, 2009 11:11 am

There no one know how to deliver internet by mac address
or it is not possible

Please try to help me
 
chronos
newbie
Posts: 32
Joined: Tue Aug 05, 2008 3:54 pm

Re: allow by mac address

Wed Nov 04, 2009 8:58 pm

I dont understand you question but basicly you can block or better allow certain clients by firewall rules identified either by IP address or MAC address. So there is a problem?
 
cyph3r
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Sun May 25, 2008 12:21 pm
Location: Pakistan
Contact:

Re: allow by mac address

Thu Nov 05, 2009 5:38 pm

Dear Sir's

If we block a pc from internet with web-proxy (with its IP)
is it possible to allow iternet for it by mac address (from firewall filter)

thanks
Eng. Amgad

ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:92 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:93 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:94 action=accept (Allow User )
ip firewall filter add chain=input src-address=192.168.139.0/24 action=drop (all users deny)

Try this in same sequence
 
amsteen
Member Candidate
Member Candidate
Topic Author
Posts: 180
Joined: Sat Apr 04, 2009 11:09 am

Re: allow by mac address

Sat Nov 07, 2009 9:37 am

A great thanks to Mr. cyph3r

Yes it work

thanks again

Eng. Amgad
 
cyph3r
Frequent Visitor
Frequent Visitor
Posts: 73
Joined: Sun May 25, 2008 12:21 pm
Location: Pakistan
Contact:

Re: allow by mac address

Sun Nov 08, 2009 4:44 pm

A great thanks to Mr. cyph3r

Yes it work

thanks again

Eng. Amgad
Its ok Bro
 
zahiy
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Aug 11, 2009 6:17 pm
Location: Arara Village - Palestine

Re: allow by mac address

Tue Dec 15, 2009 1:15 am

I want to add somthing else to his questions hoping somebody can help, accodring to cyph3r 's solution, how can I block all MACs and allow specific MACs without refering to ip address?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: allow by mac address

Tue Dec 15, 2009 1:20 am

Qualify by something else, for example the interface traffic came in on.
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:92 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:93 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:94 action=accept (Allow User )
ip firewall filter add chain=input src-address=192.168.139.0/24 action=drop (all users deny)
Turns into
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:92 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:93 action=accept (Allow User )
ip firewall filter add chain=input src-mac-address=00:0C:29:32:E6:94 action=accept (Allow User )
ip firewall filter add chain=input in-interface=[name of customer interface] action=drop (all users deny)
 
zahiy
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Aug 11, 2009 6:17 pm
Location: Arara Village - Palestine

Re: allow by mac address

Tue Dec 15, 2009 1:36 am

Thanks! I will tring it
 
zahiy
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Tue Aug 11, 2009 6:17 pm
Location: Arara Village - Palestine

Re: allow by mac address

Wed Dec 16, 2009 6:30 pm

Works fine.
 
henrygrik
just joined
Posts: 2
Joined: Thu Dec 17, 2009 11:03 am

Re: allow by mac address

Thu Dec 17, 2009 12:03 pm

Hi,
It has been quite interesting. It was simply mind blowing, thanks for providing such a wonderful information.
 
User avatar
hansel84
just joined
Posts: 6
Joined: Mon Jan 11, 2016 6:54 am
Contact:

Re: allow by mac address

Mon Jan 11, 2016 6:49 pm

Very useful post, but is there any way I can block a bunch of MAC Addresses in only one rule on the same way we can create IP-Address-List ? That will save a lot of CPU usage ...
Tnx in advance
 
gazdi
just joined
Posts: 9
Joined: Wed Jan 05, 2011 5:35 pm

Re: allow by mac address

Tue Feb 23, 2016 10:51 am

Hello

How can I create and use a MAC list as input for packet marking ? At prerouting /mangle I would like to use it.

Thanks in advance !

Who is online

Users browsing this forum: vnl and 35 guests