Raum/WLAN-Router Access-Point

Aus C3MAWiki
Wechseln zu: Navigation, Suche

WLAN-Router Access-Point

System

Im Raum ist ein TP-Link N750 (Modell: TL-WDR4300) Wireless Gigabit Router installiert, dessen Betriebssystem OpenWrt [1] ist.

Ein passendes Firmware-Image (ath79/generic) kann mit Hilfe des OpenWrt Firmware-Selector [2] ausgewählt und heruntergeladen werden, so dass anschließen die Installation erfolgen kann.

Aktuell ist die Stable Release - OpenWrt 21.02.1 installiert.

Der Router ist über den WAN-Port mit dem Raum-Netz verbunden, der interne Switch wird aktuell nicht genutzt.

Installation

Nach der Installation hat OpenWrt eine voreingestellte IP Adresse (192.168.1.1), die am "internen Switch" bereitgestellt wird.

Der OpenWrt Default-User ist "root", beim erst Login ohne Passwort (leave this blank!).

Für den Betrieb im Raum ist daher die Konfiguration von WAN IP-Adresse, SSH, WLAN und ändern des "root" Passworts nötig.

Konfiguration

WLAN

/etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11g'
	option htmode 'HT20'
	option channel '6'
	option country 'DE'
	option txpower '20'
	option legacy_rates '0'
	option path 'platform/ahb/18100000.wmac'

config wifi-device 'radio1'
	option type 'mac80211'
	option hwmode '11a'
	option path 'pci0000:00/0000:00:00.0'
	option htmode 'HT20'
	option country 'DE'
	option channel '40'
	option txpower '20'

config wifi-iface 'wan_radio0'
	option disabled '0'
	option network 'wan'
	option encryption 'psk2'
	option device 'radio0'
	option mode 'ap'
	option key 'Hier_das_Passwort!'
	option ssid 'C3MA'
	option macaddr '8a:e4:a0:f3:5a:2b'
	option ifname 'wan0'

config wifi-iface 'wan_radio1'
	option disabled '0'
	option network 'wan'
	option encryption 'psk2'
	option device 'radio1'
	option mode 'ap'
	option key 'Hier_das_Passwort!'
	option ssid 'C3MA'
	option macaddr '8a:e4:a0:f3:5a:2f'
	option ifname 'wan1'

SSH

/etc/config/dropbear

config dropbear
	option PasswordAuth 'on'
	option RootPasswordAuth 'on'
	option Port         '22'
#	option BannerFile   '/etc/banner'


Quellen

[1] https://openwrt.org/

[2] https://firmware-selector.openwrt.org/