Updated for better use with ppp and dns requests
git-svn-id: svn://svn.openwrt.org/openwrt/packages@21116 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6cc84b6561
commit
dfb4bc4c6f
@ -8,7 +8,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=multiwan
|
PKG_NAME:=multiwan
|
||||||
PKG_VERSION:=1.0k
|
PKG_VERSION:=1.0l
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
@ -16,9 +16,10 @@ include $(INCLUDE_DIR)/package.mk
|
|||||||
define Package/multiwan
|
define Package/multiwan
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+ip +iptables +iptables-utils +iptables-mod-conntrack +iptables-mod-conntrack-extra
|
DEPENDS:=+ip +iptables +iptables-utils +iptables-mod-conntrack +iptables-mod-conntrack-extra +iptables-mod-ipopt
|
||||||
TITLE:=Simple multi WAN configuration
|
TITLE:=Simple multi WAN configuration
|
||||||
URL:=ftp://ftp.netlab7.com/
|
URL:=ftp://ftp.netlab7.com/
|
||||||
|
MAINTAINER:=Craig M. Coffee <craigc@netlab7.com>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/multiwan/description
|
define Package/multiwan/description
|
||||||
|
@ -4,7 +4,7 @@ config 'multiwan' 'config'
|
|||||||
option 'resolv_conf' '/tmp/resolv.conf.auto'
|
option 'resolv_conf' '/tmp/resolv.conf.auto'
|
||||||
|
|
||||||
config 'interface' 'wan'
|
config 'interface' 'wan'
|
||||||
option 'weight' '5'
|
option 'weight' '10'
|
||||||
option 'health_interval' '10'
|
option 'health_interval' '10'
|
||||||
option 'icmp_hosts' 'dns'
|
option 'icmp_hosts' 'dns'
|
||||||
option 'timeout' '3'
|
option 'timeout' '3'
|
||||||
@ -13,7 +13,7 @@ config 'interface' 'wan'
|
|||||||
option 'failover_to' 'balancer'
|
option 'failover_to' 'balancer'
|
||||||
|
|
||||||
config 'interface' 'wan2'
|
config 'interface' 'wan2'
|
||||||
option 'weight' '5'
|
option 'weight' '10'
|
||||||
option 'health_interval' '10'
|
option 'health_interval' '10'
|
||||||
option 'icmp_hosts' 'dns'
|
option 'icmp_hosts' 'dns'
|
||||||
option 'timeout' '3'
|
option 'timeout' '3'
|
||||||
|
@ -601,7 +601,7 @@ ip route flush table 123 > /dev/null 2>&1
|
|||||||
|
|
||||||
for TABLE in 123
|
for TABLE in 123
|
||||||
do
|
do
|
||||||
ip route | grep link | while read ROUTE
|
ip route | grep link | grep -Ev ^default | while read ROUTE
|
||||||
do
|
do
|
||||||
ip route add table $TABLE to $ROUTE
|
ip route add table $TABLE to $ROUTE
|
||||||
done
|
done
|
||||||
@ -657,7 +657,7 @@ ip route flush table $iprule > /dev/null 2>&1
|
|||||||
|
|
||||||
for TABLE in $iprule
|
for TABLE in $iprule
|
||||||
do
|
do
|
||||||
ip route | grep link | while read ROUTE
|
ip route | grep link | grep -Ev ^default | while read ROUTE
|
||||||
do
|
do
|
||||||
ip route add table $TABLE to $ROUTE
|
ip route add table $TABLE to $ROUTE
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user