Community discussions

MikroTik App
 
WojtusW5
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Mon Oct 02, 2017 1:25 pm

CAPsMAN with local forwarding - customer separation

Tue Jul 28, 2020 11:15 am

Hi, I have a capsman based wireless network using local formarding. The configuration is very similar to this one https://wiki.mikrotik.com/wiki/Manual:C ... with_VLANs

One of the networks is a guest network broadcast at 2.4GHz and 5GHz and it is provided by one vlan to the AP. In the configuration of these interfaces, the client-to-client-forwarding parameter is turned off, but if I understand correctly, communication between the 2.4GHz and 5GHz interfaces will still be possible. How can it be isolated ?

Thanks in advance
 
whatever
Member
Member
Posts: 353
Joined: Thu Jun 21, 2018 9:29 pm

Re: CAPsMAN with local forwarding - customer separation

Tue Jul 28, 2020 9:25 pm

You can use split horizon to isolate bridge ports. Be aware that this will disable hw acceleration on the bridge.
Why are you using local forwarding if you don't want to have local traffic?
 
WojtusW5
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Mon Oct 02, 2017 1:25 pm

Re: CAPsMAN with local forwarding - customer separation

Tue Jul 28, 2020 10:56 pm

I can only use bridge horizon with capsman forwarding. With local forwarding, the only interface on the router is vlan for the guest network (common for 2.4GHz and 5GHz interfaces). On the cap, the interferences add to the bridge dynamically so there also can't use bridge horizon.

I use local forwarding because of better network performance.
 
ivicask
Member
Member
Posts: 425
Joined: Tue Jul 07, 2015 2:40 pm
Location: Croatia, Zagreb

Re: CAPsMAN with local forwarding - customer separation

Wed Jul 29, 2020 12:07 am

How about simple drop rule in firewall with source and destination IP same subnet? Maybe excluded wan interface if breaks net, not sure you can try.
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: CAPsMAN with local forwarding - customer separation

Wed Jul 29, 2020 12:16 am

On the cap, the interferences add to the bridge dynamically so there also can't use bridge horizon.
First of all you can always change "create dynamic enabled" to "create enabled".
And second, even with dynamic cAP interfaces you can specify bridge horizon in datapath.
 
WojtusW5
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Mon Oct 02, 2017 1:25 pm

Re: CAPsMAN with local forwarding - customer separation

Fri Jul 31, 2020 11:37 am

How about simple drop rule in firewall with source and destination IP same subnet? Maybe excluded wan interface if breaks net, not sure you can try.
This traffic does not reach the router (controller). Alternatively what you say could be done on the cAP itself (using bridge filtering). However, i.e. manual configuration of each CAP and in the event of reconfiguration the need to change many to many APs.
On the cap, the interferences add to the bridge dynamically so there also can't use bridge horizon.
First of all you can always change "create dynamic enabled" to "create enabled".
And second, even with dynamic cAP interfaces you can specify bridge horizon in datapath.
This parameter set on the controller has no effect on local forwarding. And the bridge horizon field on dynamic interfaces is not configurable.
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: CAPsMAN with local forwarding - customer separation

Fri Jul 31, 2020 12:05 pm

This parameter set on the controller has no effect on local forwarding.
Which one?
And the bridge horizon field on dynamic interfaces is not configurable.
You set it in datapath tab of capsman config together with the bridge setting, not in bridge menu.
 
WojtusW5
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Mon Oct 02, 2017 1:25 pm

Re: CAPsMAN with local forwarding - customer separation

Fri Jul 31, 2020 12:37 pm

This parameter set on the controller has no effect on local forwarding.
Which one?
And the bridge horizon field on dynamic interfaces is not configurable.
You set it in datapath tab of capsman config together with the bridge setting, not in bridge menu.
We are talking here about local forwarding, not capsman forwarding. There, I do not choose the bridge on the controller, I only give the vlan on which this traffic comes to the CAP.
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: CAPsMAN with local forwarding - customer separation

Fri Jul 31, 2020 12:58 pm

cAP interfaces has to be bridged on one side: either on cAPs or on CAPsMAN.
And if I recall correctly, both methods can be used for both local and capsman forwarding.
But I can be wrong.
Anyway, regardless of that, you can always use bridge horizon on the bridge, where they are actually added.
If in your case the bridge is on a cAP itself - configure bridge horizon there.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11593
Joined: Thu Mar 03, 2016 10:23 pm

Re: CAPsMAN with local forwarding - customer separation

Fri Jul 31, 2020 3:00 pm

When configuring datapath for local forwarding, the bridge on cAP is in the game ... although implicitly and when not set, I guess it takes first bridge it finds.

For example, on capsman I have
/caps-man datapath
add client-to-client-forwarding=yes comment="local forwarding, VID=42 (LAN)" \
    local-forwarding=yes name=local-42 vlan-id=42 vlan-mode=use-tag
(note bridge= property is not set).


On caps device then I have
[u@AP] > /interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic, H - hw-offload 
 #     INTERFACE     BRIDGE        HW  PVID PR  PATH-COST INTERNA...    HORIZON
 0   H ether1-lan    bridge        yes    1 0x         10         10       none
 1 I H ether2-rbDS   bridge        yes    1 0x         10         10       none
 2 I H ether3-pil... bridge        yes    1 0x         10         10       none
 3 I H ether4-pil... bridge        yes    1 0x         10         10       none
 4 I H ether5-DSL    bridge        yes    1 0x         10         10       none
 5  D  wlan1         bridge              42 0x         10         10       none
capsman-controlled wifi interface is wlan1 interface (the one dynamically created).

So I guess if one would configure bridge-horizon property on capsman datapath, it would get actually set on caps bridge.
 
WojtusW5
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 94
Joined: Mon Oct 02, 2017 1:25 pm

Re: CAPsMAN with local forwarding - customer separation  [SOLVED]

Wed Aug 05, 2020 10:35 am

Thanks for all the answers.
I also got info from the support - the only option to separate clients from different cAP interfaces is to introduce traffic filtering rules on the bridge.

Who is online

Users browsing this forum: Amazon [Bot] and 34 guests