Report comment

Dear Roboberry,

Thank you for your quick reply. I can confirm the changes I made regarding IPs are the same as you pointed and dnsmasq and hostapd seem to work fine. I also changed the wi-fi channel and the problem persists.

I forgot to mention a couple of things that are probably important:

1) I am using a brand new Raspberry Pi 3 B+ with Raspbian Stretch / Linux rpitesting 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux.

2) I am not wiring the RPi to an Ethernet cable since I do not need Internet when there is no wi-fi on range, just SSH.

I have been testing and I can reach 192.168.100.1 when an Ethernet cable is connected before the hotspot is mounted and it remains accessible even if I unplug the cable after hostapd and dnsmasq are active. But if no Ethernet cable is connected before the starting of the hotspot I have no access to the RPi IP (no ping, no SSH), even if I plug it after or even if I disconnect from the hotspot wi-fi network and connect back.

I tried to comment out the iptables forwarding directives in /usr/bin/autohotspotN but it has no visible effect in this behavior.

If you need more info or there is something I can do for you on this matter please ask me to.

Thanks in advance!

Carlos.

PS:

pi@rpitesting:~ $ sudo systemctl status dnsmasq
● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server
Loaded: loaded (/lib/systemd/system/dnsmasq.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-27 09:49:37 UTC; 13min ago
Process: 515 ExecStartPost=/etc/init.d/dnsmasq systemd-start-resolvconf (code=exited, status=0/SUCCESS)
Process: 504 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=0/SUCCESS)
Process: 501 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS)
Main PID: 514 (dnsmasq)
CGroup: /system.slice/dnsmasq.service
└─514 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid -u dnsmasq -r /run/dnsmasq/resolv.conf -7 /etc/dnsmasq.

Mar 27 09:49:37 rpitesting dnsmasq[514]: using nameserver 8.8.8.8#53
Mar 27 09:49:37 rpitesting dnsmasq[514]: read /etc/hosts - 5 addresses
Mar 27 09:49:37 rpitesting dnsmasq[515]: Too few arguments.
Mar 27 09:49:37 rpitesting systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.
Mar 27 09:50:33 rpitesting dnsmasq-dhcp[514]: DHCPREQUEST(wlan0) 192.168.100.138 f4:f2:6d:1e:07:52
Mar 27 09:50:33 rpitesting dnsmasq-dhcp[514]: Ignoring domain iei.local for DHCP host name Puesto07
Mar 27 09:50:33 rpitesting dnsmasq-dhcp[514]: DHCPACK(wlan0) 192.168.100.138 f4:f2:6d:1e:07:52 Puesto07
Mar 27 10:00:27 rpitesting dnsmasq-dhcp[514]: DHCPREQUEST(wlan0) 192.168.100.138 f4:f2:6d:1e:07:52
Mar 27 10:00:27 rpitesting dnsmasq-dhcp[514]: Ignoring domain iei.local for DHCP host name Puesto07
Mar 27 10:00:27 rpitesting dnsmasq-dhcp[514]: DHCPACK(wlan0) 192.168.100.138 f4:f2:6d:1e:07:52 Puesto07

pi@rpitesting:~ $ sudo systemctl status hostapd
● hostapd.service - LSB: Advanced IEEE 802.11 management daemon
Loaded: loaded (/etc/init.d/hostapd; generated; vendor preset: enabled)
Active: active (running) since Tue 2018-03-27 09:49:38 UTC; 13min ago
Docs: man:systemd-sysv-generator(8)
Process: 568 ExecStart=/etc/init.d/hostapd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/hostapd.service
└─574 /usr/sbin/hostapd -B -P /run/hostapd.pid /etc/hostapd/hostapd.conf

Mar 27 09:50:33 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 IEEE 802.11: associated
Mar 27 09:50:33 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 RADIUS: starting accounting session 5ABA13B2-000
Mar 27 09:50:33 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 WPA: pairwise key handshake completed (RSN)
Mar 27 10:00:01 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 WPA: group key handshake completed (RSN)
Mar 27 10:00:25 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 IEEE 802.11: disassociated
Mar 27 10:00:25 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 IEEE 802.11: associated
Mar 27 10:00:25 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 IEEE 802.11: disassociated
Mar 27 10:00:27 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 IEEE 802.11: associated
Mar 27 10:00:27 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 RADIUS: starting accounting session 5ABA13B2-000
Mar 27 10:00:27 rpitesting hostapd[574]: wlan0: STA f4:f2:6d:1e:07:52 WPA: pairwise key handshake completed (RSN)