Skip to content

Instantly share code, notes, and snippets.

@fblaese
Last active May 19, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fblaese/ca4d903b20b4d7033553f48625b93ca6 to your computer and use it in GitHub Desktop.
Save fblaese/ca4d903b20b4d7033553f48625b93ca6 to your computer and use it in GitHub Desktop.
Beispielkonfiguration Gatewayfirmware
config version
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.
{
"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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment