set firewall group address-group WLB-ADDRESS address 192.168.1.98 set firewall group address-group WLB-ADDRESS address 192.168.1.99 set firewall group address-group WLB-ADDRESS address 192.168.1.100 set firewall group port-group WLB-PORT port 20-23 set firewall group port-group WLB-PORT port 25 set firewall group port-group WLB-PORT port 80-81 set firewall group port-group WLB-PORT port 110 set firewall group port-group WLB-PORT port 143 set firewall group port-group WLB-PORT port 443 set firewall group port-group WLB-PORT port 465 set firewall group port-group WLB-PORT port 587 set firewall group port-group WLB-PORT port 993 set firewall group port-group WLB-PORT port 2526 set firewall group port-group WLB-PORT port 4444 set firewall group port-group WLB-PORT port 5060-5061 set firewall group port-group WLB-PORT port 8080 set firewall group port-group WLB-PORT port 8291 set firewall group port-group WLB-PORT port 10000-20000 set firewall modify WLB rule 10 action modify set firewall modify WLB rule 10 destination group port-group WLB-PORT set firewall modify WLB rule 10 modify lb-group FAILOVER set firewall modify WLB rule 10 protocol tcp_udp set firewall modify WLB rule 20 action modify set firewall modify WLB rule 20 modify lb-group FAILOVER set firewall modify WLB rule 20 source group address-group WLB-ADDRESS set firewall modify WLB rule 100 action modify set firewall modify WLB rule 100 modify lb-group BALANCE set interfaces ethernet eth0 address 192.168.1.1/24 set interfaces ethernet eth0 description LAN set interfaces ethernet eth0 firewall in modify WLB set interfaces ethernet eth1 address dhcp set interfaces ethernet eth1 description WAN1 set interfaces ethernet eth1 dhcp-options name-server no-update set interfaces ethernet eth2 address dhcp set interfaces ethernet eth2 description WAN2 set interfaces ethernet eth2 dhcp-options name-server no-update set load-balance group BALANCE interface eth1 route-test type ping target 8.8.4.4 set load-balance group BALANCE interface eth1 weight 40 set load-balance group BALANCE interface eth2 route-test type ping target 8.8.8.8 set load-balance group BALANCE interface eth2 weight 60 set load-balance group FAILOVER interface eth1 route-test type ping target 8.8.4.4 set load-balance group FAILOVER interface eth2 failover-only set load-balance group FAILOVER interface eth2 route-test type ping target 8.8.8.8 set service dhcp-server shared-network-name POOL1 subnet 192.168.1.0/24 default-router 192.168.1.1 set service dhcp-server shared-network-name POOL1 subnet 192.168.1.0/24 dns-server 192.168.1.1 set service dhcp-server shared-network-name POOL1 subnet 192.168.1.0/24 start 192.168.1.101 stop 192.168.1.150 set service dns forwarding listen-on eth0 set service dns forwarding system set service nat rule 6001 outbound-interface eth1 set service nat rule 6001 type masquerade set service nat rule 6002 outbound-interface eth2 set service nat rule 6002 type masquerade set system name-server 8.8.4.4 set system name-server 8.8.8.8 set system time-zone Europe/Sofia