# mwan

* [OS](#os)
* [OpenMPTCProuter](#openmptcprouter)
* [VyOS](#vyos)
* [ClearOS](#clearos)
* [Linux Bond](#linux-bond)
* [Multipath TCP MPTCP](#multipath-tcp-mptcp)
  * [kernel >= v5.6](#kernel--v56)
  * [kernel <= 5.4](#kernel--54)
* [L4](#l4)

## OS

* [OpenWRT mwan3](/openwrt/mwan3.md)
* [Mikrotik](/nw/mikrotik.md)
* OpenBSD: <https://www.openbsd.org/faq/pf/pools.html#outgoing>
* pfSense: <https://www.cyberciti.biz/faq/howto-configure-dual-wan-load-balance-failover-pfsense-router/>

## OpenMPTCProuter

* OpenWRT+MPTCP+Shadowsocks+Glorytun(multipath UDP tunnel): <https://www.openmptcprouter.com/screenshot>
* default login: root / \<no\_pass> ; then config:

## VyOS

* <https://wiki.vyos.net/wiki/WAN\\_load\\_balancing>
* <https://docs.vyos.io/en/equuleus/configuration/loadbalancing/index.html> | incompatible with dynamic routing protocol

## ClearOS

* network config: <https://documentation.clearos.com/content:en\\_us:7\\_ug\\_network>
* mwan: <https://www.clearos.com/marketplace/network/Multi-WAN>
* skip wizard: <https://w.x.y.z:81/app/base/wizard/stop>

## Linux Bond

<https://www.kernel.org/doc/Documentation/networking/bonding.txt>

```
cat /proc/net/bonding/*
```

<https://wiki.mikrotik.com/wiki/Manual:Interface/Bonding#Bonding\\_modes>

Bonding vs Load Balancing: <https://di-marco.net/blog/it/2022-01-29-multi\\_wan\\_and\\_internet\\_bonding\\_with\\_openmptcprouter/>

## Multipath TCP (MPTCP)

Year 2013 | PPT | 185 pages: <http://multipath-tcp.org/data/MultipathTCP-netsys.pdf>

### kernel >= v5.6

<https://www.mptcp.dev/> <https://github.com/multipath-tcp/mptcp\\_net-next/wiki>

### kernel <= 5.4

<https://www.multipath-tcp.org/>

## L4

* OpenWRT： /cgi-bin/luci/admin/services/[passwall](https://github.com/xiaorouji/openwrt-passwall/issues/2463)/haproxy
* v2ray: <https://toutyrater.github.io/routing/balance2.html>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.ferro.pro/nw/mwan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
