Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

philmel: cleanup #893

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
308 changes: 208 additions & 100 deletions locations/philmel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
location: philmel
location_nice: Philipp-Melanchthon-Kirche
location_nice: Philipp-Melanchthon-Kirche, Kranoldstraße 16, 12051 Berlin
latitude: 52.465881
longitude: 13.434112
altitude: 83
Expand All @@ -9,166 +9,274 @@ community: true
hosts:
- hostname: philmel-core
role: corerouter
model: "linksys_e8450-ubi"
model: "mikrotik_routerboard-750gr3"
wireless_profile: freifunk_default
- hostname: philmel-nord-m2

- hostname: philmel-nf-o-5ghz
role: ap
model: "ubnt_nanostation-m2_xm"
wireless_profile: freifunk_default
model: "mikrotik_sxtsq-5-ac"
mac_override: {eth0: dc:2c:6e:c4:35:ed}

- hostname: philmel-nf-s-5ghz # peers: GSBS2
role: ap
model: "mikrotik_sxtsq-5-ac"
mac_override: {eth0: dc:2c:6e:c4:36:53}
wireless_profile: philmel_nf_s_5ghz

# - hostname: philmel-nf-w-5ghz
# role: ap
# model: "mikrotik_sxtsq-5-ac"
# mac_override: {eth0: TODO}

snmp_devices:
- hostname: philmel-rhnk
address: 10.230.2.4
- hostname: philmel-switch
address: 10.230.2.2
snmp_profile: swos

- hostname: philmel-klunker
address: 10.230.2.3
snmp_profile: af60
- hostname: philmel-nord-5ghz

- hostname: philmel-ak36
address: 10.230.2.4
snmp_profile: airos_8

- hostname: philmel-nw-60ghz
address: 10.230.2.5
snmp_profile: mikrotik_60g

- hostname: philmel-no-5ghz
address: 10.230.2.6
snmp_profile: airos_8
- hostname: philmel-ost

- hostname: philmel-nw-5ghz
address: 10.230.2.7
snmp_profile: airos_6
- hostname: philmel-vaterhaus
snmp_profile: airos_8

- hostname: philmel-o-5ghz
address: 10.230.2.8
snmp_profile: airos_8
- hostname: philmel-sued

- hostname: philmel-s-5ghz
address: 10.230.2.9
snmp_profile: airos_6
- hostname: philmel-sued-5ac
address: 10.230.2.10
snmp_profile: airos_8
- hostname: philmel-west
address: 10.230.2.11
snmp_profile: airos_6
- hostname: philmel-ak36
address: 10.230.2.12

- hostname: philmel-w-5ghz
address: 10.230.2.10
snmp_profile: airos_8

airos_dfs_reset:
- name: "philmel-ak36"
target: "10.230.2.12"
target: "10.230.2.4"
username: "ubnt"
password: "file:/root/pwd.txt"
password: "file:/root/pwd"
daytime_limit: "2-7"
- name: "philmel-nord-5ac"

- name: "philmel-no-5ghz"
target: "10.230.2.6"
username: "ubnt"
password: "file:/root/pwd.txt"
password: "file:/root/pwd"
daytime_limit: "2-7"

- name: "philmel-nw-5ghz"
target: "10.230.2.7"
username: "ubnt"
password: "file:/root/pwd"
daytime_limit: "2-7"

# got following prefixes:
# Router: 10.230.2.0/24
# --MGMT: 10.230.2.0/28
# --MESH: 10.31.215.32/27 (-23)
# --DHCP: 10.230.2.32/28
- name: "philmel-o-5ghz"
target: "10.230.2.8"
username: "ubnt"
password: "file:/root/pwd"
daytime_limit: "2-7"

- name: "philmel-s-5ghz"
target: "10.230.2.9"
username: "ubnt"
password: "file:/root/pwd"
daytime_limit: "2-7"

- name: "philmel-w-5ghz"
target: "10.230.2.10"
username: "ubnt"
password: "file:/root/pwd"
daytime_limit: "2-7"

# ROUTER: 10.230.2.0/24
# --MGMT: 10.230.2.0/27
# --MESH: 10.230.2.32/27
# --FREE: 10.230.2.64/26
# --DHCP: 10.230.2.128/25

ipv6_prefix: "2001:bf7:820:1500::/56"

networks:
- vid: 2
role: dhcp
prefix: 10.230.2.32/28
ipv6_subprefix: 0
untagged: true
inbound_filtering: true
enforce_client_isolation: true
assignments:
philmel-core: 1

# northeast mesh 5GHz ac
- vid: 10
role: mesh
name: mesh_no_5ghz # Peers: kiehlufer-core
prefix: 10.230.2.17/32
ipv6_subprefix: -1
mesh_metric: 1024
name: mesh_klunker
prefix: 10.230.2.32/32
ipv6_subprefix: -10
ptp: true
mesh_metric: 256

# northwest mesh 5GHz ac
- vid: 11
role: mesh
name: mesh_nw_5ghz # Peers: liegewiese, sgfrd-core
prefix: 10.230.2.18/32
ipv6_subprefix: -2
name: mesh_ak36
prefix: 10.230.2.33/32
ipv6_subprefix: -11
ptp: true
mesh_metric: 1024
mesh_metric_lqm: ['default 0.5']

- vid: 12
role: mesh
name: mesh_ost # Peers: Area51, delbrueck66
prefix: 10.230.2.19/32
ipv6_subprefix: -3
mesh_metric: 1024
name: mesh_nw_60ghz
prefix: 10.230.2.34/32
ipv6_subprefix: -12

# northeast mesh 5GHz ac
- vid: 13
role: mesh
name: mesh_vaterhaus
prefix: 10.230.2.20/32
ipv6_subprefix: -4
mesh_metric: 1024
name: mesh_no_5ghz
prefix: 10.230.2.35/32
ipv6_subprefix: -13

# northwest mesh 5GHz ac
- vid: 14
role: mesh
name: mesh_sued # Peers: kranold18, GSBS2
prefix: 10.230.2.21/32
ipv6_subprefix: -5
mesh_metric: 1024
name: mesh_nw_5ghz
prefix: 10.230.2.36/32
ipv6_subprefix: -14

- vid: 15
role: mesh
name: mesh_sued_5ghz
prefix: 10.230.2.22/32
ipv6_subprefix: -6
mesh_metric: 1024
name: mesh_o_5ghz
prefix: 10.230.2.37/32
ipv6_subprefix: -15

- vid: 16
role: mesh
name: mesh_west # Peers: emser97
prefix: 10.230.2.23/32
ipv6_subprefix: -7
mesh_metric: 1024
name: mesh_s_5ghz
prefix: 10.230.2.38/32
ipv6_subprefix: -16

- vid: 17
role: mesh
name: mesh_ak36
prefix: 10.230.2.24/32
ipv6_subprefix: -8
ptp: true
mesh_metric: 1024
mesh_metric_lqm: ['default 0.3'] # prefer klunker link
name: mesh_w_5ghz
prefix: 10.230.2.39/32
ipv6_subprefix: -17

- vid: 18
- vid: 20
role: mesh
name: mesh_klunker
prefix: 10.230.2.25/32
ipv6_subprefix: -9
ptp: true
mesh_metric: 128
name: mesh_nf_o_5
prefix: 10.230.2.40/32
ipv6_subprefix: -20
mesh_ap: philmel-nf-o-5ghz
mesh_radio: 11a_standard
mesh_iface: mesh

- vid: 19
- vid: 21
role: mesh
name: mesh_nw_60ghz
prefix: 10.230.2.26/32
ipv6_subprefix: -10
ptp: true
mesh_metric: 1024
name: mesh_nf_s_5
prefix: 10.230.2.41/32
ipv6_subprefix: -21
mesh_ap: philmel-nf-s-5ghz
mesh_radio: 11a_standard
mesh_iface: mesh

# - vid: 22
# role: mesh
# name: mesh_nf_w_5
# prefix: 10.230.2.42/32
# ipv6_subprefix: -22
# mesh_ap: philmel-nf-w-5ghz
# mesh_radio: 11a_standard
# mesh_iface: mesh

# Special VLAN for meshing with GSBS2
- vid: 23
role: mesh
name: xmesh_nf_s_5
prefix: 10.230.2.43/32
ipv6_subprefix: -23
mesh_ap: philmel-nf-s-5ghz
mesh_radio: 11a_standard
mesh_iface: mesh

- vid: 40
role: dhcp
prefix: 10.230.2.128/25
ipv6_subprefix: 0
untagged: true
inbound_filtering: true
enforce_client_isolation: true
assignments:
philmel-core: 1

- vid: 42
- vid: 438
role: mgmt
prefix: 10.230.2.0/28
prefix: 10.230.2.0/27
gateway: 1
dns: 1
ipv6_subprefix: 1
assignments:
philmel-core: 1
philmel-switch-1: 2
philmel-switch-2: 3
philmel-klunker: 4
philmel-no-5ghz: 5
philmel-nw-5ghz: 6
philmel-ost-legacy: 7
philmel-vaterhaus: 8
philmel-sued-legacy: 9
philmel-sued-5ghz: 10
philmel-ak36: 12
philmel-west-legacy: 11
philmel-nw-60ghz: 14
philmel-switch: 2
# PtP
philmel-klunker: 3
philmel-ak36: 4
# PtmP
philmel-nw-60ghz: 5
philmel-no-5ghz: 6
philmel-nw-5ghz: 7
philmel-o-5ghz: 8
philmel-s-5ghz: 9
philmel-w-5ghz: 10
# nearfield devices
philmel-nf-o-5ghz: 11
philmel-nf-s-5ghz: 12
# philmel-nf-w-5ghz: 13 # tbd

location__channel_assignments_11a_standard__to_merge:
philmel-nf-o-5ghz: 40-20
philmel-nf-s-5ghz: 36-20
# philmel-nf-w-5ghz: 44-20

# custom wireless profile due to legacy link on east nf antenna
location__wireless_profiles__to_merge:
- name: philmel_nf_s_5ghz
ifaces:
- mode: ap
ssid: berlin.freifunk.net
encryption: none
network: dhcp
radio: [11a_standard, 11g_standard]
ifname_hint: ff
owe_transition_ifname_hint: ffowe

- mode: ap
ssid: berlin.freifunk.net OWE
hidden: true
encryption: owe
network: dhcp
radio: [11a_standard, 11g_standard]
ifname_hint: ffowe
owe_transition_ifname_hint: ff
ieee80211w: 2

- mode: ap
ssid: freifunk-bbb-philmel-o
encryption: none
network: xmesh_nf_s_5
radio: [11a_standard, 11g_standard, 11a_mesh]
ifname_hint: xmesh

- mode: mesh
mesh_id: Mesh-Freifunk-Berlin
radio: [11a_standard, 11g_standard, 11a_mesh]
mcast_rate: 12000
mesh_fwding: 0
ifname_hint: mesh

location__ssh_keys__to_merge:
- comment: roedel
Expand Down