From 6f740e31b435776131d0c3d270cb16de3e7d499f Mon Sep 17 00:00:00 2001 From: Vasil Kolev Date: Mon, 10 Oct 2022 17:41:55 +0300 Subject: [PATCH] 2022: tplink eap-615 config --- Rakefile | 2 +- configurations.yml | 24 ++++++ files/tplink-eap615/etc/config/network | 61 +++++++++++++++ files/tplink-eap615/etc/config/system | 44 +++++++++++ files/tplink-eap615/etc/config/wifi-sentinel | 6 ++ files/tplink-eap615/etc/config/wireless | 81 ++++++++++++++++++++ tplink-eap615.configdiff | 0 7 files changed, 217 insertions(+), 1 deletion(-) create mode 100644 files/tplink-eap615/etc/config/network create mode 100644 files/tplink-eap615/etc/config/system create mode 100644 files/tplink-eap615/etc/config/wifi-sentinel create mode 100644 files/tplink-eap615/etc/config/wireless create mode 100644 tplink-eap615.configdiff diff --git a/Rakefile b/Rakefile index c1cfebc..f384966 100644 --- a/Rakefile +++ b/Rakefile @@ -59,7 +59,7 @@ end task :all do aps = %W(ap-ws-ws1 ap-ws-ws2) # Workshops - #aps += %W(ap-ws-noc) # NOC/Team room + aps += %W(ap-cf-srv) # server room aps.each do |ap| Rake::Task["ap"].reenable diff --git a/configurations.yml b/configurations.yml index 0ad4e2e..e285706 100644 --- a/configurations.yml +++ b/configurations.yml @@ -36,6 +36,30 @@ configurations: # - all # - dap2965 # - dap2965-single-trunk + # top floor + ap-cf-srv: + config: tplink-eap615 + ip: 10.20.0.50 + wlans: + 0: + bssid: 0e:50:00:11:00:50 + channel: 157 + txpower: 22 + 1: + bssid: 0e:24:00:11:00:50 + channel: 13 + txpower: 10 + 2: + bssid: 0e:50:ff:11:00:50 + key: openfest + 3: + bssid: 0e:24:ff:11:00:50 + key: openfest + + mixins: + - all + - tplink-eap615 + # lower floor ap-ws-ws1: config: linksys diff --git a/files/tplink-eap615/etc/config/network b/files/tplink-eap615/etc/config/network new file mode 100644 index 0000000..ea944c7 --- /dev/null +++ b/files/tplink-eap615/etc/config/network @@ -0,0 +1,61 @@ +config interface 'loopback' + option ifname 'lo' + option proto 'static' + option ipaddr '127.0.0.1' + option netmask '255.0.0.0' + + +config globals 'globals' + option packet_steering '1' + option ula_prefix 'fdfa:5bcd:c72e::/48' + +config device + option name 'br-lan' + option type 'bridge' + option ipv6 '0' + list ports 'lan0' + +config interface 'management' + option device 'br-lan.20' + option proto 'static' + option ipaddr '' + option netmask '255.255.255.0' + option gateway '10.20.0.1' + option dns '10.20.0.1' + option ipv6 'no' + + +config bridge-vlan + option device 'br-lan' + option vlan '1' + list ports 'lan0' + +config bridge-vlan + option device 'br-lan' + option vlan '20' + list ports 'lan0:t' + +config bridge-vlan + option device 'br-lan' + option vlan '21' + list ports 'lan0:t' + +config bridge-vlan + option device 'br-lan' + option vlan '23' + list ports 'lan0:t' + +config interface 'userwifi' + option proto 'none' + option device 'br-lan.21' + option defaultroute '0' + option peerdns '0' + option delegate '0' + +config interface 'videowifi' + option proto 'none' + option device 'br-lan.23' + option defaultroute '0' + option peerdns '0' + option delegate '0' + diff --git a/files/tplink-eap615/etc/config/system b/files/tplink-eap615/etc/config/system new file mode 100644 index 0000000..64f6e7f --- /dev/null +++ b/files/tplink-eap615/etc/config/system @@ -0,0 +1,44 @@ + +config system + option hostname '' + option zonename 'Europe/Sofia' + option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4' + option log_ip '10.20.0.1' + option log_remote '1' + +config timeserver 'ntp' + list server '0.bg.pool.ntp.org' + list server '1.bg.pool.ntp.org' + list server '2.bg.pool.ntp.org' + list server '3.bg.pool.ntp.org' + option enabled '1' + option enable_server '0' + +config led 'led_usb1' + option name 'USB1' + option sysfs 'tp-link:green:usb1' + option trigger 'usbdev' + option dev '1-1' + option interval '50' + +config led 'led_usb2' + option name 'USB2' + option sysfs 'tp-link:green:usb2' + option trigger 'usbdev' + option dev '2-1' + option interval '50' + +config led 'led_wlan2g' + option name 'WLAN2G' + option sysfs 'tp-link:blue:wlan2g' + option trigger 'phy1tpt' + +config led 'led_wlan5g' + option name 'WLAN5G' + option sysfs 'tp-link:blue:wlan5g' + option trigger 'phy0tpt' + +config led 'led_system' + option name 'SYSTEM' + option sysfs 'tp-link:blue:system' + option trigger 'heartbeat' diff --git a/files/tplink-eap615/etc/config/wifi-sentinel b/files/tplink-eap615/etc/config/wifi-sentinel new file mode 100644 index 0000000..92d9030 --- /dev/null +++ b/files/tplink-eap615/etc/config/wifi-sentinel @@ -0,0 +1,6 @@ + +config wifi-sentinel + option packets 3 + option interval 10 + option network 'management' + option switchport '1' diff --git a/files/tplink-eap615/etc/config/wireless b/files/tplink-eap615/etc/config/wireless new file mode 100644 index 0000000..abc7ca6 --- /dev/null +++ b/files/tplink-eap615/etc/config/wireless @@ -0,0 +1,81 @@ +config wifi-device radio0 + option type mac80211 + option band '2g' + option path 'pci0000:01/0000:01:00.0' + option channel '' + option txpower '' + option htmode VHT80 + option distance '20' + option require_mode 'n' + list basic_rate '54000' + list supported_rates '54000' + option log_level '-1' + option country 'BG' + option country_ie '1' + option doth '1' + +config wifi-iface + option device radio0 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' + option macaddr '' + option isolate '1' + option wnm_sleep_mode 1 + option proxy_arp 1 + option network 'userwifi' + +config wifi-device radio1 + option type mac80211 + option path 'platform/qca955x_wmac' + option band '5g' + option channel + option txpower '' + option htmode 'HT20' + option distance '20' + list basic_rate '54000' + list supported_rates '54000' + option require_mode 'g' + option beacon_int 250 + option log_level '-1' + option country 'BG' + option country_ie '1' + +config wifi-iface + option device radio1 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' + option macaddr '' + option isolate '1' + option wnm_sleep_mode 1 + option proxy_arp 1 + option network 'userwifi' + +config wifi-iface + option device radio0 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' + option macaddr '' + option wnm_sleep_mode 1 + option encryption 'sae-mixed' + option key '' + option network 'videowifi' + +config wifi-iface + option device radio1 + option network 'wireless' + option mode 'ap' + option ssid 'OpenFest' + option encryption 'none' + option macaddr '' + option encryption 'sae-mixed' + option key '' + option wnm_sleep_mode 1 + option network 'videowifi' + + diff --git a/tplink-eap615.configdiff b/tplink-eap615.configdiff new file mode 100644 index 0000000..e69de29