-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understand and document how to use WAN-WAN connections for connecting different clouds #976
Comments
Just saw that lime-packages/packages/lime-hwd-openwrt-wan/files/usr/lib/lua/lime/hwd/openwrt_wan.lua Lines 32 to 39 in d81c12c
(BMX6 and 7 are added without VLAN, but we cannot do the same with Babeld yet, see #631) So what happens is that the WAN port is not inside br-lan but it has the routing protocols. With a bit of luck, the VLAN of Batman-adv in one cloud and in the neighboring will be different, so that the WAN-WAN connection does not sound like a terrible idea (just an undocumented one). So, in order to use such connections, we just have to document how to disable OpenWrt firewall on the WAN port. |
I added some documentation here: libremesh/libremesh.github.io@ab7491f |
To be checked again. |
Seems that some people are using an ethernet WAN-WAN connection for connecting two different LibreMesh clouds (two networks with different ap_name, that gets used for calculating batman-adv VLAN).
@nicopace can you tell us more on this?
In my opinion, with current LibreMesh to make a WAN-WAN connection or a LAN-LAN connection is equivalent as the WAN port is included in the br-lan bridge by lime-system, see the lime-report output here #951 (comment)
this will stop happening on routers with DSA with the merge of #959 as I didn't include
wan
interfaces in the protocols (including the LAN protocol).Anyway the idea of connecting two clouds via a cable and that the ports used are not in a bridge with the rest of the network makes plenty of sense.
The default behavior of the WAN port should be to access the internet (and be protected by OpenWrt firewall, see #280 and libremesh/libremesh.github.io#139) which is the most common scenario, but the described alternative behavior should be possible to configure via interface-specific configuration.
The documentation of this could be something like:
with this:
in the
/etc/config/firewall
file. See https://openwrt.org/docs/guide-user/firewall/firewall_configuration#zones for more./etc/config/lime-node
the specific-interface configuration for the wan interface, something like:maybe we need a new proto in https://github.com/libremesh/lime-packages/tree/master/packages/lime-system/files/usr/lib/lua/lime/proto for avoiding the need to specify a manual IP.
Which IP would make sense to set there? One in the subnet of the cloud to which the node belongs? Or one from the other cloud, the one the node is connecting to? Or one in a subnet from neither of the two? Or no IP is needed?
The text was updated successfully, but these errors were encountered: