mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-23 04:12:31 +00:00
Add algorithm which chooses a APC and backup APC among the APs in a subnet. This APC can be used to perform few functions on behalf of the APs on the subnet. For example, the APC AP will be used as a radius proxy for the APs in the subnet. Signed-off-by: Chaitanya Godavarthi <chaitanya.kiran@netexperience.com>
22 lines
582 B
Bash
22 lines
582 B
Bash
#!/bin/sh
|
|
|
|
uci -q batch <<-EOF
|
|
add firewall rule
|
|
set firewall.@rule[-1].name='Allow-APC'
|
|
set firewall.@rule[-1].src='wan'
|
|
set firewall.@rule[-1].proto='udp'
|
|
set firewall.@rule[-1].dst_port='50010'
|
|
set firewall.@rule[-1].target='ACCEPT'
|
|
set firewall.@rule[-1].family='ipv4'
|
|
commit firewall
|
|
add firewall rule
|
|
set firewall.@rule[-1].name='Allow-UCC'
|
|
set firewall.@rule[-1].src='wan'
|
|
set firewall.@rule[-1].proto='udp'
|
|
set firewall.@rule[-1].dst_port='50000'
|
|
set firewall.@rule[-1].target='ACCEPT'
|
|
set firewall.@rule[-1].family='ipv4'
|
|
commit firewall
|
|
|
|
EOF
|