2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'multiwan' 'config'
|
2012-03-07 11:47:48 +00:00
|
|
|
# REMOVE THIS LINE OR PUT TO 1 TO ENABLE MULTIWAN
|
|
|
|
option 'enabled' '0'
|
|
|
|
|
2010-04-16 16:05:03 +00:00
|
|
|
option 'default_route' 'balancer'
|
2010-10-10 20:59:38 +00:00
|
|
|
# health_monitor below is defaulted to parallel, and can be set to
|
|
|
|
# serial to save system resources.
|
|
|
|
# option 'health_monitor' 'serial'
|
|
|
|
# option 'debug' '1'
|
2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'interface' 'wan'
|
2010-04-24 00:29:57 +00:00
|
|
|
option 'weight' '10'
|
2010-04-16 16:05:03 +00:00
|
|
|
option 'health_interval' '10'
|
|
|
|
option 'icmp_hosts' 'dns'
|
2010-10-10 20:59:38 +00:00
|
|
|
# icmp_count is defaulted to 1, and can be increased to reduce
|
|
|
|
# false positives.
|
|
|
|
# option 'icmp_count' '3'
|
2010-04-16 16:05:03 +00:00
|
|
|
option 'timeout' '3'
|
|
|
|
option 'health_fail_retries' '3'
|
|
|
|
option 'health_recovery_retries' '5'
|
2010-04-29 04:35:48 +00:00
|
|
|
option 'failover_to' 'wan2'
|
|
|
|
option 'dns' 'auto'
|
2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'interface' 'wan2'
|
2010-04-24 00:29:57 +00:00
|
|
|
option 'weight' '10'
|
2010-04-16 16:05:03 +00:00
|
|
|
option 'health_interval' '10'
|
2010-04-30 16:01:50 +00:00
|
|
|
option 'icmp_hosts' 'gateway'
|
2010-04-16 16:05:03 +00:00
|
|
|
option 'timeout' '3'
|
|
|
|
option 'health_fail_retries' '3'
|
|
|
|
option 'health_recovery_retries' '5'
|
2010-04-29 04:35:48 +00:00
|
|
|
option 'failover_to' 'balancer'
|
|
|
|
option 'dns' '208.67.222.222 208.67.220.220'
|
2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'mwanfw'
|
2010-10-10 20:59:38 +00:00
|
|
|
option 'src' '192.168.1.0/24'
|
|
|
|
option 'dst' 'ftp.netlab7.com'
|
|
|
|
option 'proto' 'tcp'
|
|
|
|
option 'ports' '21'
|
|
|
|
option 'wanrule' 'wan2'
|
|
|
|
|
|
|
|
# VoIP traffic goes through wan
|
|
|
|
# config 'mwanfw'
|
|
|
|
# option 'src' '192.168.1.0/24'
|
|
|
|
# option 'proto' 'udp'
|
|
|
|
# option 'port_type' 'source-ports'
|
|
|
|
# option 'ports' '5060,16384:16482'
|
|
|
|
# option 'wanrule' 'wan'
|
2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'mwanfw'
|
|
|
|
option 'src' '192.168.0.3'
|
2010-10-10 20:59:38 +00:00
|
|
|
option 'proto' 'icmp'
|
|
|
|
option 'wanrule' 'balancer'
|
2010-04-16 16:05:03 +00:00
|
|
|
|
|
|
|
config 'mwanfw'
|
2010-10-10 20:59:38 +00:00
|
|
|
option 'dst' 'www.whatismyip.com'
|
|
|
|
option 'wanrule' 'fastbalancer'
|