Skip to content
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/rewrite meshrouting script #151

Open
paidforby opened this issue Oct 10, 2018 · 2 comments
Open

understand/rewrite meshrouting script #151

paidforby opened this issue Oct 10, 2018 · 2 comments

Comments

@paidforby
Copy link

One part of the firmware that is still a mystery to me is the meshrouting script. It probably should be rewritten as a UCI config (using the firewall and network configs?), but first we need to understand the routing rules it is setting. This issue should be used to document those rules.

@eenblam
Copy link
Contributor

eenblam commented Oct 10, 2018

I didn't know where these were, so I had to go digging myself. For reference:

files/opt/mesh/templates/etc/init.d/meshrouting

Shell variables imported by /etc/init.d/meshrouting and /etc/udhcp.user:
files/opt/mesh/templates/etc/sudomesh/home_node

A few more defined for MyNet devices:
files/opt/mesh/templates/etc/sudomesh/mynet_n

@paidforby
Copy link
Author

brain dump regarding current VLAN, interface, bridge setup,

On N600 home nodes VLANs are tied to physical ports. Instead of VLANs, we should describe the open and private networks as being "separate interfaces" that are "firewalled from one another." If we look at /etc/config/network we see that there are six interfaces; ext1mesh, ext2mesh, mesh2, mesh5, open, and priv. ext1mesh and ext2mesh are the extender node interfaces tied to eth0.1 (i.e. port 1) and eth0.2 (i.e. port4), respectively, and are what allow two N600s to "mesh" wiredly (either over a plain ethernet cable or over a mixed ethernet/wireless link). mesh2 and mesh5 are the ad-hoc (2.4Ghz and 5Ghz) interfaces that allow two N600s to "mesh" wirelessly. open is the bridge interface that bridges the public wireless interfaces (open2 and open5), eth0.10 (i.e. port 2), and the the l2tp interface created by tunneldigger. priv is the bridge interface that bridges the private wireless interfaces (priv2 and priv5) and eth0.11 (i.e. port 3). The wireless interfaces are defined in /etc/config/wireless and are tied to either radio0 (the 2.4Ghz radio) or radio1 (the 5Ghz radio). All of these interfaces are then either allowed or blocked from forwarding packets to one another by /etc/init.d/meshrouting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants