Skip to content

Instantly share code, notes, and snippets.

@fblaese
Last active November 21, 2019 20:08
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/138aa8516c614eb8869dcacfd659dcc2 to your computer and use it in GitHub Desktop.
Save fblaese/138aa8516c614eb8869dcacfd659dcc2 to your computer and use it in GitHub Desktop.
gateway2
config fff 'system'
option hostname 'mein-gateway'
option hoodname 'Hoodname'
config gateway 'meta'
option config_version '1'
config vlan '1'
option comment 'client'
## t: tagged. CPU-Port wird automatisch hinzugefügt.
option ports '2 3 4 5t'
config vlan '2'
option comment 'wan'
option ports '1'
config vlan '10'
option comment 'nachbar-hochhaus'
option ports '5t'
config client
option vlan '1'
list ip6addr 'fd43:5602:29bd:k7::1/64'
list ip6addr '2a0b:f4c0:k7:e8::1/64'
list ipaddr '10.83.261.1/24'
option dhcp_start '10.83.261.50'
option dhcp_limit '1000'
option essid 'bla.freifunk'
option chan2ghz '13'
option chan5ghz '36'
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'
## Vorsicht: Config-Namen dürfen keine '-' enthalten
config babelpeer 'hochhaus'
option vlan '101'
option type 'wired'
option rxcost '1024'
config wireguardpeer 'meingateway'
option endpoint_host '<ip oder dns>'
option endpoint_port '12345'
option persistent_keepalive '25'
option remote_public_key '<wg pubkey vom server>'
## Angeben eines private_key ist optional. Wird automatisch generiert, wenn nicht vorhanden.
option local_private_key '<wg privkey für gwfirmware>'
option rxcost '16384'
option mtu '1420'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment