WLAN AccessPoint: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Pascal (Diskussion | Beiträge)
 
(11 dazwischenliegende Versionen von 4 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
= Vorbereitungen =
== USB Passtrough auf VMWare ESXi ==
;Eigenschaften -> Hardware:
:Hinzufügen
::"USB-Controller"
::OK
:Hinzufügen
::"USB-Gerät"
::"USB-Hostgerät" auswählen
::OK


== WLAN Treiber ==
=Installation=
=== rt73usb Firmware compilieren ===
*apt install bridge-utils hostapd
cd /usr/src/
=Forward=
  <nowiki>wget http://www.ralinktech.com.tw/download.php?t=U0wyRnpjMlYwY3k4eU1ERXhMekF5THpJMEwyUnZkMjVzYjJGa01qa3dORGsyTnpZMU9TNWllakk5UFQweU1ERXhYekF5TVRCZlVsUTNNMTlNYVc1MWVGOVRWRUZmUkhKMk1TNHhMakF1TlE9PUM= -O 2011_0210_RT73_Linux_STA_Drv1.1.0.5.bz2</nowiki>
;/etc/sysctl.conf:
tar -xvjf 2011_0210_RT73_Linux_STA_Drv1.1.0.5.bz2
  net.ipv4.ip_forward = 1
cd 2011_0210_RT73_Linux_STA_Drv1.1.0.5/Module
*sysctl -p
make
cp -v rt73.bin /lib/firmware/


== Bridge ==
=Interfaces=
aptitude install bridge-utils
;/etc/network/interfaces
/etc/network/interfaces
<pre>
auto br0
auto vmbr0
iface br0 inet static
iface vmbr0 inet static
  # pre-up brctl addbr br0
  address 10.10.10.1
        pre-up /etc/init.d/hostapd stop
netmask 255.255.255.0
        address 172.28.6.2
dns-nameservers 10.80.100.103
        netmask 255.255.255.0
dns-search hack.lab
        gateway 172.28.6.1
bridge_ports none
        bridge_ports eth1 wlan0
bridge_stp off
        bridge_stp off
bridge_fd 0
        bridge_fd 0
bridge_maxwait 0
        bridge_maxwait 0
</pre>
        up /etc/init.d/hostapd start
*ifup -v vmbr0


= AccessPoint Konfigurieren =
=hostapd=
== hostapd ==
*/etc/hostapd
aptitude install hostapd
<pre>
/etc/default/hostapd
interface=wlan0
DAEMON_CONF="/etc/hostapd/hostapd.conf"
bridge=vmbr0
/etc/hostapd/hostapd.conf
driver=nl80211
interface=wlan0
ssid=CHEWINGGUM
bridge=br0
hw_mode=g
driver=nl80211
channel=6
hw_mode=g                                         # Aktivierung von 802.11g
macaddr_acl=0
ssid=<SSID-NAME>
auth_algs=1
channel=2
ignore_broadcast_ssid=0
wpa=2
wpa=2
wpa_passphrase=<SECURE PASSWORD>
wpa_passphrase=9twin-towers11
wpa_key_mgmt=WPA-PSK
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_pairwise=TKIP
  wpa_group_rekey=600
rsn_pairwise=CCMP
  wpa_gmk_rekey=86400
</pre>
 
*systemctl unmask hostapd
== DHCP ==
*systemctl enable hostapd --now
 
== wpa_supplicant ==


= Links =
= Links =
* https://wiki.ubuntuusers.de/Netzwerkbr%C3%BCcke/#Bruecken-in-drahtlose-Netze
* http://ubuntuforums.org/showthread.php?t=400236&page=118
* http://ubuntuforums.org/showthread.php?t=400236&page=118
* http://www.linux.com/learn/tutorials/442417-create-a-secure-linux-based-wireless-access-point
* http://www.linux.com/learn/tutorials/442417-create-a-secure-linux-based-wireless-access-point

Aktuelle Version vom 19. August 2021, 18:41 Uhr

Installation

  • apt install bridge-utils hostapd

Forward

/etc/sysctl.conf
net.ipv4.ip_forward = 1
  • sysctl -p

Interfaces

/etc/network/interfaces
auto vmbr0
iface vmbr0 inet static
 address 10.10.10.1
 netmask 255.255.255.0
 dns-nameservers 10.80.100.103
 dns-search hack.lab
 bridge_ports none
 bridge_stp off
 bridge_fd 0
 bridge_maxwait 0
  • ifup -v vmbr0

hostapd

  • /etc/hostapd
interface=wlan0
bridge=vmbr0
driver=nl80211
ssid=CHEWINGGUM
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=9twin-towers11
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
  • systemctl unmask hostapd
  • systemctl enable hostapd --now

Links