Today I was trying to setup a TL-WDR3600 with Libre-Mesh for a specific
I share here some doubts/strange things:
I still see the "br-lan: received packet on bat0 with own address as
source address" every 10 seconds, even if the router is not connected to
any cable and the wifi is switched off. The problem is known [a] but
marked as not possible to solve [b].
I was expecting the default IPv4 to be autocompleted using MAC address,
something like 192.0.2.%M6 (%M6 = the last field of MAC address) indeed
the standard configuration for IPv4 is
config lime network
option main_ipv4_address '192.0.2.0/24'
root@LiMeNode-dd6800:~# ip -4 address show br-lan
6: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
state UP group default
inet 192.0.2.0/24 brd 192.0.2.255 scope global br-lan
valid_lft forever preferred_lft forever
that is a awful ip for an host because it is indeed a subnet identifier
[c] (using %M6 this would happen only if the mac address ends with 00).
A dev (maybe G10?) suggested me to deselect in menuconfig the
Network/odhcpd [d]. Is odhcpd a problem? Anyway I need a dhcp server so
I selected dnsmasq-dhcpv6.
Neither dnsmasq nor dnsmasq-dhcpv6 are a dependency of
dnsmasq-lease-share, why? (anyway up to now I don't need lease-share)
At the WAN port I will connect the ADSL modem, so it seemed a good idea
to specify this in the /etc/config/lime file:
config net eth0_2 #this name can't contain points
list protocols 'wan'
But then I get this:
Clearing wireless config...
Clearing network config...
sh: /etc/init.d/odhcpd: not found
/usr/lib/lua/lime/network.lua:184: table index is nil
/usr/bin/lime-config:13: in function </usr/bin/lime-config:13>
[C]: in function 'foreach'
/usr/lib/lua/lime/config.lua:21: in function 'foreach'
/usr/lib/lua/lime/network.lua:184: in function
[C]: in function 'xpcall'
/usr/bin/lime-config:13: in function 'main'
/usr/bin/lime-config:29: in main chunk
Let uhttpd listen on IPv4/IPv6
(the error about odhcpd can be safely ignored)
G10 suggested me to add the interface name via linux_name [e]
config net eth0_2
list protocols 'wan'
option linux_name 'eth0.2'
and I realized that in order to work this section needs the package
lime-proto-wan, a warning about the missing package could be useful.
Having removed the OpenWRT's firewall (on LiMe dev's suggestion [f]) the
masquerading from lan to wan wasn't there, so I added
iptables -t nat -A POSTROUTING -o eth0.2 -j MASQUERADE
in /etc/rc.local (thanks to G10 for this indication).
Wouldn't be better to include the masquerading in lime-proto-wan?
Obviously this should also check is the firewall package is present and
in this case avoid running the masquerade command.
Something similar is this already present in bmx6-auto-gw-mode [g].
On a clean LiMe installation, ssuing
uci show 1> /dev/null
uci: Entry not found
Can you also see this? I can't get what is missing...
In a setup where I connect both a Libre-Mesh device and a airos device
to the same port of the WDR3600 (via a switch) [h], do I need to use the
lime-hwd-ground-routing? I think not so because there's only one
non-LiMe device connected.