branch Attitude Adjustment packages
[12.09/packages.git] / net / multiwan / files / etc / config / multiwan
1
2 config 'multiwan' 'config'
3         # REMOVE THIS LINE OR PUT TO 1 TO ENABLE MULTIWAN
4         option 'enabled' '0'
5
6         option 'default_route' 'balancer'
7         # health_monitor below is defaulted to parallel, and can be set to
8         # serial to save system resources.
9         # option 'health_monitor' 'serial'
10         # option 'debug' '1'
11
12 config 'interface' 'wan'
13         option 'weight' '10'
14         option 'health_interval' '10'
15         option 'icmp_hosts' 'dns'
16         # icmp_count is defaulted to 1, and can be increased to reduce
17         # false positives.
18         # option 'icmp_count' '3'
19         option 'timeout' '3'
20         option 'health_fail_retries' '3'
21         option 'health_recovery_retries' '5'
22         option 'failover_to' 'wan2'
23         option 'dns' 'auto'
24
25 config 'interface' 'wan2'
26         option 'weight' '10'
27         option 'health_interval' '10'
28         option 'icmp_hosts' 'gateway'
29         option 'timeout' '3'
30         option 'health_fail_retries' '3'
31         option 'health_recovery_retries' '5'
32         option 'failover_to' 'balancer'
33         option 'dns' '208.67.222.222 208.67.220.220'
34
35 config 'mwanfw'
36         option 'src' '192.168.1.0/24'
37         option 'dst' 'ftp.netlab7.com'
38         option 'proto' 'tcp'
39         option 'ports' '21'
40         option 'wanrule' 'wan2'
41
42 # VoIP traffic goes through wan
43 # config 'mwanfw'
44         # option 'src' '192.168.1.0/24'
45         # option 'proto' 'udp'
46         # option 'port_type' 'source-ports'
47         # option 'ports' '5060,16384:16482'
48         # option 'wanrule' 'wan'
49
50 config 'mwanfw'
51         option 'src' '192.168.0.3'
52         option 'proto' 'icmp'
53         option 'wanrule' 'balancer'
54
55 config 'mwanfw'
56         option 'dst' 'www.whatismyip.com'
57         option 'wanrule' 'fastbalancer'