[PATCH] fff-gateway: Add examples

Tim Niemeyer tim at tn-x.org
So Sep 8 17:22:06 CEST 2019


Am Sonntag, den 08.09.2019, 17:17 +0200 schrieb Christian Dresel:
> Hi
> 
> Fände es gut wenn überall wo eine v6 vorkommt etwas aus 2001:db8::/32
> genommen wird.

Ne, das ist mir zu sophisticated! Das soll ja ein Beispiel an der
Praxis sein. Es würde eher Sinn machen, dran zu schreiben welche Werte
man auf jeden Fall aus seine Zwecke anpassen _muss_ und welche auch im
Default schon gut laufen.

Tim

> 
> Gruß
> 
> Christian
> 
> Am 8. September 2019 17:03:20 MESZ schrieb Tim Niemeyer <tim at tn-x.org
> >:
> > 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: This is a digitally signed message part
URL         : <https://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20190908/4db831e1/attachment.sig>


Mehr Informationen über die Mailingliste franken-dev