Wifi with 2018-03-29-ubuntu-16.04-mate-desktop-bpi-r2

Hello

I have modified the end of the wifi.sh file :

else
        echo "Done, all good, ready to lauch hostapd"
        sleep 2
        hostapd -dd /etc/hostapd/hostapd.conf &
        sleep 20
        ip addr add 192.168.3.1/24 dev ap0
        sleep 20
        systemctl restart  isc-dhcp-server
        #sleep 20
        #hostapd -dd /etc/hostapd/hostapd.conf
fi

And now it’s good. I can connect to the wifi. Now, I am in my job, not at home, I can’t more try. But, I think the sleep is to big. I have not tested internet, I do work my firewall befor.

I have only 1 problem. I can ask bind9 in my bpi-r2. I put in /etc/resolv.conf the ip of my box and I write this message with the wifi’s network of my bpi-r2.

The problem :

 root@bpi-iot-ros-ai:/etc/bind# systemctl status bind9
● bind9.service - BIND Domain Name Server
   Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled)
  Drop-In: /run/systemd/generator/bind9.service.d
           └─50-insserv.conf-$named.conf
   Active: active (running) since Wed 2018-11-28 19:02:52 CET; 5min ago
     Docs: man:named(8)
  Process: 3233 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS)
 Main PID: 3238 (named)
    Tasks: 7
   Memory: 9.4M
      CPU: 494ms
   CGroup: /system.slice/bind9.service
           └─3238 /usr/sbin/named -f -u bind

Nov 28 19:06:17 bpi-iot-ros-ai named[3238]: client 192.168.3.152#33287 (ssl0.ovh.net): query (cache) 'ssl0.ovh.net/AAAA/IN' denied
Nov 28 19:06:17 bpi-iot-ros-ai named[3238]: client 192.168.3.152#33287 (ssl0.ovh.net): query (cache) 'ssl0.ovh.net/A/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#52391 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/A/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#52391 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/AAAA/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#52391 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/A/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#52391 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/AAAA/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#32973 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/AAAA/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#32973 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/A/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#32973 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/AAAA/IN' denied
Nov 28 19:06:23 bpi-iot-ros-ai named[3238]: client 192.168.3.152#32973 (pop.libertysurf.fr): query (cache) 'pop.libertysurf.fr/A/IN' denied

Now my wifi is in a bridge with wan. I can connect to 2. The last problem was bind : the “allow-query” was not good.

Now I work for use lan in my home network, not wan…