Results 1 to 11 of 11

Thread: Access point configuration problem on RPi3

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2018-Jan
    Posts
    10

    Question Access point configuration problem on RPi3

    Hi. I'm trying to establish AP on RPi3 with embedded wifi. So I was hoping for a quick start and tried a few tutorials:
    1. https://elinux.org/RPI-Wireless-Hotspot
    2. https://frillip.com/using-your-raspb...-with-hostapd/
    But none of them worked out.

    So I've tried manually start hostapd by running:
    Code:
    # hostapd /etc/hostapd/hostapd.conf
    Configuration file: /etc/hostapd/hostapd.conf
    wlan0: Could not connect to kernel driver
    Using interface wlan0 with hwaddr b8:20:eb:10:11:33 and ssid "my-wifi-ap"
    wlan0: interface state UNINITIALIZED->ENABLED
    wlan0: AP-ENABLED
    So it is kinda working. At least I see my AP in airodump
    Code:
    B8:20:EB:10:11:33  -26        2        0    0   6  54e  WPA2 CCMP   PSK  my-wifi-ap
    If I try to connect to AP with my phone I see a message on RPi side:
    Code:
    wlan0: STA 1c:5c:f5:23:c4:11 IEEE 802.11: Could not add STA to kernel driver
    There are other problems.
    If I run:
    Code:
    # service hostapd start
    Failed to start hostapd.service: Unit hostapd.service is masked.
    I've checked wifi interface with:

    Code:
    # iw list
    Supported interface modes:
    	 * IBSS
    	 * managed
    	 * AP
    	 * monitor
    	 * P2P-client
    	 * P2P-GO
    	 * P2P-device
    so I see it can work as AP.

    The idea is to establish a wifi connection and ssh to RPi.


    Additional info

    Code:
    # uname -a
    Linux kali 4.9.59-v7_Re4son-Kali-Pi+ #1 SMP Tue Nov 21 00:36:47 CST 2017 armv7l GNU/Linux
    Code:
    # iwconfig 
    eth0      no wireless extensions.
    
    wlan0     IEEE 802.11  ESSID:off/any  
              Mode:Managed  Access Point: Not-Associated   
              Retry short limit:7   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:on
              
    lo        no wireless extensions.
    Code:
    # cat /etc/dhcpcd.conf
    denyinterfaces wlan0
    Code:
    # cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    
    auto eth0
    iface eth0 inet dhcp
    
    # AP config for wlan0
    iface wlan0 inet static
    	address 192.168.1.1
    	netmask 255.255.255.0
    	network 192.168.1.0
    	broadcast 192.168.1.255
    Code:
    # cat /etc/hostapd/hostapd.conf
    interface=wlan0
    driver=nl80211
    ssid=my-wifi-ap
    hw_mode=g
    channel=6
    ieee80211n=1
    wmm_enabled=1
    ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
    macaddr_acl=0
    auth_algs=1
    ignore_broadcast_ssid=0
    wpa=2
    wpa_key_mgmt=WPA-PSK
    wpa_passphrase=mypass
    rsn_pairwise=CCMP
    Code:
    # cat /etc/default/hostapd
    DAEMON_CONF="/etc/hostapd/hostapd.conf"
    Code:
    # cat /etc/init.d/hostapd
    ...
    PATH=/sbin:/bin:/usr/sbin:/usr/bin
    DAEMON_SBIN=/usr/sbin/hostapd
    DAEMON_DEFS=/etc/default/hostapd
    DAEMON_CONF=/etc/hostapd/hostapd.conf
    NAME=hostapd
    DESC="advanced IEEE 802.11 management"
    PIDFILE=/run/hostapd.pid
    
    [ -x "$DAEMON_SBIN" ] || exit 0
    [ -s "$DAEMON_DEFS" ] && . /etc/default/hostapd
    [ -n "$DAEMON_CONF" ] || exit 0
    ...
    Code:
    # cat /etc/dnsmasq.conf
    interface=wlan0 
    listen-address=192.168.1.1 
    bind-interfaces      
    server=209.222.18.222,209.222.18.218    
    domain-needed    
    bogus-priv     
    dhcp-range=192.168.1.2,192.168.1.20,12h
    Could anyone help with that? Thanks.
    Last edited by n3tr4k; 2018-02-07 at 00:18.

Similar Threads

  1. Replies: 23
    Last Post: 2015-11-26, 05:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •