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

git-svn-id: svn://svn.openwrt.org/openwrt/packages@20925 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow
2010-04-16 16:05:03 +00:00
parent fe9300a06e
commit 4df8439004
4 changed files with 1080 additions and 0 deletions

View File

@ -0,0 +1,63 @@
config 'multiwan' 'config'
option 'default_route' 'balancer'
option 'resolv_conf' '/tmp/resolv.conf.auto'
config 'interface' 'wan'
option 'weight' '5'
option 'health_interval' '10'
option 'icmp_hosts' 'dns'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'failover_to' 'balancer'
config 'interface' 'wan2'
option 'weight' '5'
option 'health_interval' '10'
option 'icmp_hosts' 'dns'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'failover_to' 'wan3'
config 'interface' 'wan3'
option 'weight' 'disable'
option 'health_interval' 'disable'
option 'icmp_hosts' 'gateway'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'failover_to' 'disable'
config 'interface' 'wan4'
option 'weight' '3'
option 'health_interval' '20'
option 'icmp_hosts' '208.67.222.222 208.67.220.220'
option 'timeout' '3'
option 'health_fail_retries' '3'
option 'health_recovery_retries' '5'
option 'failover_to' 'wan'
config 'mwanfw'
option 'src' '192.168.1.0/24'
option 'dst' 'ftp.netlab7.com'
option 'proto' 'tcp'
option 'ports' '21'
option 'wanrule' 'wan4'
config 'mwanfw'
option 'proto' 'tcp'
option 'ports' '21'
option 'wanrule' 'wan2'
config 'mwanfw'
option 'src' '192.168.0.3'
option 'proto' 'icmp'
option 'wanrule' 'wan'
config 'mwanfw'
option 'dst' 'www.whatismyip.com'
option 'wanrule' 'balancer'