Skip to content

Instantly share code, notes, and snippets.

@milankragujevic
Last active September 30, 2018 22:27
Show Gist options
  • Save milankragujevic/44c0b0a0765ff68c25f7ce0ff260219b to your computer and use it in GitHub Desktop.
Save milankragujevic/44c0b0a0765ff68c25f7ce0ff260219b to your computer and use it in GitHub Desktop.
mwan3 configuration for dual WAN loadbalancing
config globals 'globals'
option local_source 'lan'
option enabled '1'
config interface 'wan'
option enabled '1'
list track_ip '1.1.1.1'
option reliability '1'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'
config interface 'wan2'
option enabled '1'
list track_ip '1.1.1.1'
option reliability '1'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'
config member 'wan_m1_w3'
option interface 'wan'
option metric '1'
option weight '3'
config member 'wan2_m1_w3'
option interface 'wan2'
option metric '1'
option weight '3'
config policy 'wan_only'
list use_member 'wan_m1_w3'
config policy 'wan2_only'
list use_member 'wan2_m1_w3'
config policy 'balanced'
list use_member 'wan_m1_w3'
list use_member 'wan2_m1_w3'
config rule 'https'
option sticky '1'
option dest_port '443'
option proto 'tcp'
option use_policy 'balanced'
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