Community discussions

MikroTik App
 
dlopez
newbie
Topic Author
Posts: 28
Joined: Mon Feb 06, 2012 4:52 pm
Location: Canary Island

RB750 Firewall ACL

Tue Feb 07, 2012 11:38 am

Hi, until now I've been using a linux machine as a firewall (shorewall) and to control the internet access for the computers I've been using rules based on the mac addresses.

Now, I know the router os doesn't have a mac list feature, whichi'd love, but is it possible to use another approach for the firewall so I can still do mac filtering? Maybe using radius or the hotspot feature?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: RB750 Firewall ACL

Tue Feb 07, 2012 2:03 pm

if packets are passing though /ip firewall filter then you can use field src-mac-address fields as you see fit. you just have to notice where the MAC addresses change in traffic flow.
 
dlopez
newbie
Topic Author
Posts: 28
Joined: Mon Feb 06, 2012 4:52 pm
Location: Canary Island

Re: RB750 Firewall ACL

Wed Feb 15, 2012 4:47 am

I ended up using the Hotspot feature with mac-address authentication and using the packets mark to do the filtering on the firewall.

BTW, at least on 5.12, the package mark rules are created on the mangle table BUT there's no rule to jump to the hotspot chain so, if you don't manually create them, the marks are not applied.
ip firewall mangle add chain=prerouting action=jump jump-target=hotspot
ip firewall mangle add chain=postrouting action=jump jump-target=hotspot
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: RB750 Firewall ACL

Wed Feb 15, 2012 8:24 am

you should check hotspot configuration:
http://wiki.mikrotik.com/wiki/Hotspot

if you fill all the fields then bunch of dynamic rules are added that will move packets around in different chains. If you are missing some, that could mean that you have not filled some of them.
 
dlopez
newbie
Topic Author
Posts: 28
Joined: Mon Feb 06, 2012 4:52 pm
Location: Canary Island

Re: RB750 Firewall ACL

Thu Feb 16, 2012 11:04 pm

The rules on the mangle table are created on the Hotspot chain but, at least for me, there was no rule to make the traffic go through that chain which is why I add those two rules.

Any how, is working now.