freifunk-berlin / firmware

DEPRECATED: Build system for Berlin firmware. Please user the pinned falter-repos instead
https://berlin.freifunk.net
GNU General Public License v3.0
74 stars 34 forks source link

Erweiterung des Wizards zur dynamischen Auswahl des Uplinks #601

Open SvenRoederer opened 5 years ago

SvenRoederer commented 5 years ago

In verschiedenen Issues wurde festgestellt, dass der Wizard die Möglichkeit bieten soll, den verwendeten Uplink auszuwählen. Dadurch vermeiden wir die Erzeugung von einem separaten Image je Uplink (https://github.com/freifunk-berlin/firmware/issues/534) und kommen nah an die Möglichkeit den Uplink-typen zu wechseln (hierzu gibt es ein paar Gedanken (https://github.com/freifunk-berlin/firmware/issues/578).

Vom Ablauf her könnte es so funktionieren:

Bei einem Upgrade muss dann mittels 'uci get ffberlin-uplink.preset.current' der aktuelle uplink-type ermittelt und automatisch installiert werden. Ob hier immer die default-settings des Uplinks gesetzt werden sollen oder ggf. Useranpassungen beibehalten werden, ist noch zu entscheiden.

pmelange commented 5 years ago

I find this a good idea. But please post issues in English.

One thing that I thought of is this: We can take the uplink package description and use it on the new wizard page described above. This can be made more descriptive than just the name of the package. This could also include instructions on how to get the cert and key (if needed).

Here is an example of what we have now (Hedy 1.0.x).

~# opkg list "freifunk-berlin-uplink*"
freifunk-berlin-uplink-notunnel-files - 0.0.5-1 - Freifunk Berlin files to setup a uplink without any
 tunnel.
 upstream traffic will be directly routed via your network
freifunk-berlin-uplink-tunnelberlin-files - 0.0.2-1 - Freifunk Berlin files to setup a tunnel to route all
 upstream traffic to these community-internet-gateways
freifunk-berlin-uplink-vpn03-files - 0.0.4-1 - Freifunk Berlin VPN03 files
bobster-galore commented 5 years ago

I understood that the notunnel flavour is the base, since this is already necessary to set up the router? Which entries for "uci get ffberlin-uplink.preset.current" are known today? I see "vpn03_openvpn".

pmelange commented 5 years ago

In each of the freifunk-berlin-uplink directories, there is a file uci-default/freifunk-berlin-[uplink name]. This is where the property is first set. In Hedy 1.0.1 we have "no-tunnel", "tunnelberlin_openvpn", "vpn03_openvpn". Since then @SvenRoederer has added "ipredator_openvpn" and I have added "tunnelberlin_tunneldigger"

pmelange commented 5 years ago

Some other ideas:

pmelange commented 5 years ago

This issue is related to https://github.com/freifunk-berlin/firmware/issues/603