-
Notifications
You must be signed in to change notification settings - Fork 34
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 config change, bind to interface #606
Comments
An issue arrises when 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. There were 80 log entries in 10 seconds, which repeat five seconds later.
I see two possible solutions.
I am willing to make the changes, but I want to know what the development group thinks before I go making changes. |
If the node is not connect to wan, but meshes, tunneldigger will attept to build the tunnel though the smart gw. This creates an undesired loopback. The solition is to add option bind_interface 'wan' This issue is described in freifunk-berlin/firmware#606
There is an issue at wlanslovenija/tunneldigger#84 |
Please add a hotplug script that starts/stops the tunneldigger service. We did the same for openvpn. |
OK. So now the question is, should we keep using and patching the gluon tunneldigger (it is just a Makefile, initscript, and sample config file). Or should we just make our own tunneldigger package. The gluon script grabs the source code from wlanslovenia. We could do that just as easily. Where would our version of tunneldigger go? in firmware-packages/utils, firmware-packages/addons or firmware-packages/defaults? Will the build env always take our tunneldigger package over the one from gluon? Or should we name it freifunk-berlin-tunneldigger to aviod any conflicts? |
We can add the hotplug script to the defaults package for tunneldigger. It only has to trigger a start and stop. Why should we create/fork a new tunneldigger package? |
I have a rewritten init script and a functioning hotplug script. I'm still not sure how to package this into the firmware. Here are my ideas:
All of these options do not force us to fork tunneldigger. |
Can you upload your work somewhere and reference it here? Why do you have to rewrite the init script? The hotplug script can be part of this package https://github.com/freifunk-berlin/firmware-packages/tree/master/uplinks/freifunk-berlin-uplink-tunnelberlin-tunneldigger-files and this package https://github.com/freifunk-berlin/firmware-packages/tree/master/addons/freifunk-berlin-bbbdigger as far as I can tell. |
The new init script is https://github.com/pmelange/Temporary-Files/blob/master/tunneldigger.init The init script and the hotplug script are written to be independent of the tunnel (uplink-tunnelberlin-tunneldigger or bbbdigger or whatever). The changes to the init script are:
The hotplug script:
I would not add this to either uplink-tunnelberlin-tunneldigger or bbbdigger. These belong with the tunneldigger package. |
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 tunnel configured with the bind_interface option. More info at #606
There is a new PR to handle this. #614 |
This seems to new be intergrated properly. closing |
This applies to both ffuplink and bbbdigger.
If the node is not connect to wan, but meshes, tunneldigger will attept to build the tunnel though another the smart gw. This creates an undesired loopback. The solition is to add
option bind_interface 'wan'
.Changing the option solves this problem But leads to another. Even though the wan interface is not up, tunneldigger tries to connect. This produces a lot of log entries.
I see two pssible solutions. [Edit, see below]
The text was updated successfully, but these errors were encountered: