I hereby claim:
- I am braian87b on github.
- I am braianbressan (https://keybase.io/braianbressan) on keybase.
- I have a public key ASAifRfK_hQ9kGG9xdj0bOFTA3DjfRBO7H2F9fgWQWzo2go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Relevant info about this: | |
https://forum.lede-project.org/t/lenovo-iomega-ez-media-backup-center/5031/ # "Lenovo Iomega EZ Media & Backup Center" | |
https://forum.doozan.com/read.php?2,35331,35434#msg-35434 # "Lenovo iomega EZ support" but read entire thread if it is possible | |
https://forum.doozan.com/read.php?2,15887 # "Debian on Iomega EZ Media & Backup Center" this is another thread about | |
https://forum.doozan.com/read.php?2,12096 # "Linux Kernel 4.14.1 Kirkwood package and Debian rootfs" Kernel and rootfs, thanks to this it is possible to run Debian | |
# Newer kernel guide: | |
https://gist.github.com/koczaj/a20ed52c969a8d0612986ca576067876 | |
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian) | |
See ip with: | |
ip addr show |
# My documentation: | |
# | |
# Important: this works well on OpenWRT 15.05.1, on newer versions there was some breaking changes, for example, the wan ifaces have ipv6 capability and now are named with letters ("wan, wanb... , wanc" instead of "wan, wan2... wan3" so wanb6 means 2nd wan ipv6.): https://github.com/openwrt/packages/blob/master/net/mwan3/files/etc/config/mwan3 | |
# | |
# We have Interfaces, Members, Policyes y Rules: | |
# | |
# Interfaces: Allows to identify the wan interface, we just need to have it enabled` | |
# the others parameters are only to track if the interface it is up or down. | |
# | |
# Members: Can be defined in some metric and weight, both values will be important ambos when used in policyes. |
# Linux Interface Bonding on Wireless Link (OpenWrt / LEDE) | |
# Attention: This was not tested yet. | |
# Important: WLAN Interfaces must be AP - STA, it does not work in ad-hoc - infraestructure mode. | |
# This "Adds" two interfaces in to one. In this sample we are using Wireless Interfaces | |
# Should be equally configured on both ends, even the hash function for the distribution of data packets | |
# Intallation of required packages: |
# Client Bridged / Client Mode / RelayD and IGMPProxy (It works) | |
# RelayD is to redirect packages and IGMP is for redirect IGMP packages | |
# Our network is 192.168.1.0/24 | |
# Steps: | |
# Configure WAN as static | |
# We should edit our wan iface and put static IP | |
uci set network.wan='interface' | |
uci set network.wan.proto='static' | |
uci set network.wan.ipaddr='192.168.1.239' # Main Network IP |
In experience to get a proper working multiple wan configuration using mwan3 starting from scratch you should:
Important: this works well on OpenWRT 15.05.1, on newer versions there was some breaking changes, for example, the wan ifaces have ipv6 capability and now are named with letters ("wan, wanb... , wanc" instead of "wan, wan2... wan3" so wanb6 means 2nd wan ipv6.): https://github.com/openwrt/packages/blob/master/net/mwan3/files/etc/config/mwan3
The official documentation seems to be very detailed and up to date, I recommend reading those first: https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3 but I recommend to give a look at my config file below, since my approach for policyes is very nice.
First of all: Activate conntrack, docs says that is important and neccesary to get MWAN3 work properly, and it is needed to reboot:
# Instructions to Install OpenWRT or LEDE on WD MBL Western Digital MyBookLive (Tested on Single, but it should work on Duo too) | |
# ------------------------------------------------------------------------------------ | |
# Initial preparation (Using a Debian VM) | |
# ------------------------------------------------------------------------------------ | |
# Recommended to use a Linux / Debian box with wget, dd, gunzip, lsblk | |
# Using a Debian box (it could be a VM) with the harddrive connected (it could be a minimal net-install Debian) | |
See ip with: | |
ip addr show |
# This is to use on image building process to make TP-Link have autoconfigured with factory SSID and KEY | |
mkdir ./files/etc/uci-defaults/ | |
cat <<'__EOF__' > ./files/etc/uci-defaults/99_default-no-eth.sh | |
#!/bin/sh | |
[ "$(uci -q get system.@system[0].init)" = "" ] && exit 0 | |
[ -e /etc/init ] && exit 0 | |
touch /etc/init | |
uci batch <<EOC |
# This is done by luci (it just sets defaults and assigns an ID to each vlan entry) | |
uci set network.@switch[0].mirror_source_port='0' | |
uci set network.@switch[0].mirror_monitor_port='0' | |
uci set network.@switch_vlan[0].vid='1' | |
uci set network.@switch_vlan[1].vid='2' | |
# For tl-wr1043nd-v2: | |
# Switch, LAN (on tl-wr1043nd-v2 we must enable tagging on CPU port 0) | |
uci set network.@switch_vlan[0].ports='0t 1 2 3 4' # previously '0 1 2 3 4' | |
# Switch, WAN |
# ==================================================================================== | |
# Steps for Main Router (must have connected internet on WAN port) | |
# ==================================================================================== | |
# Set your network IP address configuration default is 192.168.1.0/24 | |
uci set network.lan.ipaddr='192.168.1.1' | |
# Recommended, to identify on network and when logged on | |
uci set system.@system[0].hostname='MainRouter' | |
uci set network.lan.hostname="`uci get system.@system[0].hostname`" |