b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # Use your own MCProxy config file |
| 2 | config mcproxy 'mcproxy_file' |
| 3 | option disabled '1' |
| 4 | option respawn '1' |
| 5 | option file '/etc/mcproxy.conf' |
| 6 | |
| 7 | # Use OpenWrt UCI config |
| 8 | config mcproxy 'mcproxy' |
| 9 | option disabled '1' |
| 10 | option respawn '1' |
| 11 | option protocol 'IGMPv3' |
| 12 | |
| 13 | ########################################### |
| 14 | |
| 15 | # Simple configuration examples |
| 16 | |
| 17 | config instance |
| 18 | option disabled '1' |
| 19 | option name 'proxy1' |
| 20 | list upstream 'eth1' |
| 21 | list downstream 'eth0.2' |
| 22 | |
| 23 | config instance |
| 24 | option disabled '1' |
| 25 | option name 'proxy2' |
| 26 | list upstream 'eth0.2' |
| 27 | list downstream 'eth0.4' |
| 28 | list downstream 'br-lan' |
| 29 | |
| 30 | config instance |
| 31 | option disabled '1' |
| 32 | option name 'proxy3' |
| 33 | list upstream 'eth1.2' |
| 34 | list upstream 'eth1.4' |
| 35 | list downstream 'eth0.1' |
| 36 | |
| 37 | ########################################### |
| 38 | |
| 39 | # Advanced configuration example |
| 40 | |
| 41 | config instance |
| 42 | option name 'A' |
| 43 | list upstream 'ap' |
| 44 | list upstream 'a1' |
| 45 | list downstream 'ap' |
| 46 | list downstream 'a2' |
| 47 | |
| 48 | config instance |
| 49 | option name 'B' |
| 50 | list upstream 'bp' |
| 51 | list upstream 'b1' |
| 52 | list downstream 'bp' |
| 53 | list downstream 'b2' |
| 54 | |
| 55 | config table |
| 56 | option name 'allways' |
| 57 | list entries '(*|*)' |
| 58 | |
| 59 | config table |
| 60 | option name 'piA_peering_ifs' |
| 61 | list entries 'ap(*|*)' |
| 62 | |
| 63 | config table |
| 64 | option name 'piA_upstreams' |
| 65 | list entries 'a1(*|*)' |
| 66 | |
| 67 | config table |
| 68 | option name 'piB_peering_ifs' |
| 69 | list entries 'bp(*|*)' |
| 70 | |
| 71 | config table |
| 72 | option name 'piB_upstreams' |
| 73 | list entries 'b1(*|*)' |
| 74 | |
| 75 | config behaviour |
| 76 | option instance 'A' |
| 77 | option section 'upstream' |
| 78 | option interface '*' |
| 79 | option direction 'in' |
| 80 | option rulematching 'mutex 10' |
| 81 | |
| 82 | config behaviour |
| 83 | option disabled '1' |
| 84 | option instance 'A' |
| 85 | option section 'upstream' |
| 86 | option interface '*' |
| 87 | option direction 'out' |
| 88 | option rulematching 'all' |
| 89 | |
| 90 | config behaviour |
| 91 | option instance 'A' |
| 92 | option section 'upstream' |
| 93 | option interface 'ap' |
| 94 | option direction 'out' |
| 95 | option table 'allways' |
| 96 | |
| 97 | config behaviour |
| 98 | option disabled '1' |
| 99 | option instance 'A' |
| 100 | option section 'upstream' |
| 101 | option interface 'ap' |
| 102 | option direction 'in' |
| 103 | option whitelist '1' |
| 104 | option table '{(*|*)}' |
| 105 | |
| 106 | config behaviour |
| 107 | option instance 'A' |
| 108 | option section 'upstream' |
| 109 | option interface 'a1' |
| 110 | option direction 'out' |
| 111 | option table 'piA_peering_ifs' |
| 112 | |
| 113 | config behaviour |
| 114 | option disabled '1' |
| 115 | option instance 'A' |
| 116 | option section 'upstream' |
| 117 | option interface 'a1' |
| 118 | option direction 'in' |
| 119 | option whitelist '1' |
| 120 | option table '{(*|*)}' |
| 121 | |
| 122 | config behaviour |
| 123 | option instance 'A' |
| 124 | option section 'downstream' |
| 125 | option interface 'ap' |
| 126 | option direction 'in' |
| 127 | option table 'allways' |
| 128 | |
| 129 | config behaviour |
| 130 | option instance 'A' |
| 131 | option section 'downstream' |
| 132 | option interface 'ap' |
| 133 | option direction 'out' |
| 134 | option table 'piA_upstreams' |
| 135 | |
| 136 | config behaviour |
| 137 | option disabled '1' |
| 138 | option instance 'A' |
| 139 | option section 'downstream' |
| 140 | option interface 'a2' |
| 141 | option direction 'in' |
| 142 | option whitelist '1' |
| 143 | option table '{(*|*)}' |
| 144 | |
| 145 | config behaviour |
| 146 | option disabled '1' |
| 147 | option instance 'A' |
| 148 | option section 'downstream' |
| 149 | option interface 'a2' |
| 150 | option direction 'out' |
| 151 | option whitelist '1' |
| 152 | option table '{(*|*)}' |
| 153 | |
| 154 | config behaviour |
| 155 | option instance 'B' |
| 156 | option section 'upstream' |
| 157 | option interface '*' |
| 158 | option direction 'in' |
| 159 | option rulematching 'mutex 10' |
| 160 | |
| 161 | config behaviour |
| 162 | option disabled '1' |
| 163 | option instance 'B' |
| 164 | option section 'upstream' |
| 165 | option interface '*' |
| 166 | option direction 'out' |
| 167 | option rulematching 'all' |
| 168 | |
| 169 | config behaviour |
| 170 | option instance 'B' |
| 171 | option section 'upstream' |
| 172 | option interface 'bp' |
| 173 | option direction 'out' |
| 174 | option table 'allways' |
| 175 | |
| 176 | config behaviour |
| 177 | option disabled '1' |
| 178 | option instance 'B' |
| 179 | option section 'upstream' |
| 180 | option interface 'bp' |
| 181 | option direction 'in' |
| 182 | option whitelist '1' |
| 183 | option table '{(*|*)}' |
| 184 | |
| 185 | config behaviour |
| 186 | option instance 'B' |
| 187 | option section 'upstream' |
| 188 | option interface 'b1' |
| 189 | option direction 'out' |
| 190 | option table 'piB_peering_ifs' |
| 191 | |
| 192 | config behaviour |
| 193 | option disabled '1' |
| 194 | option instance 'B' |
| 195 | option section 'upstream' |
| 196 | option interface 'b1' |
| 197 | option direction 'in' |
| 198 | option whitelist '1' |
| 199 | option table '{(*|*)}' |
| 200 | |
| 201 | config behaviour |
| 202 | option instance 'B' |
| 203 | option section 'downstream' |
| 204 | option interface 'bp' |
| 205 | option direction 'in' |
| 206 | option table 'allways' |
| 207 | |
| 208 | config behaviour |
| 209 | option instance 'B' |
| 210 | option section 'downstream' |
| 211 | option interface 'bp' |
| 212 | option direction 'out' |
| 213 | option table 'piB_upstreams' |
| 214 | |
| 215 | config behaviour |
| 216 | option disabled '1' |
| 217 | option instance 'B' |
| 218 | option section 'downstream' |
| 219 | option interface 'b2' |
| 220 | option direction 'in' |
| 221 | option whitelist '1' |
| 222 | option table '{(*|*)}' |
| 223 | |
| 224 | config behaviour |
| 225 | option disabled '1' |
| 226 | option instance 'B' |
| 227 | option section 'downstream' |
| 228 | option interface 'b2' |
| 229 | option direction 'out' |
| 230 | option whitelist '1' |
| 231 | option table '{(*|*)}' |
| 232 | |
| 233 | config blocks blocks |
| 234 | # mDNS |
| 235 | list entries '(*|239.255.255.0/24)' |
| 236 | # SSDP |
| 237 | list entries '(*|224.0.0.0/24)' |
| 238 | # SLP |
| 239 | list entries '(*|239.192.0.0/16)' |