raspberry pi - Problems setting up HostAPD on Pi 3 Jessie Lite -


i'm following adafruit tutorial end goal of setting portable tor routed wifi access point. did entire tutorial start finish yesterday on same pi 3 running raspbian jessie, , worked perfectly.

however, due sd card size restrictions (i'm on tight budget , need make quite few) , fact don't want gui, decided start again raspbian jessie lite (using last jessie release before stretch), , can't seem past hostapd setup when i'm following tutorial line line , using same pi 3!

the problem: when "first test" part of tutorial , run hostapd first time should output this:

what tutorial says should see

but instead this:

user0@raspberrypi:~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf configuration file: /etc/hostapd/hostapd.conf failed create interface mon.wlan0: -95 (operation not supported) wlan0: interface state uninitialized->country_update wlan0: not connect kernel driver using interface wlan0 hwaddr b8:27:eb:41:64:5e , ssid "extrea-special-wifi" wlan0: interface state country_update->enabled wlan0: ap-enabled 

the tutorial (and multiple other sources) says if i'm using built-in wi-fi module, don't need specify driver (it worked yesterday without driver specified too) not working time , thing i've changed os jessie jessie lite.

my laptop , other devices can see , connect network there no internet. of course can ping gateway ip not dns 8.8.8.8.

my hostapd config file same tutorial's , follows:

interface=wlan0 #driver=rtl871xdrv ssid=extrea-special-wifi country_code=gb hw_mode=g channel=6 macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 wpa=2 wpa_passphrase=password123 wpa_key_mgmt=wpa-psk wpa_pairwise=ccmp wpa_group_rekey=86400 ieee80211n=1 wme_enabled=1 

note: password123 not password use , changed!

my /etc/network/interface file not quite same tutorial worked yesterday this:

# interfaces(5) file used ifup(8) , ifdown(8)  # please note file written used dhcpcd # static ip, consult /etc/dhcpcd.conf , 'man dhcpcd.conf'  # include files /etc/network/interfaces.d: source-directory /etc/network/interfaces.d  auto lo iface lo inet loopback  iface eth0 inet manual  allow-hotplug wlan0 iface wlan0 inet static   address 192.168.42.1   netmask 255.255.255.0 

i realise file says:

# please note file written used dhcpcd # static ip, consult /etc/dhcpcd.conf , 'man dhcpcd.conf' 

but worked fine on full version of jessie (latest release too) , if cause of problem i'm not sure how make tutorial work /etc/dhcpd.conf file.

my /etc/sysctl.conf set follows:

# # /etc/sysctl.conf - configuration file setting system variables # see /etc/sysctl.d/ additional system variables. # see sysctl.conf (5) information. #  #kernel.domainname = example.com  # uncomment following stop low-level messages on console #kernel.printk = 3 4 1 3  ##############################################################3 # functions found in netbase #  # uncomment next 2 lines enable spoof protection (reverse-path filter) # turn on source address verification in interfaces # prevent spoofing attacks #net.ipv4.conf.default.rp_filter=1 #net.ipv4.conf.all.rp_filter=1  # uncomment next line enable tcp/ip syn cookies # see http://lwn.net/articles/277146/ # note: may impact ipv6 tcp sessions #net.ipv4.tcp_syncookies=1  # uncomment next line enable packet forwarding ipv4 #net.ipv4.ip_forward=1  # uncomment next line enable packet forwarding ipv6 #  enabling option disables stateless address autoconfiguration #  based on router advertisements host #net.ipv6.conf.all.forwarding=1   ################################################################### # additional settings - these settings can improve network # security of host , prevent against network attacks # including spoofing attacks , man in middle attacks through # redirection. network environments, however, require these # settings disabled review , enable them needed. # # not accept icmp redirects (prevent mitm attacks) #net.ipv4.conf.all.accept_redirects = 0 #net.ipv6.conf.all.accept_redirects = 0 # _or_ # accept icmp redirects gateways listed in our default # gateway list (enabled default) # net.ipv4.conf.all.secure_redirects = 1 # # not send icmp redirects (we not router) #net.ipv4.conf.all.send_redirects = 0 # # not accept ip source route packets (we not router) #net.ipv4.conf.all.accept_source_route = 0 #net.ipv6.conf.all.accept_source_route = 0 # # log martian packets #net.ipv4.conf.all.log_martians = 1 # net.ipv4.ip_forward=1 

the bottom of file seems missing 2 lines visible in screenshot tutorial didn't add them yesterday because tutorial doesn't mention them (as said, yesterday managed pi working tor routed access point using same steps).

screenshot tutorial:

tutorial screenshot


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -