source: packages/net/multiwan/files/etc/config/multiwan @ 20925

Last change on this file since 20925 was 20925, checked in by jow, 7 years ago

[packages] add multiwan, a simple to use multi wan configuration agent

File size: 1.5 KB
Line 
1
2config 'multiwan' 'config'
3        option 'default_route' 'balancer'
4        option 'resolv_conf' '/tmp/resolv.conf.auto'
5
6config 'interface' 'wan'
7        option 'weight' '5'
8        option 'health_interval' '10'
9        option 'icmp_hosts' 'dns'
10        option 'timeout' '3'
11        option 'health_fail_retries' '3'
12        option 'health_recovery_retries' '5'
13        option 'failover_to' 'balancer'
14
15config 'interface' 'wan2'
16        option 'weight' '5'
17        option 'health_interval' '10'
18        option 'icmp_hosts' 'dns'
19        option 'timeout' '3'
20        option 'health_fail_retries' '3'
21        option 'health_recovery_retries' '5'
22        option 'failover_to' 'wan3'
23
24config 'interface' 'wan3'
25        option 'weight' 'disable'
26        option 'health_interval' 'disable'
27        option 'icmp_hosts' 'gateway'
28        option 'timeout' '3'
29        option 'health_fail_retries' '3'
30        option 'health_recovery_retries' '5'
31        option 'failover_to' 'disable'
32
33config 'interface' 'wan4'
34        option 'weight' '3'
35        option 'health_interval' '20'
36        option 'icmp_hosts' '208.67.222.222 208.67.220.220'
37        option 'timeout' '3'
38        option 'health_fail_retries' '3'
39        option 'health_recovery_retries' '5'
40        option 'failover_to' 'wan'
41
42config 'mwanfw'
43        option 'src' '192.168.1.0/24'
44        option 'dst' 'ftp.netlab7.com'
45        option 'proto' 'tcp'
46        option 'ports' '21'
47        option 'wanrule' 'wan4'
48
49config 'mwanfw'
50        option 'proto' 'tcp'
51        option 'ports' '21'
52        option 'wanrule' 'wan2'
53
54config 'mwanfw'
55        option 'src' '192.168.0.3'
56        option 'proto' 'icmp'
57        option 'wanrule' 'wan'
58
59config 'mwanfw'
60        option 'dst' 'www.whatismyip.com'
61        option 'wanrule' 'balancer'
62
63
Note: See TracBrowser for help on using the repository browser.