uncompress with pigz -d <file> — Size 32GB
Vorbereitet für einen Betrieb am eth0 Netz einer Fritzbox 192.168.178.0/24
Bereits durchgeführte Änderungen:
cat >/etc/dnsmasq.conf <<EOF
interface=ap0 # Listening interface
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
# Pool of IP addresses served via DHCP
domain=wlan # Local wireless DNS domain
address=/gw.wlan/192.168.4.1
# Alias for this router
EOF
cat >> /etc/dhcpcd.conf <<EOF
interface eth0
static routers=192.168.178.1
static domain_name_servers=192.168.178.1
static domain_search=fritz.box
inform 192.168.178.144
interface ap0
static ip_address=192.168.4.1/24
nohook wpa_supplicant
static routers=
static domain_name_servers=
static domain_search=
EOF
sudo DEBIAN_FRONTEND=noninteractive apt install -y netfilter-persistent iptables-persistent
sudo rfkill unblock wlan
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo netfilter-persistent save
cat >/etc/hostapd/hostapd.conf <<EOF
country_code=DE
interface=ap0
ssid=vowifi
hw_mode=g
channel=4
ieee80211n=1
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=raspi-123
rsn_pairwise=CCMP
wpa_pairwise=TKIP
EOF
root@raspberrypi:/etc/systemd/system/hostapd.service.d# cat override.conf
[Unit]
Wants=wpa_supplicant@wlan0.service
[Service]
Restart=
Restart=no
ExecStartPre=/sbin/iw dev wlan0 interface add ap0 type __ap
ExecStopPost=-/sbin/iw dev ap0 del
root@raspberrypi:/etc/systemd/system/hostapd.service.d#