1st - I want to be able to route to a network using the wireless as the WAN and DHCP server on the LAN. I wasn’t able to find anything in quickset that facilitated this, but I think I can figure this out on my own (but if anyone has a quick pointer to a wiki article, I’d be much obliged)
2nd - (different box) I want to be able to configure virtual access points that are either rate limited with regard to their WAN connection (wired ethernet port this time) or have a virtual access point be disabled/deleted after a certain amount of traffic has been passed over the virtual access point.
2nd - (different box) I want to be able to configure virtual access points that are either rate limited with regard to their WAN connection (wired ethernet port this time) or have a virtual access point be disabled/deleted after a certain amount of traffic has been passed over the virtual access point.
I rate limit my home guest network (a virtual ap named wlan2) as follows:
Additionally, create a scheduler script that runs at startup:
# set the following two values to the maximum MBs of data to trigger the disabling of the interface
:local maxMBin 100
:local maxMBout 500
:local maxBin ($maxMBin * 1000000)
:local maxBout ($maxMBout * 1000000)
:while (([:tonum value=[/ip firewall filter get [find comment=wlan2in] bytes]] < $maxBin) && ([:tonum value=[/ip firewall filter get [find comment=wlan2out] bytes]] < $maxBout)) do={}
The next part of the above script depends on wether you want to delete or disable the virtual ap. To delete, append the following:
If you are trying to do all this just to kick a user off after a certain data transfer, perhaps you could examine hotspot for it’s built in capabilities to disable or rate limit users based on data transfer.