I currently have two queue’s each with their own Max Limit.
UP-Q: Interface ether1 - my ether1 is not part of the bridge and connects to the Internet, PPPoE.
DOWN-Q: Interface bridge
Now I want to add two seperate queues for a WiFi Access Point which is connected to ether10.
I want to have two queues,
WiFi-Up: Interface ether10
WiFi-Down: Interface ether10
My problem is that WiFi-Up and WiFi-Down is on the same interface, ether10.
How do I solve this problem, so that I have two seperate WiFi Max Limits for WiFi-Up and WiFi-Down and have seperate Max Limits for LAN connected devices.
(Should I be having seperate mangling marks, currently I am using the same marks for WiFi and my normal Queue)
Here is what I have tried but have not found a solution yet:
\
Mark the packets to the WiFi AP using the interface - fail cannot do that because the interface is a slave.
Mark packets source IP of the WiFi AP, and Mark packets destination WiFi AP
that did not work since some packets are not sent to the WiFi IP, they are not NATTED.
Add DHCP Server to ETHER10, so that I can get a range if IP’s to be used for the markings,
could not do that because the interface is a slave.
MyWiFi Ap does not support this: Go to WiFi AP, and configure a DHCP on it and then use that range of IP’s to mark the packets,
and once the packets are marked create queues based on those markings.
Here is my approach thus far, but I need some help with the Mangle Rule adjustments, down below.
[WiFi clients get a seperate IP Range]
I have moved the ethernet port which is connected to the WiFi access point into it’s own bridge,
then added a DHCP server to that interface and all clients connected to that WiFi Access point now gets a seperate IP range.
Steps:
remove the ethernet port from the original bridge
create a new bridge
add the port removed in step 1 to the new bridge
create network for that bridge, giving the WiFi AP Bridge and IP address.
create a DHCP pool for that Interface
create a DHCP server on the bridge interface.
create DHCP network and set the network, gateway address and DNS server for that network.
[WiFi AP - Download]
In the Queue tree I created a new “Q”, with interface of the queue set to the bridge I created for the WiFi Access point.
Copied all the Mangling from my other Queue into this root node. This is easily done.
[WiF AP - Upload]
Now for the hard Part…
I have several Mangle rules, 23 of them and it seems I will have to create a entirely new set and mark them
using an address list.
Steps:
a) Create a new Address List, using the same DHCP address range as for the WiFi DHCP server.
b) Adjust the mangle rules to make use of the address list, using the Source Address list and Destination address list.
[The harder part]
Please help adjusting my Mangle rules to incorporate the WiFi AP address list, [wifi_ap_addr_list].
I assume that I basically have to create duplicates where needed.