Page 1 of 1

Hotspot Setup, want to specify certain MACIDs to gateway

Posted: Wed Mar 10, 2010 8:29 am
by AJayil
I have a hotspot setup with 3 different Gateways.. I already have split http traffic to 1 gateway, and all other traffic to another. I want to use the 3rd for certain customers based on their MACID.

How can I set a MACID to goto a certain Gateway?

Re: Hotspot Setup, want to specify certain MACIDs to gateway

Posted: Wed Mar 10, 2010 4:28 pm
by krakenant
Use mangle in the firewall. There is an option for MAC ids.

Re: Hotspot Setup, want to specify certain MACIDs to gateway

Posted: Wed Mar 10, 2010 6:14 pm
by AJayil
Any examples on how to set this up? Because anything I try doesnt work for web traffic.. it still goes out main gateway

Re: Hotspot Setup, want to specify certain MACIDs to gateway

Posted: Thu Mar 11, 2010 6:28 am
by krakenant
Try something similar to the following.

mark the packets with mangle
/ip firewall mangle src-mac-address=00:00:00:00:00:00 action=add-src-to-address-list address-list=XXXXXXXXX

then tell them which one of the addresses on your WAN to use.
/ip firewall nat src-address-list=XXXXXXXXX action=src-nat to-addresses=x.x.x.x