Community discussions

MikroTik App
 
AJayil
just joined
Topic Author
Posts: 13
Joined: Tue Mar 09, 2010 3:50 am

Hotspot Setup, want to specify certain MACIDs to gateway

Wed Mar 10, 2010 8:29 am

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?
 
krakenant
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

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

Wed Mar 10, 2010 4:28 pm

Use mangle in the firewall. There is an option for MAC ids.
 
AJayil
just joined
Topic Author
Posts: 13
Joined: Tue Mar 09, 2010 3:50 am

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

Wed Mar 10, 2010 6:14 pm

Any examples on how to set this up? Because anything I try doesnt work for web traffic.. it still goes out main gateway
 
krakenant
Member Candidate
Member Candidate
Posts: 135
Joined: Sat Feb 06, 2010 6:32 am

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

Thu Mar 11, 2010 6:28 am

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

Who is online

Users browsing this forum: m3das and 115 guests