Radovan Jablonov wrote:
Hello,
Has iptables possibility (or will have) to use other load balancing
methods/algorithms (for example: weighted round-robin, hash, load agent,
custom algorithm)?
No, not directly.
If you can set a fwmark based on some criterium you could implement more
advance schemes, but that requires some custom match the YOU have to write.
So a hash based load balancing could be implemented faily easily, just
write a module that sets fwmark based on the hash. I guess more people
would be interested in this . (If only to load balance over multiple
links, f.i.).
Load balancing based on some kind of load agent would be more difficult,
one has to communicate with userspace for this. I imagine many people
would be interested in this.
Weighted round robin is actually fairly easy by using the nth match.
lets say you want 2/3 go to A and 1/2 3 go to B. Just use nth to devide
in 3's and send cases 0 and 1 to A and case 2 to B.
M4