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

Feature request: Terminal command to set Allow other MESH nodes to use my WAN setting to ON #902

Closed
km6lslf opened this issue Jul 18, 2023 · 6 comments

Comments

@km6lslf
Copy link

km6lslf commented Jul 18, 2023

In a recent discussion with a fellow RACES member about potential operational scenarios, there were multiple situations where quickly turning on multiple nodes Allow other MESH nodes to use my WAN setting to on would be very helpful.

If this can be done over SSH, that would allow the command to be sent to all desired nodes by an authorized user using a script rather than logging into each node individually and tweaking the setting. Can this be done currently? If not, could the feature be added?

@aanon4
Copy link
Contributor

aanon4 commented Jul 18, 2023

I would recommend looking at Ansible which is a tool design for setting up configurations on multiple systems remotely in a very flexible way. I use it myself for updating and running tests on my two dozen test nodes.

Actually modifying this particular setting is relatively easy. On the Advanced Configuration page on each setting you'll see some small text reading, for example, aredn.@wan[0].olsrd_gw. This is a property in the UCI system (see OpenWRT for more information on that) which can be modified from the command line.

@km6lslf
Copy link
Author

km6lslf commented Jul 18, 2023

Thanks, I was considering Ansible for this.

I ran the uci set aredn.@wan[0].olsrd_gw='1' command, then uci commit

When set that way it didn't seem to actually provide internet access to a node 1 hop away. I noticed it wasn't prompting me to reboot, but I rebooted anyway hoping it may help. The setting persisted in the ON status, but the mesh connected node still doesn't seem to get internet access from it. Any ideas?

@aanon4
Copy link
Contributor

aanon4 commented Jul 18, 2023

From memory (so please check by looking at the code in the advanced configuration page) it goes something like this:

uci set aredn.@wan[0].olsrd_gw='1'
uci -c /etc/config.mesh set aredn.@wan[0].olsrd_gw='1'
/usr/loca/bin/node-setup -a mesh
reboot

@km6lslf
Copy link
Author

km6lslf commented Jul 18, 2023

Thanks! For anyone else following along, there does not appear to be usr directory when I used ls. I used find and found the file at /rom/usr/local/bin/node-setup

Still no luck on getting internet passed to a node 1 hop away... tested with 2 different nodes now.

@aanon4
Copy link
Contributor

aanon4 commented Jul 19, 2023

Bit odd that you didn't find a /usr directory. Nothing would work if that was missing.

Also, I didn't get it quite right.

uci set aredn.@wan[0].olsrd_gw='1'
uci -c /etc/config.mesh set aredn.@wan[0].olsrd_gw='1'
uci commit aredn
uci -c /etc/config.mesh commit aredn
/usr/local/bin/node-setup -a mesh
reboot

@ab7pa ab7pa closed this as completed Jul 19, 2023
@km6lslf
Copy link
Author

km6lslf commented Jul 19, 2023

Did that work for you when you tried it? I had to add "rom" before the /usr/... but aside from that the commands look like they executed OK, but when I checked the node it didn't have the setting turned on. I turned it on in the advanced configuration page, but still couldn't get internet on a mesh-connected Nanostation on my roof...

Could this be a bug on haps?

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

3 participants