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] Configure static routes that are persistent across reboots and firmware upgrades #482

Closed
dranch opened this issue Aug 19, 2022 · 2 comments
Assignees

Comments

@dranch
Copy link

dranch commented Aug 19, 2022

Creating this issue by request from KN6PLV to make sure it's not lost:

Request: Is there a place that I can configure static routes on a HaP running AREDN that will be reloaded upon reboot as well across firmware updates?

Tim response: There’s a file “/etc/local/mesh-firewall/59-custom-rules” which is just a shell script executed when the firewall is reloaded.
It’s preserved across upgrades - you could pop stuff in there but … kind of .. bit messy. There’s probably a more official openwrt way to do it involving files in /etc/config … but we mess with those quite extensively so off the top of my head I couldn’t say if custom changes are preserved or not

@aanon4 aanon4 self-assigned this Aug 26, 2022
@aanon4
Copy link
Contributor

aanon4 commented Aug 26, 2022

This appears to be the official way to add static routes - https://openwrt.org/docs/guide-user/network/routing/routes_configuration - so I just need to implement a mechanism so we can include extra routes when we regenerate our /etc/config/network file. I think we already have a way include files in our config files so probably not too hard.

@aanon4
Copy link
Contributor

aanon4 commented Oct 18, 2022

Fixed in nightly.

@aanon4 aanon4 closed this as completed Oct 18, 2022
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