====== Ubiquity Unify ====== Routing Traffic Out of WAN2 Based on the Source Network configure set protocols static table 5 route 0.0.0.0/0 next-hop 200.64.2.1 set firewall modify LOAD_BALANCE rule 2500 action modify set firewall modify LOAD_BALANCE rule 2500 modify table 5 set firewall modify LOAD_BALANCE rule 2500 source address 192.168.1.0/24 set firewall modify LOAD_BALANCE rule 2500 protocol all commit;exit Routing Traffic Out of the VPN Interface (vti) Based on the Source configure set firewall modify VPN_Gateway rule 2502 action modify set firewall modify VPN_Gateway rule 2502 modify table 5 set firewall modify VPN_Gateway rule 2502 source address 192.168.2.0/24 set firewall modify VPN_Gateway rule 2502 protocol all set protocols static table 5 interface-route 0.0.0.0/0 next-hop-interface vti0 set interfaces ethernet eth1 vif 2 firewall in modify VPN_Gateway commit;exit Routing Traffic Out of WAN2 Primarily, and WAN1 on Failover Based on the Source configure set load-balance group wan2_failover interface eth3 set load-balance group wan2_failover interface eth2 failover-only set firewall modify LOAD_BALANCE rule 2000 action modify set firewall modify LOAD_BALANCE rule 2000 modify lb-group wan2_failover set firewall modify LOAD_BALANCE rule 2000 source address 192.168.1.0/24 commit;exit Excluding Certain Traffic From Load-Balancing configure set firewall modify LOAD_BALANCE rule 2450 action accept set firewall modify LOAD_BALANCE rule 2450 source address 192.168.2.0/24 set firewall modify LOAD_BALANCE rule 2450 destination address 192.168.1.0/24 [[https://help.ubnt.com/hc/en-us/articles/360005460813-UniFi-USG-Advanced-Policy-Based-Routing-#5|Quelle]]