-
Notifications
You must be signed in to change notification settings - Fork 73
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
tunneldigger.init: add support for multiple tunneldigger sections #198
Conversation
The init script was not successfully starting tunneldigger when there were multiple tunneldigger sections specified in the config file. The config_cb has been substitued with a handle_td function which is called with a config_foreach, thereby simplifying the script. Signed-off-by: pmelange <[email protected]>
Is there any change that this PR can be merged? We, the freifunk-berlin community, would like to use this. Currently we are patching the file in our build, but we would prefer not to have to patch Thanks. |
An issue arrises when a router is not connected to a wan and only meshes. The wan is not connected to anything, yet tunneldigger tries to make a connection anyhow. To aviod this, the init script has been modified to _not_ make tunnels when they are configured with the bind_interface option. Additionally, a hotplug script has been created to create and destroy tunnels on demand as the interfaces go up and down. The hoplug script only works with tunnels configured with the bind_interface option. More info at freifunk-berlin/firmware#606 Signed-off-by: pmelange <[email protected]>
Another issue with the init script has surfaced. Support for tunneldigger interface which are configured with the bind_interface option are now handled with a hotplug script. |
Can we get a review from someone familiar with the tunneldigger package? @lcb01a maybe? |
@pmelange maybe you can find someone else doing a review of this yourself? |
I had only wanted to offer my changes, but if they are not important to gluon, then I can just simply withdraw the PR. |
Most of us honestly lack the setup to test tunneldigger and people who have submitted the tunneldigger integration have since went silent. Sorry this isn't happening. |
@mweinelt, It's really no problem. I'm developing it all further for freifunk-berlin. |
For posterity
|
The init script was not successfully starting tunneldigger when there
were multiple tunneldigger sections specified in the config file. The
config_cb has been substitued with a handle_td function which is called
with a config_foreach, thereby simplifying the script.
Signed-off-by: pmelange [email protected]