Hello!
If in load-balancing add rule with inverse selection WANLOADBALANCE_PRE chain becomes empty. Example:
[edit load-balancing wan] [email protected]# show rule 10 inbound-interface eth2 interface eth0 { weight 10 } interface eth1 { weight 10 } protocol all [edit load-balancing wan] [email protected]# sudo iptables -t mangle -L WANLOADBALANCE_PRE -n -v Chain WANLOADBALANCE_PRE (1 references) pkts bytes target prot opt in out source destination 0 0 ISP_eth0 all -- eth2 * 0.0.0.0/0 0.0.0.0/0 state NEW statistic mode random probability 0.50000000000 0 0 ISP_eth1 all -- eth2 * 0.0.0.0/0 0.0.0.0/0 state NEW 0 0 CONNMARK all -- eth2 * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore [edit load-balancing wan] [email protected]# set rule 10 destination address !192.168.0.0/16 [edit load-balancing wan] [email protected]# commit [edit load-balancing wan] [email protected]# sudo iptables -t mangle -L WANLOADBALANCE_PRE -n -v Chain WANLOADBALANCE_PRE (1 references) pkts bytes target prot opt in out source destination [edit load-balancing wan]
The same situation will be if add source address !192.168.0.0/16.