Skip to contentSkip to conversation

loadbalance with 2 or more links

DISCUSSION [email protected] 2 participants 2 messages Feb 25, 2020 – Feb 26, 2020

lore
Share & tools
lore
#0 lore raw

Hi

I have been working with iptables and now I'm migrating to nftables ( BTW really nice job netfilter team 80) ).

I have been using http://fatihusta.com/2015/03/07/network/linux-wan-load-balancing/ since nexthop is not working for a long time.

Studing nftables wiki I found 2 solutions:

a) nftbl https://github.com/zevenet/nftlb

nftbl looks like very good, but very complex for a single load balance solution.

or

b) nftables + nat/loadbalance https://wiki.nftables.org/wiki-nftables/index.php/Load_balancing

98% is ok using iptables-restore-translate as example.

As I've been using iptables + mangle + iproute, what is easiest solution to use with 2 or more links ??

Best regards

#1 lore raw
Quoted 12 lines · On Tue, Feb 25, 2020 at 9:03 PM <[email protected]> wrote:

Hi

I have been working with iptables and now I'm migrating to nftables ( BTW really nice job netfilter team 80) ).

I have been using http://fatihusta.com/2015/03/07/network/linux-wan-load-balancing/ since nexthop is not working for a long time.

Studing nftables wiki I found 2 solutions:

a) nftbl https://github.com/zevenet/nftlb

Quoted 8 lines

nftbl looks like very good, but very complex for a single load balance solution.

or

b) nftables + nat/loadbalance https://wiki.nftables.org/wiki-nftables/index.php/Load_balancing

98% is ok using iptables-restore-translate as example.

Both uses the same techniques, mainly for load balance services but probably you could use it for uplinks load balancing as well if you isolate the network interfaces to each router and put the load balancer as the default GW in your LAN.

Quoted 3 lines

As I've been using iptables + mangle + iproute, what is easiest solution to use with 2 or more links ??

We've been using iproute for load balancing uplinks, but it shouldn't be difficult to add it in nftlb as well.

Cheers.