OPNsense Forum

English Forums => Hardware and Performance => Topic started by: epalzeo on September 15, 2021, 09:39:16 pm

Title: Can't combine throughput with multi wan balancing
Post by: epalzeo on September 15, 2021, 09:39:16 pm
Hi

i've got 2Gbps fiber, with 1Gbps output on ethernet. Using 2 ports of my internet box, i can combine to have 2 gbps. it's working on my computer using socks server which dispatch load on two nics. My box create a subnet at 192.168.1.1 on ethernet 1gbps on each port

i want to combine 2 ports to have 2gbps using mutlti wan balancing
- i use one opnsense after the fiber to have an internet access at subnet 192.168.2.1 with ethernet at 1gbps
- and for my lan, i'm using another powerful (i7) opnsense with
1 nic @ 1gbps as WAN1 192.168.1.1
1 nic @ 1 gbps as WAN2 192.168.2.1
1 nic @ 2.5 gbps for output LAN

i configured gateway group both tier 1 for 192.168.1.1 and 192.168.2.1 gateways. I should combine to be roughly at 2 gbps.

actually, my output lan (normally 2.5 gbps capable) is capped at 1gbps. No combination of bandwidth with my 2 WAN @ 1 Gbps each. If use 2 different computers at the same time, both have 1gbps.

Is it a limitation of opnsense to do 2 multi wan at full 1gbps, and not ne able to combine output at 2gbps with load balancing ?

Thanks
Title: Re: Can't combine throughput with multi wan balancing
Post by: testo_cz on September 19, 2021, 10:27:23 pm
Hi epalzeo

If I understand correctly, your internet box connects (routes) from both its 1Gb Ethernet ports -- similarly to a small (perhaps NAT) router with a two ports on its LAN side.
I'm just thinking, there should be a simpler solution than 2x OPNsense boxes and multi-WAN setups.

Otherwise, I'm afraid, I got only basic understanding of multi-WAN -- thought it helps to route to specific gateways.

T.
Title: Re: Can't combine throughput with multi wan balancing
Post by: Vesalius on September 28, 2021, 03:59:40 pm
Multiwan on *sense will not combine to increase the maximum speed to a single device/connection behind OPNsense. This not something found on any production quality freely available firewall solution, even most paid solutions, that I am aware of. It can be set up to increase the bandwidth (or lanes) to allow two different devices to reach near the combined speed simultaneously.

Look into MPTCP, if you really need to combine those for a single connection. Openwrt has a dev project that makes use of this. https://youtu.be/VlnnH5RtvSE
Title: Re: Can't combine throughput with multi wan balancing
Post by: testo_cz on September 28, 2021, 09:05:27 pm
Hi epalzeo

If I understand correctly, your internet box connects (routes) from both its 1Gb Ethernet ports -- similarly to a small (perhaps NAT) router with a two ports on its LAN side.
I'm just thinking, there should be a simpler solution than 2x OPNsense boxes and multi-WAN setups.

Otherwise, I'm afraid, I got only basic understanding of multi-WAN -- thought it helps to route to specific gateways.

T.

Still thinking about combining of two 1G LAN inputs of such "Internet box" ....
man 4 lagg describes roundrobin policy of link aggregation. This could work , if such Internet box routes everything.

T.