Raspberry wireless access point: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 22: | Zeile 22: | ||
* mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig | * mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig | ||
* vim /etc/dnsmasq.conf | * vim /etc/dnsmasq.conf | ||
<!-----> | <!-----> | ||
interface=wlan0 | interface=wlan0 | ||
dhcp-range=10.99.99.10,10.99.99.10,255.255.255.0,24h | dhcp-range=10.99.99.10,10.99.99.10,255.255.255.0,24h | ||
* /etc/hostapd/hostapd.conf | * /etc/hostapd/hostapd.conf | ||
==WLAN ACCESSPOINT== | |||
<!-----> | <!-----> | ||
interface=wlan0 | interface=wlan0 | ||
| Zeile 44: | Zeile 43: | ||
* vim /etc/default/hostapd | * vim /etc/default/hostapd | ||
* vim /etc/sysctl.conf | * vim /etc/sysctl.conf | ||
==Interfaces== | |||
* vim /etc/network/interfaces | |||
auto enp3s0 | |||
iface enp3s0 inet manual | |||
auto br0 | |||
iface br0 inet static | |||
address 10.81.1.1/19 | |||
gateway 10.81.0.1 | |||
dns-nameservers 10.81.0.2 10.30.0.11 | |||
dns-search xinux.org tuxmen.de sympatel.de sympatel.lan stadtwerke-homburg sapswh.stadtwerke-homburg.de | |||
bridge_ports enp3s0 | |||
bridge_fd 0 | |||
bridge_stp no | |||
<!-----> | <!-----> | ||
| Zeile 49: | Zeile 65: | ||
* systemctl restart hostapd | * systemctl restart hostapd | ||
* systemctl restart dnsmasq | * systemctl restart dnsmasq | ||
* reboot | * reboot | ||
Version vom 6. Oktober 2022, 15:11 Uhr
Übersicht
- Operationssytem: Raspbian 10
- Login:
- root: 123Start$
- xinux: 123Start$
- pi: raspberry
- Achtung englische Tastatur
Pakete
- hostapd
- dnsmasq
Konfiguration
DHCP
- mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
- vim /etc/dnsmasq.conf
interface=wlan0 dhcp-range=10.99.99.10,10.99.99.10,255.255.255.0,24h
- /etc/hostapd/hostapd.conf
WLAN ACCESSPOINT
interface=wlan0 hw_mode=g channel=7 wmm_enabled=0 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP ssid=xinux wpa_passphrase=123Start$
- vim /etc/default/hostapd
- vim /etc/sysctl.conf
Interfaces
- vim /etc/network/interfaces
auto enp3s0
iface enp3s0 inet manual
auto br0 iface br0 inet static
address 10.81.1.1/19 gateway 10.81.0.1 dns-nameservers 10.81.0.2 10.30.0.11 dns-search xinux.org tuxmen.de sympatel.de sympatel.lan stadtwerke-homburg sapswh.stadtwerke-homburg.de bridge_ports enp3s0 bridge_fd 0 bridge_stp no
net.ipv4.ip_forward=1
- systemctl restart hostapd
- systemctl restart dnsmasq
- reboot
Benutzung
- Man kann den Verkehr eines über das Ethernet angeschlossenen Rechners mithören, indem man den Raspberry Pi als bridge zwischenschaltet.
- Über SSH, tcpdump und Wireshark kann man dann mithören.
Links
- ssh pi@192.168.55.1 'sudo tcpdump -n -i tun0 -s 65535 -w - not port 22' | wireshark -k -S -i -