Community discussions

MikroTik App
 
fpascual
Member Candidate
Member Candidate
Topic Author
Posts: 140
Joined: Mon May 29, 2006 3:17 pm

Mac Address Filter

Tue Jul 11, 2006 2:47 pm

Hi, I need to block internet access to some computers on a customer network, can I do that with /ip firewall mangle feature ?, how ?, they must check e-mails but not access the www and chat, etc.


Thanks a lot
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Jul 11, 2006 2:54 pm

Firewall filter will help you.
'ip firewall filter'. Use chain=forward to allow/block clietnts traffic. Allow e-mail traffic (25/110 port numbers), and block other traffic,
http://www.mikrotik.com/docs/ros/2.9/ip/filter
 
fpascual
Member Candidate
Member Candidate
Topic Author
Posts: 140
Joined: Mon May 29, 2006 3:17 pm

Tue Jul 11, 2006 3:05 pm

Ok, understand, do you recommend me to apply firewall filters and not firewall mangle ?.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Tue Jul 11, 2006 3:09 pm

if you have to bock something completely then filter is place to go.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Tue Jul 11, 2006 3:10 pm

Mangle allows to mark packets, modify values in tge IP header like TOS (DSCP) and TTL fields.
'ip firewall filter' filters packets.
 
fpascual
Member Candidate
Member Candidate
Topic Author
Posts: 140
Joined: Mon May 29, 2006 3:17 pm

Tue Jul 11, 2006 10:14 pm

In this case I have a wireless lan with encore access point and need to put mk between adsl modem and this encore. In the mac address filter into the mk, I must put the wireless mac address no ?

Thanks
 
fpascual
Member Candidate
Member Candidate
Topic Author
Posts: 140
Joined: Mon May 29, 2006 3:17 pm

Wed Jul 12, 2006 3:06 pm

Another question, if I want to set more than one mac address in firewall filter, may I do that ?, eg:

add in-interface=inside src-mac-address=00-08-AA-50-BD-33,00-08-AA-50-BD-35, dst-address=0.0.0.0 dst-port=80 protocol=tcp action=drop comment="" disabled=no



Thanks
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Wed Jul 12, 2006 3:10 pm

I think, you can set only one MAC-address entry per rule.
 
wildbill442
Forum Guru
Forum Guru
Posts: 1055
Joined: Wed Dec 08, 2004 7:29 am
Location: Sacramento, CA

Wed Jul 12, 2006 9:25 pm

I would create a new chain called MAC-Auth.. Put all of the mac addresses that are allowed access to the network in this chain and put a REJECT rule at the bottom of the chain.

Then jump to this chain from the INPUT filter with the condition that the traffic originates from the LAN interface.

That should take care of it.

Your bill is in the mail. ;)


-Bill
 
fpascual
Member Candidate
Member Candidate
Topic Author
Posts: 140
Joined: Mon May 29, 2006 3:17 pm

Thu Jul 13, 2006 2:19 pm

Bill, thanks, have you got an example of this ?