Last active
October 26, 2015 11:32
-
-
Save nerr/0a60d7cf2cde188349a9 to your computer and use it in GitHub Desktop.
mwan3 load balance config file for OpenWRT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### | |
#### interfaces | |
#### | |
config interface 'wan' | |
option enabled '1' | |
list track_ip '8.8.4.4' | |
list track_ip '8.8.8.8' | |
list track_ip '208.67.222.222' | |
list track_ip '208.67.220.220' | |
option reliability '2' | |
option count '1' | |
option timeout '2' | |
option interval '5' | |
option down '3' | |
option up '8' | |
config interface 'wan2' | |
option enabled '1' | |
list track_ip '8.8.4.4' | |
list track_ip '8.8.8.8' | |
list track_ip '208.67.222.222' | |
list track_ip '208.67.220.220' | |
option reliability '1' | |
option count '1' | |
option timeout '2' | |
option interval '5' | |
option down '3' | |
option up '8' | |
config interface 'wan3' | |
option enabled '1' | |
list track_ip '8.8.4.4' | |
list track_ip '8.8.8.8' | |
list track_ip '208.67.222.222' | |
list track_ip '208.67.220.220' | |
option reliability '3' | |
option count '1' | |
option timeout '2' | |
option interval '5' | |
option down '3' | |
option up '8' | |
#### | |
#### members | |
#### | |
config member 'wan_m1_w3' | |
option interface 'wan' | |
option metric '1' | |
option weight '3' | |
config member 'wan_m2_w3' | |
option interface 'wan' | |
option metric '2' | |
option weight '3' | |
config member 'wan2_m1_w2' | |
option interface 'wan2' | |
option metric '1' | |
option weight '2' | |
config member 'wan2_m2_w2' | |
option interface 'wan2' | |
option metric '2' | |
option weight '2' | |
config member 'wan3_m1_w1' | |
option interface 'wan3' | |
option metric '1' | |
option weight '1' | |
config member 'wan3_m2_w1' | |
option interface 'wan3' | |
option metric '2' | |
option weight '1' | |
#### | |
#### policies | |
#### | |
config policy 'wan_only' | |
list use_member 'wan_m1_w3' | |
config policy 'wan2_only' | |
list use_member 'wan2_m1_w2' | |
config policy 'wan3_only' | |
list use_member 'wan3_m1_w1' | |
config policy 'balanced' | |
list use_member 'wan_m1_w3' | |
list use_member 'wan2_m1_w2' | |
list use_member 'wan3_m1_w1' | |
#### | |
#### rules | |
#### | |
config rule 'sticky_even' | |
option src_ip '0.0.0.0/0.0.0.1' | |
option dest_port '443' | |
option proto 'tcp' | |
option use_policy 'wan_only' | |
config rule 'sticky_odd' | |
option src_ip '0.0.0.1/0.0.0.1' | |
option dest_port '443' | |
option proto 'tcp' | |
option use_policy 'wan_only' | |
config rule 'default_rule' | |
option dest_ip '0.0.0.0/0' | |
option use_policy 'balanced' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment