Hi!
Today I was trying to setup a TL-WDR3600 with Libre-Mesh for a specific
setup.
I share here some doubts/strange things:
1)
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].
2)
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'
resulting in
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).
3)
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.
4)
Neither dnsmasq nor dnsmasq-dhcpv6 are a dependency of
dnsmasq-lease-share, why? (anyway up to now I don't need lease-share)
5)
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:
root@LiMeNode-dd6800:/etc/config# lime-config
Clearing wireless config...
Clearing network config...
Disabling odhcpd
sh: /etc/init.d/odhcpd: not found
Cleaning dnsmasq
Disabling 6relayd...
/usr/lib/lua/lime/network.lua:184: table index is nil
stack traceback:
/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
</usr/lib/lua/lime/network.lua:182>
[C]: in function 'xpcall'
/usr/bin/lime-config:13: in function 'main'
/usr/bin/lime-config:29: in main chunk
[C]: ?
Configuring system...
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.
6)
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].
7)
On a clean LiMe installation, ssuing
uci show 1> /dev/null
I get
uci: Entry not found
Can you also see this? I can't get what is missing...
8)
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.
Thanks!
Ilario
[a]
http://lists.libre-mesh.org/pipermail/dev/2014-March/000315.html
[b]
http://libre-mesh.org/issues/32
[c]
https://en.wikipedia.org/wiki/IPv4#Addresses_ending_in_0_or_255
[d]
http://wiki.ninux.org/Libre-Mesh#Selezionare_i_moduli_di_Libre-Mesh
[e]
https://github.com/libre-mesh/lime-packages/blob/develop/packages/lime-syst…
[f]
http://dev.libre-mesh.org/projects/libre-mesh/wiki/Compile_Manually#Startin…
[g]
https://github.com/libre-mesh/lime-packages/blob/0a29a26894ffb73366bc6d6d2b…
[h]
http://uz.sns.it/~ilario/ninux-verona-ilario-architecture-201506.png
--
Ilario Gelmetti
iochesonome(a)gmail.com
igelmetti(a)iciq.es
ilario.gelmetti(a)estudiants.urv.cat