interface=wlan1driver=rtl8187country_code=PLieee80211d=1ieee80211h=1logger_syslog=-1logger_syslog_level=2ssid=LABchannel=9wpa=2wpa_passphrase=haslo123wpa_key_mgmt=WPA-PSKwpa_pairwise=TKIPrsn_pairwise=CCMPbeacon_int=100auth_algs=1macaddr_acl=0wmm_enabled=1eap_reauth_period=360000000
root@unrecord:~#hostapd /etc/hostapd/hostapd.confConfiguration file: /etc/hostapd/hostapd.confLine 2: invalid/unknown driver 'rtl8187 '1 errors found in configuration file '/etc/hostapd/hostapd.conf'Failed to set up interface with /etc/hostapd/hostapd.confFailed to initialize interface
root@unrecord:~# service dnsmasq status -l● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled) Drop-In: /run/systemd/generator/dnsmasq.service.d └─50-dnsmasq-$named.conf, 50-insserv.conf-$named.conf Active: active (running) since wto 2016-09-20 23:57:27 CEST; 34s ago Process: 1876 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS) Process: 1867 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS) Process: 1864 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS) Main PID: 1875 (dnsmasq) CGroup: /system.slice/dnsmasq.service └─1875 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmas...wrz 20 23:57:27 unrecord dnsmasq[1864]: dnsmasq: składnia sprawdzona, jest p…wa.wrz 20 23:57:27 unrecord dnsmasq[1875]: uruchomiony, wersja 2.72, 150 miejsc…nejwrz 20 23:57:27 unrecord dnsmasq[1875]: opcje kompilacji: IPv6 GNU-getopt DB...twrz 20 23:57:27 unrecord dnsmasq[1875]: czytanie /etc/resolv.confwrz 20 23:57:27 unrecord dnsmasq[1875]: używam serwera nazw 192.168.1.254#53wrz 20 23:57:27 unrecord dnsmasq[1875]: wczytałem /etc/hosts - 5 adresówwrz 20 23:57:27 unrecord systemd[1]: Started dnsmasq - A lightweight DHCP a...r.Hint: Some lines were ellipsized, use -l to show in full.root@unrecord:~#
https://github.com/oblique/create_ap#wpa--wpa2-passphrase
root@unrecord:~# create_ap wlan2 wlan0 LAB MyAccessPhraseConfig dir: /tmp/create_ap.wlan2.conf.gJsaydDnPID: 5885Network Manager found, set ap0 as unmanaged device... DONECreating a virtual WiFi interface... ap0 created.Sharing Internet using method: nathostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan2.conf.gJsaydDn/hostapd_ctrlWARN: Low entropy detected. We recommend you to install `haveged'Configuration file: /tmp/create_ap.wlan2.conf.gJsaydDn/hostapd.confUsing interface ap0 with hwaddr 14:cc:20:16:6e:a2 and ssid "LAB"ap0: interface state UNINITIALIZED->ENABLEDap0: AP-ENABLED ap0: STA 6c:27:79:01:6d:ec IEEE 802.11: authenticatedap0: STA 6c:27:79:01:6d:ec IEEE 802.11: associated (aid 1)ap0: AP-STA-CONNECTED 6c:27:79:01:6d:ecap0: STA 6c:27:79:01:6d:ec RADIUS: starting accounting session 57E25849-00000000ap0: STA 6c:27:79:01:6d:ec WPA: pairwise key handshake completed (RSN)ap0: STA 6c:27:79:01:6d:ec WPA: group key handshake completed (RSN)ap0: STA 6c:27:79:01:6d:ec WPA: group key handshake completed (RSN)^Cap0: AP-STA-DISCONNECTED 6c:27:79:01:6d:ec
-A PREROUTING -s 192.168.12.0/24 -d 192.168.12.1/32 -p udp -m udp --dport 53 -j REDIRECT --to-ports 5353-A PREROUTING -s 192.168.12.0/24 -d 192.168.12.1/32 -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 5353-A POSTROUTING -s 192.168.12.0/24 -o wlan0 -j MASQUERADE