[PATCH] fff-gateway: Add examples
Fabian Bläse
fabian at blaese.de
So Sep 8 20:52:01 CEST 2019
Moin,
guter Punkt, Beispiele sollten auf jeden Fall noch rein.
Die Beispiele von hier sind aber schon etwas veraltet, Upstream haben wir die Optionen noch etwas verändert. Siehe hier:
https://gist.github.com/fblaese/138aa8516c614eb8869dcacfd659dcc2 (wobei sich auch dazu noch eine Kleinigkeit geändert hat, siehe hier: https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/2019-August/015921.html)
Ich bin mir noch nicht sicher, ob ich die Defaults auf die einzelnen Packages verteilen wollen würde.
Zumindest für so Dinge wie Wireguard, GRE, .. (die ja optional sind) wäre das denke ich eigentlich gut.
Gruß
Fabian
On 08.09.19 17:03, Tim Niemeyer wrote:
> Signed-off-by: Tim Niemeyer <tim at tn-x.org>
> ---
>
> .../fff/fff-gateway/files/etc/config/gateway | 51 +++++++++++++++++++
> .../fff/fff-gateway/files/etc/hoodfile | 21 ++++++++
> 2 files changed, 72 insertions(+)
> create mode 100644 src/packages/fff/fff-gateway/files/etc/config/gateway
> create mode 100644 src/packages/fff/fff-gateway/files/etc/hoodfile
>
> diff --git a/src/packages/fff/fff-gateway/files/etc/config/gateway b/src/packages/fff/fff-gateway/files/etc/config/gateway
> new file mode 100644
> index 0000000..2e2a32d
> --- /dev/null
> +++ b/src/packages/fff/fff-gateway/files/etc/config/gateway
> @@ -0,0 +1,51 @@
> +config gateway 'meta'
> + option config_version '1'
> +
> +config gateway
> + option name 'fff-gw-blubber'
> +
> +config vlan '1'
> + option comment 'client'
> + option ports '4 5t' # t -> tagged. cpuport wird (bei den meisten geräten) automatisch hinzugefügt.
> +
> +config vlan '2'
> + option comment 'wan'
> + option ports '1'
> +
> +config vlan '3'
> + option comment 'batman'
> + option ports '2 3'
> +
> +config vlan '101'
> + option comment 'babel-neigh'
> + option ports '5t'
> +
> +config client
> + option vlan '1'
> + option ip6addr '2a0b:f4c0:k7:e8::1/64'
> + option ipaddr '10.83.261.1/24'
> + option dhcp_start '10.83.261.50'
> +
> +config dns
> + list server 'fd43:5602:29bd:ffff::42'
> + list server 'fd43:5602:29bd:ffff:a:a:a:a'
> + list server 'fd43:5602:29bd:ffff::252'
> +
> +config batman
> + option vlan '3'
> +
> +config babelpeer 'babel_neigh'
> + option vlan '101'
> + option type 'wired'
> +
> +config wireguardpeer 'fffgwserver'
> + option endpoint_host '<ip oder dns>'
> + option endpoint_port '12345'
> + option persistent_keepalive '25' # damit verbindung durch nat, stateful firewall oder mit dyn. ip erhalten bleibt
> + option public_key '<wg pubkey vom server>'
> + option private_key '<wg privkey für gwfirmware>' # optional, wird die option komplett weggelassen, wird er automatisch generiert.
> +
> +config gre6peer 'fffgwserver'
> + option rxcost '128'
> + option ip6addr '<eigene public IP6 addr>'
> + option peer6addr '<remote public IP6 addr>'
> diff --git a/src/packages/fff/fff-gateway/files/etc/hoodfile b/src/packages/fff/fff-gateway/files/etc/hoodfile
> new file mode 100644
> index 0000000..067872a
> --- /dev/null
> +++ b/src/packages/fff/fff-gateway/files/etc/hoodfile
> @@ -0,0 +1,21 @@
> +{
> + "version": 1,
> + "network": {
> + "ula_prefix": "fd43:5602:29bd:xy:/64"
> + },
> + "hood": {
> + "name": "blubber",
> + "essid": "blubber.freifunk",
> + "mesh_id": "mesh.blubber",
> + "protocol": "batman-adv-v15",
> + "channel2": "1",
> + "mode2": "ht20",
> + "mesh_type2": "802.11s",
> + "channel5": "36",
> + "mode5": "ht20",
> + "mesh_type5": "802.11s",
> + "upgrade_path": "",
> + "ntp_ip": "fd43:5602:29bd:ffff::42",
> + "timestamp": "1508338641"
> + }
> +}
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 833 bytes
Beschreibung: OpenPGP digital signature
URL : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20190908/ac10cfc5/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev