diff options
| author | Álvaro Fernández Rojas <noltari@gmail.com> | 2014-12-31 20:40:56 +0100 |
|---|---|---|
| committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2014-12-31 21:22:02 +0100 |
| commit | e03ee22d045a77eebee7a8c32d71212e73633c98 (patch) | |
| tree | a603be08787e44e9fb6800c9dfdb7c58d17ee274 /mcproxy/files/mcproxy.config | |
| parent | 1696064d221d27ac9208ec860c06487ea9a3f16e (diff) | |
mcproxy: update to latest version, add UCI support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'mcproxy/files/mcproxy.config')
| -rw-r--r-- | mcproxy/files/mcproxy.config | 231 |
1 files changed, 231 insertions, 0 deletions
diff --git a/mcproxy/files/mcproxy.config b/mcproxy/files/mcproxy.config new file mode 100644 index 0000000..10cc410 --- /dev/null +++ b/mcproxy/files/mcproxy.config @@ -0,0 +1,231 @@ +# Use your own MCProxy config file +config mcproxy 'mcproxy_file' + option disabled '1' + option respawn '1' + option file '/etc/mcproxy.conf' + +# Use OpenWrt UCI config +config mcproxy 'mcproxy' + option disabled '1' + option respawn '1' + option protocol 'IGMPv3' + +########################################### + +# Simple configuration examples + +config instance + option disabled '1' + option name 'proxy1' + list upstream 'eth1' + list downstream 'eth0.2' + +config instance + option disabled '1' + option name 'proxy2' + list upstream 'eth0.2' + list downstream 'eth0.4' + list downstream 'br-lan' + +config instance + option disabled '1' + option name 'proxy3' + list upstream 'eth1.2' + list upstream 'eth1.4' + list downstream 'eth0.1' + +########################################### + +# Advanced configuration example + +config instance + option name 'A' + list upstream 'ap' + list upstream 'a1' + list downstream 'ap' + list downstream 'a2' + +config instance + option name 'B' + list upstream 'bp' + list upstream 'b1' + list downstream 'bp' + list downstream 'b2' + +config table + option name 'allways' + list entries '(*|*)' + +config table + option name 'piA_peering_ifs' + list entries 'ap(*|*)' + +config table + option name 'piA_upstreams' + list entries 'a1(*|*)' + +config table + option name 'piB_peering_ifs' + list entries 'bp(*|*)' + +config table + option name 'piB_upstreams' + list entries 'b1(*|*)' + +config behaviour + option instance 'A' + option section 'upstream' + option interface '*' + option direction 'in' + option rulematching 'mutex 10' + +config behaviour + option disabled '1' + option instance 'A' + option section 'upstream' + option interface '*' + option direction 'out' + option rulematching 'all' + +config behaviour + option instance 'A' + option section 'upstream' + option interface 'ap' + option direction 'out' + option table 'allways' + +config behaviour + option disabled '1' + option instance 'A' + option section 'upstream' + option interface 'ap' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option instance 'A' + option section 'upstream' + option interface 'a1' + option direction 'out' + option table 'piA_peering_ifs' + +config behaviour + option disabled '1' + option instance 'A' + option section 'upstream' + option interface 'a1' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option instance 'A' + option section 'downstream' + option interface 'ap' + option direction 'in' + option table 'allways' + +config behaviour + option instance 'A' + option section 'downstream' + option interface 'ap' + option direction 'out' + option table 'piA_upstreams' + +config behaviour + option disabled '1' + option instance 'A' + option section 'downstream' + option interface 'a2' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option disabled '1' + option instance 'A' + option section 'downstream' + option interface 'a2' + option direction 'out' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option instance 'B' + option section 'upstream' + option interface '*' + option direction 'in' + option rulematching 'mutex 10' + +config behaviour + option disabled '1' + option instance 'B' + option section 'upstream' + option interface '*' + option direction 'out' + option rulematching 'all' + +config behaviour + option instance 'B' + option section 'upstream' + option interface 'bp' + option direction 'out' + option table 'allways' + +config behaviour + option disabled '1' + option instance 'B' + option section 'upstream' + option interface 'bp' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option instance 'B' + option section 'upstream' + option interface 'b1' + option direction 'out' + option table 'piB_peering_ifs' + +config behaviour + option disabled '1' + option instance 'B' + option section 'upstream' + option interface 'b1' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option instance 'B' + option section 'downstream' + option interface 'bp' + option direction 'in' + option table 'allways' + +config behaviour + option instance 'B' + option section 'downstream' + option interface 'bp' + option direction 'out' + option table 'piB_upstreams' + +config behaviour + option disabled '1' + option instance 'B' + option section 'downstream' + option interface 'b2' + option direction 'in' + option whitelist '1' + option table '{(*|*)}' + +config behaviour + option disabled '1' + option instance 'B' + option section 'downstream' + option interface 'b2' + option direction 'out' + option whitelist '1' + option table '{(*|*)}' |
