summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-multiwan/root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-multiwan/root/lib')
-rw-r--r--applications/luci-multiwan/root/lib/uci/schema/default/multiwan107
1 files changed, 107 insertions, 0 deletions
diff --git a/applications/luci-multiwan/root/lib/uci/schema/default/multiwan b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan
new file mode 100644
index 0000000000..61f34e7033
--- /dev/null
+++ b/applications/luci-multiwan/root/lib/uci/schema/default/multiwan
@@ -0,0 +1,107 @@
+package multiwan
+
+config package
+ option title `Multi-WAN Agent'
+
+config section
+ option name 'multiwan'
+ option title 'Settings'
+ option named true
+ option required true
+
+config variable
+ option name 'default_route'
+ option title 'Default Route'
+ option section 'multiwan.multiwan'
+ option required true
+
+config variable
+ option name 'resolv_conf'
+ option title 'DNS configuration file'
+ option section 'multiwan.multiwan'
+ option required true
+
+config section
+ option name 'interface'
+ option title 'WAN Uplinks Configuration'
+ option named true
+ option required true
+
+config variable
+ option name 'weight'
+ option title 'Load Balancer Weight'
+ option section 'multiwan.interface'
+ option datatype 'integer'
+ option required true
+
+config variable
+ option name 'health_interval'
+ option title 'Health Monitor - Interval'
+ option section 'multiwan.multiwan'
+ option datatype 'integer'
+ option required true
+
+config variable
+ option name 'icmp_hosts'
+ option title 'Health Monitor - ICMP Host(s)'
+ option section 'multiwan.interface'
+ option required true
+
+config variable
+ option name 'timeout'
+ option title 'Health Monitor - ICMP Timeout'
+ option section 'multiwan.interface'
+ option datatype 'integer'
+ option required true
+
+config variable
+ option name 'health_fail_retries'
+ option title 'Attempts Before WAN Failover'
+ option section 'multiwan.interface'
+ option datatype 'integer'
+ option required true
+
+config variable
+ option name 'health_recovery_retries'
+ option title 'Attempts Before WAN Recovery'
+ option section 'multiwan.interface'
+ option datatype 'integer'
+ option required true
+
+config variable
+ option name 'failover_to'
+ option title 'Failover Traffic Destination'
+ option section 'multiwan.interface'
+ option required true
+
+config section
+ option name 'mwanfw'
+ option title 'Multi-WAN Traffic Rules'
+ option package 'multiwan.mwanfw'
+
+config section
+ option name 'src'
+ option title 'Match by Source Address'
+ option section 'dualwan.dualwanfw'
+
+config section
+ option name 'dst'
+ option title 'Match by Destination Address'
+ option section 'dualwan.dualwanfw'
+
+config section
+ option name 'proto'
+ option title 'Match by Protocol'
+ option section 'dualwan.dualwanfw'
+
+config section
+ option name 'ports'
+ option title 'Match by Destination Ports'
+ option section 'dualwan.dualwanfw'
+
+config section
+ option name 'wanrule'
+ option title 'WAN Traffic Decision'
+ option section 'multiwan.mwanfw'
+ option required true
+