!!!if you don't understand English, use translate.google.com to translate it into Indonesian!!!
- Install Load Balance package first if you don't have it (use terminal)
opkg update; opkg install mwan3 luci-app-mwan3
- Plug in your modems
- Open LuCi IP Address -> Network -> Interface
- Add new interface
- Write interface name
- Protocol interface -> DHCP Client
- Cover the following interface -> ethX (X is number, according your plugged in modems)
- After creating new interface -> back to Network -> Interface
- Edit your written interface name
- Open Firewall Settings tab
- Create / Assign firewall-zone
- goto "unspecified -or- create:"
- Write new firewall name for selected interface
- Open your LuCi IP Address -> Network -> Firewall
- Scroll down and find new firewall you create before, then edit it
- Find this scroll bar, and slide right until
Edit
button appeared
- Click
Edit
button
Zone (this is firewall name)
- Input -> Reject
- Output -> Accept
- Forward -> Reject
- Masquerading -> Checked
- MSS clamping -> Checked
- Covered networks -> interface name
Inter-Zone Forwarding
- Allow forward to destination zones -> dont select anything
- Allow forward from source zones -> lan
Note : Repeat step 2 for every first new ethernet device connected and openwrt can't recognize it in Interface
- Open your LuCi IP Address -> Network -> Load Balancing
- Open Interface tab -> Delete all interface
- Create new Interface with
Interface name inside Network -> Interface
and create new one according your Interface name then click ```Add`` button
- Scroll down and click
Save & Apply
- Open Member tab -> Delete all member
- Create new Member and set Interface to Interface name above and create new one according your Interface name with metric 1 and weight 1
- Click
Save & Apply
- Open Policies tab -> Delete all, except BALANCED
- Edit
Balanced
and setMember used
to Member name above
- Click
Save & Apply
- Open Rules tab -> Delete all, except
DEFAULT_RULE
- Edit
DEFAULT_RULE
- Click
Save & Apply
Note : this load balance settings is created for vpn injection, even no internet, this setting will recognize modem as online device
- Edit
etc/config/mwan3
file using WinSCP or Terminal or Putty - Find created Network Interface name before, i use
ueth1
for an example - Edit config like this (copy and paste it! if it's differents, you can compare these scripts to your config
.........
config interface 'ueth1'
option enabled '1'
option initial_state 'online'
list track_ip '0.0.0.0'
option family 'ipv4'
option track_method 'ping'
option reliability '1'
option check_quality '0'
option keep_failure_interval '1'
option timeout '5'
option interval '3'
option failure_interval '3'
option recovery_interval '1'
option down '5'
option up '5'
option count '4'
option size '24'
...........
- Then copy and paste
config interface 'interface_name'
until end of line of scripts above - Then edit it to other interface name
Note : if you want to set (if no internet connection on interface, then ISP off, then mwan3 restart, then connect to other ISP), just change list track_ip '0.0.0.0'
to list track_ip '8.8.8.8'
or something else.