| 1 | package network |
|---|
| 2 | |
|---|
| 3 | config package |
|---|
| 4 | option title 'Network configuration' |
|---|
| 5 | |
|---|
| 6 | config section |
|---|
| 7 | option name 'interface' |
|---|
| 8 | option title 'Network interface' |
|---|
| 9 | option package 'network' |
|---|
| 10 | list depends 'proto=static, ipaddr, netmask' |
|---|
| 11 | list depends 'proto=static, ip6addr' |
|---|
| 12 | list depends 'proto=pppoe, username, password' |
|---|
| 13 | list depends 'proto=ppp, device' |
|---|
| 14 | list depends 'proto=3g, device' |
|---|
| 15 | list depends 'proto=pptp, username, password, server' |
|---|
| 16 | list depends 'proto=dhcp' |
|---|
| 17 | list depends 'proto=none' |
|---|
| 18 | option named 'true' |
|---|
| 19 | option required 'true' |
|---|
| 20 | |
|---|
| 21 | config variable |
|---|
| 22 | option name 'ifname' |
|---|
| 23 | option title 'Physical interface' |
|---|
| 24 | option section 'network.interface' |
|---|
| 25 | |
|---|
| 26 | config variable |
|---|
| 27 | option name 'macaddr' |
|---|
| 28 | option title 'Interface MAC address' |
|---|
| 29 | option section 'network.interface' |
|---|
| 30 | option datatype 'macaddr' |
|---|
| 31 | |
|---|
| 32 | config variable |
|---|
| 33 | option name 'mtu' |
|---|
| 34 | option title 'MTU' |
|---|
| 35 | option section 'network.interface' |
|---|
| 36 | option datatype 'uint' |
|---|
| 37 | |
|---|
| 38 | config variable |
|---|
| 39 | option name 'ipaddr' |
|---|
| 40 | option title 'IPv4 host address' |
|---|
| 41 | option section 'network.interface' |
|---|
| 42 | option datatype 'ip4addr' |
|---|
| 43 | |
|---|
| 44 | config variable |
|---|
| 45 | option name 'netmask' |
|---|
| 46 | option title 'IPv4 network mask' |
|---|
| 47 | option section 'network.interface' |
|---|
| 48 | option datatype 'ip4addr' |
|---|
| 49 | |
|---|
| 50 | config variable |
|---|
| 51 | option name 'gateway' |
|---|
| 52 | option title 'IPv4 gateway' |
|---|
| 53 | option section 'network.interface' |
|---|
| 54 | option datatype 'ip4addr' |
|---|
| 55 | |
|---|
| 56 | config variable |
|---|
| 57 | option name 'bcast' |
|---|
| 58 | option title 'IPv4 broadcast address' |
|---|
| 59 | option section 'network.interface' |
|---|
| 60 | option datatype 'ip4addr' |
|---|
| 61 | |
|---|
| 62 | config variable |
|---|
| 63 | option name 'ip6addr' |
|---|
| 64 | option title 'IPv6 address (CIDR)' |
|---|
| 65 | option section 'network.interface' |
|---|
| 66 | option datatype 'ip6addr' |
|---|
| 67 | |
|---|
| 68 | config variable |
|---|
| 69 | option name 'ip6gw' |
|---|
| 70 | option title 'IPv6 gateway' |
|---|
| 71 | option section 'network.interface' |
|---|
| 72 | option datatype 'ip6addr' |
|---|
| 73 | |
|---|
| 74 | config variable |
|---|
| 75 | option name 'dns' |
|---|
| 76 | option title 'DNS server (IPv4 or IPv6)' |
|---|
| 77 | option section 'network.interface' |
|---|
| 78 | option datatype 'ipaddr' |
|---|
| 79 | option multival 'true' |
|---|
| 80 | |
|---|
| 81 | config variable |
|---|
| 82 | option name 'keepalive' |
|---|
| 83 | option title 'keep-alive' |
|---|
| 84 | option description 'Number of connection failures before reconnect' |
|---|
| 85 | option section 'network.interface' |
|---|
| 86 | option datatype 'uint' |
|---|
| 87 | list depends 'proto=pppoe' |
|---|
| 88 | list depends 'proto=pptp' |
|---|
| 89 | list depends 'proto=ppp' |
|---|
| 90 | list depends 'proto=3g' |
|---|
| 91 | |
|---|
| 92 | config variable |
|---|
| 93 | option name 'demand' |
|---|
| 94 | option title 'Dial on-demand' |
|---|
| 95 | option description 'Number of seconds to wait before closing the connection due to inactivity' |
|---|
| 96 | option section 'network.interface' |
|---|
| 97 | option datatype 'uint' |
|---|
| 98 | list depends 'proto=pppoe' |
|---|
| 99 | list depends 'proto=pptp' |
|---|
| 100 | list depends 'proto=ppp' |
|---|
| 101 | list depends 'proto=3g' |
|---|
| 102 | |
|---|
| 103 | config variable |
|---|
| 104 | option name 'username' |
|---|
| 105 | option title 'Username' |
|---|
| 106 | option section 'network.interface' |
|---|
| 107 | option datatype 'string' |
|---|
| 108 | list depends 'proto=pppoe' |
|---|
| 109 | list depends 'proto=pptp' |
|---|
| 110 | list depends 'proto=ppp' |
|---|
| 111 | list depends 'proto=3g' |
|---|
| 112 | |
|---|
| 113 | config variable |
|---|
| 114 | option name 'password' |
|---|
| 115 | option title 'Password' |
|---|
| 116 | option section 'network.interface' |
|---|
| 117 | option datatype 'string' |
|---|
| 118 | list depends 'proto=pppoe' |
|---|
| 119 | list depends 'proto=pptp' |
|---|
| 120 | list depends 'proto=ppp' |
|---|
| 121 | list depends 'proto=3g' |
|---|
| 122 | |
|---|
| 123 | config variable |
|---|
| 124 | option name 'server' |
|---|
| 125 | option title 'PPTP server' |
|---|
| 126 | option section 'network.interface' |
|---|
| 127 | option datatype 'host' |
|---|
| 128 | list depends 'proto=pptp' |
|---|
| 129 | |
|---|
| 130 | config variable |
|---|
| 131 | option name 'device' |
|---|
| 132 | option title 'Modem device' |
|---|
| 133 | option section 'network.interface' |
|---|
| 134 | option datatype 'device' |
|---|
| 135 | list depends 'proto=ppp' |
|---|
| 136 | list depends 'proto=3g' |
|---|
| 137 | |
|---|
| 138 | config variable |
|---|
| 139 | option name 'defaultroute' |
|---|
| 140 | option title 'Replace default route' |
|---|
| 141 | option section 'network.interface' |
|---|
| 142 | option datatype 'boolean' |
|---|
| 143 | list depends 'proto=ppp' |
|---|
| 144 | list depends 'proto=3g' |
|---|
| 145 | |
|---|
| 146 | config variable |
|---|
| 147 | option name 'peerdns' |
|---|
| 148 | option title 'Use peer DNS' |
|---|
| 149 | option section 'network.interface' |
|---|
| 150 | option datatype 'boolean' |
|---|
| 151 | list depends 'proto=ppp' |
|---|
| 152 | list depends 'proto=3g' |
|---|
| 153 | |
|---|
| 154 | config variable |
|---|
| 155 | option name 'ipv6' |
|---|
| 156 | option title 'Enable IPv6 on PPP link' |
|---|
| 157 | option section 'network.interface' |
|---|
| 158 | option datatype 'boolean' |
|---|
| 159 | list depends 'proto=ppp' |
|---|
| 160 | list depends 'proto=3g' |
|---|
| 161 | |
|---|
| 162 | config variable |
|---|
| 163 | option name 'connect' |
|---|
| 164 | option title 'PPP connect script' |
|---|
| 165 | option section 'network.interface' |
|---|
| 166 | option datatype 'file' |
|---|
| 167 | list depends 'proto=ppp' |
|---|
| 168 | list depends 'proto=3g' |
|---|
| 169 | |
|---|
| 170 | config variable |
|---|
| 171 | option name 'disconnect' |
|---|
| 172 | option title 'PPP disconnect script' |
|---|
| 173 | option section 'network.interface' |
|---|
| 174 | option datatype 'file' |
|---|
| 175 | list depends 'proto=ppp' |
|---|
| 176 | list depends 'proto=3g' |
|---|
| 177 | |
|---|
| 178 | config variable |
|---|
| 179 | option name 'pppd_options' |
|---|
| 180 | option title 'Additional PPP daemon options' |
|---|
| 181 | option section 'network.interface' |
|---|
| 182 | option datatype 'string' |
|---|
| 183 | list depends 'proto=ppp' |
|---|
| 184 | list depends 'proto=3g' |
|---|
| 185 | |
|---|
| 186 | config variable |
|---|
| 187 | option name 'maxwait' |
|---|
| 188 | option title 'Setup wait time' |
|---|
| 189 | option description 'Number of seconds to wait for the device to become ready' |
|---|
| 190 | option section 'network.interface' |
|---|
| 191 | option datatype 'uint' |
|---|
| 192 | list depends 'proto=3g' |
|---|
| 193 | |
|---|
| 194 | config variable |
|---|
| 195 | option name 'apn' |
|---|
| 196 | option title 'Access point (APN)' |
|---|
| 197 | option section 'network.interface' |
|---|
| 198 | option datatype 'string' |
|---|
| 199 | list depends 'proto=3g' |
|---|
| 200 | |
|---|
| 201 | config variable |
|---|
| 202 | option name 'pincode' |
|---|
| 203 | option title 'PIN code' |
|---|
| 204 | option section 'network.interface' |
|---|
| 205 | option datatype 'uint' |
|---|
| 206 | list depends 'proto=3g' |
|---|
| 207 | |
|---|
| 208 | config variable |
|---|
| 209 | option name 'service' |
|---|
| 210 | option title 'Service type' |
|---|
| 211 | option section 'network.interface' |
|---|
| 212 | option type 'enum' |
|---|
| 213 | option required 'true' |
|---|
| 214 | list depends 'proto=3g' |
|---|
| 215 | |
|---|
| 216 | config enum |
|---|
| 217 | option variable 'network.interface.service' |
|---|
| 218 | option value 'umts' |
|---|
| 219 | option title 'UMTS/GPRS' |
|---|
| 220 | |
|---|
| 221 | config enum |
|---|
| 222 | option variable 'network.interface.service' |
|---|
| 223 | option value 'cdma' |
|---|
| 224 | option title 'CDMA' |
|---|
| 225 | |
|---|
| 226 | config enum |
|---|
| 227 | option variable 'network.interface.service' |
|---|
| 228 | option value 'evdo' |
|---|
| 229 | option title 'EV-DO' |
|---|
| 230 | |
|---|
| 231 | config variable |
|---|
| 232 | option name 'proto' |
|---|
| 233 | option title 'Protocol' |
|---|
| 234 | option section 'network.interface' |
|---|
| 235 | option type 'enum' |
|---|
| 236 | option required 'true' |
|---|
| 237 | |
|---|
| 238 | config enum |
|---|
| 239 | option variable 'network.interface.proto' |
|---|
| 240 | option value 'none' |
|---|
| 241 | option title 'Disabled' |
|---|
| 242 | |
|---|
| 243 | config enum |
|---|
| 244 | option variable 'network.interface.proto' |
|---|
| 245 | option value 'dhcp' |
|---|
| 246 | option title 'Retrieve IP address via DHCP' |
|---|
| 247 | option default 'true' |
|---|
| 248 | |
|---|
| 249 | config enum |
|---|
| 250 | option variable 'network.interface.proto' |
|---|
| 251 | option value 'pptp' |
|---|
| 252 | option title 'Interface is a PPTP tunnel endpoint' |
|---|
| 253 | |
|---|
| 254 | config enum |
|---|
| 255 | option variable 'network.interface.proto' |
|---|
| 256 | option value 'static' |
|---|
| 257 | option title 'Interface has static network configuration' |
|---|
| 258 | |
|---|
| 259 | config enum |
|---|
| 260 | option variable 'network.interface.proto' |
|---|
| 261 | option value 'pppoe' |
|---|
| 262 | option title 'Interface is a PPPoE connection' |
|---|
| 263 | |
|---|
| 264 | config enum |
|---|
| 265 | option variable 'network.interface.proto' |
|---|
| 266 | option value 'ppp' |
|---|
| 267 | option title 'Interface is a PPP connection' |
|---|
| 268 | |
|---|
| 269 | config enum |
|---|
| 270 | option variable 'network.interface.proto' |
|---|
| 271 | option value '3g' |
|---|
| 272 | option title '3G UMTS/GPRS connection' |
|---|
| 273 | |
|---|
| 274 | config variable |
|---|
| 275 | option name 'type' |
|---|
| 276 | option title 'Option type' |
|---|
| 277 | option section 'network.interface' |
|---|
| 278 | option type 'enum' |
|---|
| 279 | |
|---|
| 280 | config enum |
|---|
| 281 | option variable 'network.interface.type' |
|---|
| 282 | option value 'bridge' |
|---|
| 283 | option title 'This is a bridge interface' |
|---|
| 284 | |
|---|
| 285 | |
|---|
| 286 | |
|---|
| 287 | config section |
|---|
| 288 | option name 'alias' |
|---|
| 289 | option title 'Alias interface definition' |
|---|
| 290 | option package 'network' |
|---|
| 291 | list depends 'proto=static, ipaddr, netmask' |
|---|
| 292 | list depends 'proto=static, ip6addr' |
|---|
| 293 | option named 'true' |
|---|
| 294 | |
|---|
| 295 | config variable |
|---|
| 296 | option name 'interface' |
|---|
| 297 | option title 'Parent interface' |
|---|
| 298 | option section 'network.alias' |
|---|
| 299 | option valueof 'network.interface' |
|---|
| 300 | option required 'true' |
|---|
| 301 | |
|---|
| 302 | config variable |
|---|
| 303 | option name 'ipaddr' |
|---|
| 304 | option title 'IPv4 host address' |
|---|
| 305 | option section 'network.alias' |
|---|
| 306 | option datatype 'ip4addr' |
|---|
| 307 | |
|---|
| 308 | config variable |
|---|
| 309 | option name 'netmask' |
|---|
| 310 | option title 'IPv4 network mask' |
|---|
| 311 | option section 'network.alias' |
|---|
| 312 | option datatype 'ip4addr' |
|---|
| 313 | |
|---|
| 314 | config variable |
|---|
| 315 | option name 'gateway' |
|---|
| 316 | option title 'IPv4 gateway' |
|---|
| 317 | option section 'network.alias' |
|---|
| 318 | option datatype 'ip4addr' |
|---|
| 319 | |
|---|
| 320 | config variable |
|---|
| 321 | option name 'bcast' |
|---|
| 322 | option title 'IPv4 broadcast address' |
|---|
| 323 | option section 'network.alias' |
|---|
| 324 | option datatype 'ip4addr' |
|---|
| 325 | |
|---|
| 326 | config variable |
|---|
| 327 | option name 'ip6addr' |
|---|
| 328 | option title 'IPv6 address (CIDR)' |
|---|
| 329 | option section 'network.alias' |
|---|
| 330 | option datatype 'ip6addr' |
|---|
| 331 | |
|---|
| 332 | config variable |
|---|
| 333 | option name 'ip6gw' |
|---|
| 334 | option title 'IPv6 gateway' |
|---|
| 335 | option section 'network.alias' |
|---|
| 336 | option datatype 'ip6addr' |
|---|
| 337 | |
|---|
| 338 | config variable |
|---|
| 339 | option name 'dns' |
|---|
| 340 | option title 'DNS server (IPv4 or IPv6)' |
|---|
| 341 | option section 'network.alias' |
|---|
| 342 | option datatype 'ipaddr' |
|---|
| 343 | |
|---|
| 344 | config variable |
|---|
| 345 | option name 'proto' |
|---|
| 346 | option title 'Protocol' |
|---|
| 347 | option section 'network.alias' |
|---|
| 348 | option type 'enum' |
|---|
| 349 | option required 'true' |
|---|
| 350 | |
|---|
| 351 | config enum |
|---|
| 352 | option variable 'network.alias.proto' |
|---|
| 353 | option value 'static' |
|---|
| 354 | option title 'Interface has static network configuration' |
|---|
| 355 | |
|---|
| 356 | |
|---|
| 357 | |
|---|
| 358 | config section |
|---|
| 359 | option name 'route' |
|---|
| 360 | option title 'Static route definition' |
|---|
| 361 | option package 'network' |
|---|
| 362 | |
|---|
| 363 | config variable |
|---|
| 364 | option name 'interface' |
|---|
| 365 | option title 'Interface' |
|---|
| 366 | option section 'network.route' |
|---|
| 367 | option valueof 'network.interface' |
|---|
| 368 | option required 'true' |
|---|
| 369 | |
|---|
| 370 | config variable |
|---|
| 371 | option name 'target' |
|---|
| 372 | option title 'Target IPv4 host or network' |
|---|
| 373 | option section 'network.route' |
|---|
| 374 | option datatype 'ip4addr' |
|---|
| 375 | option required 'true' |
|---|
| 376 | |
|---|
| 377 | config variable |
|---|
| 378 | option name 'netmask' |
|---|
| 379 | option title 'Target IPv4 netmask' |
|---|
| 380 | option section 'network.route' |
|---|
| 381 | option datatype 'ip4addr' |
|---|
| 382 | |
|---|
| 383 | config variable |
|---|
| 384 | option name 'gateway' |
|---|
| 385 | option title 'IPv4 gateway' |
|---|
| 386 | option section 'network.route' |
|---|
| 387 | option datatype 'ip4addr' |
|---|
| 388 | option required 'true' |
|---|
| 389 | |
|---|
| 390 | |
|---|
| 391 | |
|---|
| 392 | config section |
|---|
| 393 | option name 'switch' |
|---|
| 394 | option title 'Section switch' |
|---|
| 395 | option package 'network' |
|---|
| 396 | option named 'true' |
|---|
| 397 | option dynamic 'true' |
|---|
| 398 | option required 'true' |
|---|